You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
22 KiB
1 line
22 KiB
9 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-columnGoods-goods_list-index"],{"15e0":function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=a(e("ade3")),r=a(e("5530"));e("99af"),e("d81d"),e("d3b7"),e("159b"),e("14d9"),e("26e9");var s=e("111c"),n=a(e("5380")),d=a(e("4197")),c=a(e("d920")),l=e("3b3e"),p=e("4f1b"),h=e("26cb"),u=a(e("f272")),f=e("bd9e"),v=e("8342"),g=(getApp(),(0,o.default)({computed:(0,p.configMap)({hide_mer_status:1,recommend_switch:0},(0,h.mapGetters)(["uid","isLogin","scrollTop","viewColor","keyColor"])),components:{recommend:n.default,rightSlider:d.default,WaterfallsFlow:c.default,authorize:u.default},watch:{tabIndex:function(t,i){1==t?(this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)):(this.downStatus=!1,this.storeMerchantList())}},data:function(){return{domain:v.HTTP_REQUEST_URL,productList:[],list:[],is_switch:!0,where:{cate_pid:"",order:"",price_on:"",price_off:"",brand_id:"",keyword:"",page:1,limit:30},price:0,stock:0,nows:!1,loadend:!1,loading:!1,loadTitle:"加载更多",title:"",hostProduct:[],hotPage:1,hotLimit:10,hotScroll:!1,rightBox:!1,brandList:[],downKey:0,downStatus:!1,downMenu:[{title:"综合",key:1},{title:"评分",key:2},{title:"新品",key:3}],firstKey:0,tabIndex:1,storeList:[],sotreParam:{keyword:"",page:1,limit:30,order:""},storeKey:0,storeScroll:!0,isShowAuth:!1,isAuto:!1}},onPageScroll:function(){uni.$emit("scroll")},onLoad:function(t){this.$set(this.where,"cate_pid",t.id||""),this.title=t.title||"",this.$set(this.where,"keyword",t.searchValue||""),this.get_product_list(!0),this.get_host_product()},onReady:function(){},mounted:function(){},methods:{onLoadFun:function(){this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},goShop:function(t){1!=this.hide_mer_status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},storeMerchantList:function(){var t=this;this.storeScroll&&(0,s.storeMerchantList)({keyword:this.where.keyword,page:this.sotreParam.page,limit:this.sotreParam.limit,order:this.sotreParam.order}).then((function(i){t.storeScroll=i.data.list.length>=t.sotreParam.limit,t.sotreParam.page+=1,t.storeList=t.storeList.concat(i.data.list)}))},storeTab:function(t){this.storeKey=t,this.sotreParam.order=0==t?"":1==t?"sales":"rate",this.sotreParam.page=1,this.storeScroll=!0,this.storeList=[],this.storeMerchantList()},bindRight:function(){this.price=0,this.firstKey=4,this.getBrandlist()},getBrandlist:function(){var t=this,i=[];(0,s.getBrandlist)({cate_pid:this.where.cate_pid,keyword:this.where.keyword}).then((function(e){i=e.data.list.map((function(t){return(0,r.default)((0,r.default)({},t),{},{check:!1})})),t.where.brand_id.length>0&&t.where.brand_id.forEach((function(t,e){i.forEach((function(i){t==i.brand_id&&(i.check=!0)}))})),t.brandList=i,t.rightBox=!0}))},godDetail:function(t){var i=this;(0,f.goShopDetail)(t,this.uid).then((function(e){i.isLogin?(0,l.initiateAssistApi)(t.activity_id).then((function(t){var i=t.data.product_assist_set_id;uni.hideLoading(),uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+i})})).catch((function(t){uni.showToast({title:t,icon:"none"})})):(i.isAuto=!0,i.isShowAuth=!0)}))},confirm:function(t){var i=[];0==t.brandList.length?this.where.brand_id="":(t.brandList.forEach((function(t){i.push(t.brand_id)})),this.where.brand_id=i),this.rightBox=t.status,this.where.price_on=t.price_on,this.where.price_off=t.price_off,this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)},close:function(){this.rightBox=!1},bindDown:function(t,i){this.firstKey=0,0==i?this.where.order="":1==i?this.where.order="rate":2==i&&(this.where.order="is_new"),this.downKey=i,this.downStatus=!1,this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)},Changswitch:function(){this.is_switch=!this.is_switch},searchSubmit:function(t){this.$set(this.where,"keyword",t.detail.value),1==this.tabIndex?(this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)):(this.sotreParam.page=1,this.storeScroll
|