zx/public/static/js/pages-columnGoods-goods_lis...

1 line
37 KiB
JavaScript
Raw Permalink Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-columnGoods-goods_list-index"],{"171d0":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("fd3c"),i("bf0f"),i("2797"),i("aa9c"),i("d4b5"),i("c223"),i("dc69");var r=a(i("39d8")),n=a(i("2634")),o=a(i("9b1b")),s=a(i("2fdc")),c=i("7e00"),d=a(i("d3e2")),p=a(i("c7e7")),l=a(i("0389")),u=i("d727"),f=i("96e0"),h=i("8f59"),v=i("4a82"),w=i("aa10"),m=i("e44d"),g=(getApp(),(0,r.default)({computed:(0,f.configMap)({hide_mer_status:1,recommend_switch:0},(0,h.mapGetters)(["uid","isLogin","scrollTop","viewColor","keyColor"])),components:{recommend:d.default,rightSlider:p.default,WaterfallsFlow:l.default},watch:{},data:function(){return{domain:w.HTTP_REQUEST_URL,productList:[],list:[],storeTypeArr:[],parmasList:[],is_switch:!0,where:{cate_pid:"",order:"",price_on:"",price_off:"",brand_id:"",mer_type_id:"",keyword:"",is_trader:"",filter_params:"",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,brandStataus:!1,parmasStatus:!1,brandList:[],downKey:0,downStatus:!1,downMenu:[{title:"综合",key:1},{title:"评分",key:2},{title:"新品",key:3}],firstKey:0,sotreParam:{keyword:"",page:1,limit:30,order:""},storeKey:0,storeScroll:!0,activeIndex:0}},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:{goShop:function(t){1!=this.hide_mer_status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},getStoreType:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],(0,c.getStoreTypeApi)().then((function(e){i=e.data.map((function(t){return(0,o.default)((0,o.default)({},t),{},{check:!1})})),t.storeTypeArr=i})).catch((function(e){t.$util.Tips({title:e})}));case 2:case"end":return e.stop()}}),e)})))()},getParmasList:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],(0,c.getParmasList)({cate_pid:t.where.cate_pid,keyword:t.where.keyword}).then((function(e){t.parmasStatus=!0,i=e.data.map((function(t){return(0,o.default)((0,o.default)({},t),{},{check:!1,showValue:!1,parmasValue:[]})})),t.parmasList=i})).catch((function(e){t.$util.Tips({title:e})}));case 2:case"end":return e.stop()}}),e)})))()},bindRight:function(){this.price=0,this.firstKey=4,this.brandList.length||this.getBrandlist(),this.storeTypeArr.length||this.getStoreType(),this.parmasList.length||this.getParmasList(),this.rightBox=!0},getBrandlist:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],(0,c.getBrandlist)({cate_pid:t.where.cate_pid,keyword:t.where.keyword}).then((function(e){t.brandStataus=!0,i=e.data.list.map((function(t){return(0,o.default)((0,o.default)({},t),{},{check:!1})})),t.brandList=i}));case 2:case"end":return e.stop()}}),e)})))()},godDetail:function(t){var e=this;(0,v.goShopDetail)(t,this.uid).then((function(i){e.isLogin?(0,u.initiateAssistApi)(t.activity_id).then((function(t){var e=t.data.product_assist_set_id;uni.hideLoading(),uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+e})})).catch((function(t){uni.showToast({title:t,icon:"none"})})):(0,m.toLogin)()}))},confirm:function(t,e){var i=[],a=[];0==t.brandList.length?this.where.brand_id="":(t.brandList.forEach((function(t){i.push(t.brand_id)})),this.where.brand_id=i.toString()),0==t.typeList.length?this.where.mer_type_id="":(t.typeList.forEach((function(t){a.push(t.mer_type_id)})),this.where.mer_type_id=a.toString()),this.activeIndex=e,this.where.filter_params=JSON.stringify(t.parmasList),this.righ