1 line
84 KiB
JavaScript
1 line
84 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-nongKe-cloud_entrepot-indexa"],{"02b0":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("99af"),n("d3b7"),n("ddb0"),n("4e82"),n("b64b"),n("d81d"),n("159b"),n("14d9");var o=i(n("c7eb")),a=i(n("1da1")),r=i(n("5530")),s=n("b8a1"),u=(n("f89e"),n("95ca")),c=n("bb20"),d=n("a126"),l=i(n("104c")),f=n("7a69"),p=(n("ece0"),n("26cb")),g=(i(n("a040")),{components:{authorize:l.default},data:function(){return{skuform:{},location:null,defaInd:[0,0],showPicker:!1,columnData:[],skusize:0,skuNumber:1,showcartpop:!1,trnList:[],act_cart:!1,appInfo:{},pocls:"",type:"",act_swiper:"",current:3,goodsNum:0,goodsList:[],isEmpty:!1,winHeight:0,cloudList:[],street:"",street_code:"",totalMoney:0,town:"",list:[1,1,1,1,1],showSelect:!1,showPop:!1,keyword:"",showLoading:!1,tot_price:1,showtit:!0,cartList:[],activeClass:"activeClass",headtop:0,page_num:1,act_img:"",cartTagInfo:{},headTop1:"",actList:[{tit:"综合",act:"",screen:""},{tit:"销量",act:"",screen:"sales"},{tit:"价格",act:"",screen:"price_asc",price:!0}],status:"loadmore",flag:!1,isAuto:!1,isShowAuth:!1}},computed:(0,r.default)({},(0,p.mapGetters)(["isLogin","viewColor","uid"])),onLoad:function(t){var e=this;this.location=t.location,this.appInfo=this.$appInfo.safeAreaInsets,this.winHeight=this.$appInfo.windowHeight,this.street_code=t.street,this.town=t.town,this.getCloundShop(),this.street=t.town,this.Area();var n=this;setTimeout((function(){uni.createSelectorQuery().in(e).select(".flags1").boundingClientRect((function(t){n.headTop1=t.top})).exec(),uni.createSelectorQuery().in(e).select(".cart").boundingClientRect((function(t){n.cartTagInfo=t})).exec()}),1)},onShow:function(){this.cartFn(),this.showSelect=!1},onReachBottom:function(){var t,e=this;!this.flag&&this.goodsList.length&&(this.status="loading",this.page_num+=1,(0,s.townCloud)({street_code:this.street_code,category_id:(null===(t=this.cloudList[this.current])||void 0===t?void 0:t.category_id)||"",order:this.type,keyword:this.keyword,page:this.page_num,location:this.location}).then((function(t){if(0==t.data.list.length)return e.status="nomore",void(e.flag=!0);t.data.list[0].product_id==e.goodsList[0].product_id?(e.status="nomore",e.flag=!0):e.goodsList=e.goodsList.concat(t.data.list)})))},onPageScroll:function(t){var e=this,n=this;this.showtit=!Boolean(t.scrollTop),uni.createSelectorQuery().in(this).select(".flags").boundingClientRect((function(t){e.headtop=t.top})).exec(),uni.createSelectorQuery().in(this).select(".content").boundingClientRect((function(t){t.top<=e.headtop?(e.pocls="fixed",e.act_swiper="act_swiper",e.act_img="act_img"):(e.pocls="",e.act_swiper="",e.act_img="")})).exec(),uni.createSelectorQuery().in(this).select(".cart").boundingClientRect((function(t){n.cartTagInfo=t})).exec()},onPullDownRefresh:function(){this.getCloundShop(),this.getList(),this.cartFn(),uni.stopPullDownRefresh()},methods:{showpick:function(){this.showPicker=!this.showPicker},swiperClick:function(t){var e=t.info[1].value;uni.navigateTo({url:e})},selectLocation:function(){this.isSelectPlace&&(this.showPicker=!0)},confirm:function(t){var e=this;this.showPicker=!1,this.showSelect=!1,this.$emit("selectPlce",t),this.$emit("change",t),this.street=t.value[1].name,this.$nextTick((function(){e.$bus.$emit("value-updated",t.value[1].name+","+t.value[1].code)})),this.street_code=t.value[1].code,this.getCloundShop(),this.town=t.value[1].name},showFn:function(){this.showSelect=!0,this.showPicker=!0},changeHandler:function(t){var e=t.columnIndex,n=t.value,i=(t.values,t.index,t.picker),o=void 0===i?this.$refs.uPicker:i;0===e&&(0,f.getStreet)({area_code:n[0]["code"]}).then((function(t){o.setColumnValues(1,t.data)}))},Area:function(){var t=this;(0,f.getArea)({city_code:510500}).then((function(e){t.$refs.uPicker.setColumnValues(0,e.data),t.Street(e.data[0]["code"])}))},Street:function(t){var e=this;(0,f.getStreet)({area_code:t}).then((function(t){e.$refs.uPicker.setColumnValues(1,t.data)}))},swiperChange:funct
|