shop-php/public/static.dev/js/pages-store-home-index.21792485.js

1 line
58 KiB
JavaScript
Raw Normal View History

2023-09-05 14:13:48 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-home-index"],{3068:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG8AAAATCAMAAACp+6PoAAAAZlBMVEUAAADpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPKqB2aAAAAIXRSTlMA/Onfy7+oG9LPxrOrloaAbWBNRzkjHgTukHJxPzIvCgcVzGbCAAAAnUlEQVRIx73QRxLDIBQDUNzAce9OT/79LxnBTAaXtdBG6M1fof4x9aR8+JyLrKhQPInIAx2KC9gVHYhnsek9UHkZC2fJMCs2v5syEZ84u41UlnNwyePqRCkuiawPdPngksl6T+6QyuXxH9gceTOYbF7E54XN5ufGOmw2dxvT2Gyu7Ijb1FaOzeZEJGpWpfoYD2w2D1lt3OPbZncUk38iPXa8mx9k4gAAAABJRU5ErkJggg=="},"385b":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("ac1f"),i("5319"),i("acd8"),i("e25e"),i("4e82"),i("b64b"),i("d81d"),i("99af"),i("c975"),i("26e9");var o=a(i("5530")),n=(a(i("095d")),a(i("151e"))),s=a(i("0a72")),c=i("94e5"),r=i("0cc1"),d=i("7f7e"),l=i("ea97"),v=i("0cdc"),u=i("26cb"),f=i("c211"),g=a(i("b68a")),h=a(i("2a1e")),p=a(i("a0cf")),m=a(i("cdbe")),w=i("350b"),b=a(i("a600")),y=getApp(),A={components:(0,o.default)((0,o.default)({},b.default),{},{authorize:g.default,emptyPage:p.default,WaterfallsFlow:n.default,easyLoadimage:s.default}),mixins:[h.default],filters:{dateFormat:function(t){return t?t.split(" ")[0].replace("-","."):""}},data:function(){return{isTriggered:!1,domain:w.HTTP_REQUEST_URL,id:0,store:{},goods:[],category:[],coupon:[],productList:[],styleConfig:[],isColumn:!1,navShow:!1,navActive:0,diyActive:1,tabActive:0,isCoupon:0,keyword:"",order:"",sortPrice:!0,goodsLoading:!1,categoryLoading:!1,loadTitle:"加载更多",isShowAuth:!1,isAuto:!1,where:{order:"",keyword:"",page:1,limit:10},select:{show:!1,selected:0,options:[{id:0,name:"默认"},{id:1,name:"评分"}]},tabs1:[{icon:"icon-yizhan_o",name:"首页",value:1},{icon:"icon-gouwu_o",name:"商品",value:3},{icon:"icon-baoguo_huanbaohe_o",name:"生活服务",value:5},{icon:"icon-yingyongAPP_o",name:"分类",value:2},{icon:"icon-liwu_o",name:"专场",value:4}],tabs2:[{icon:"icon-yizhan_o",name:"首页",value:1},{icon:"icon-gouwu_o",name:"商品",value:3},{icon:"icon-yingyongAPP_o",name:"分类",value:2},{icon:"icon-zhuanti",name:"专场",value:4}],tabs3:[{icon:"icon-yizhan_o",name:"云商品",value:7},{icon:"icon-gouwu_o",name:"商品",value:3},{icon:"icon-yingyongAPP_o",name:"分类",value:2}],tabs4:[{icon:"icon-gouwu_o",name:"商品",value:3},{icon:"icon-yingyongAPP_o",name:"分类",value:2}],tabs:[],storeScroll:!0,storeTop:0,navHeight:0,currSpid:"",topicList:[],service_open:!1,type:3,statusBarHeight:0,isLihaiYun:""}},computed:(0,o.default)({score:function(){var t=this.store,e={star:0,number:0};return"postage_score"in t&&(e.number=(parseFloat(t.postage_score)+parseFloat(t.product_score)+parseFloat(t.service_score))/3,e.star=e.number/5*100),e}},(0,v.configMap)({margin_ico_switch:0,margin_ico:""},(0,u.mapGetters)(["isLogin","uid","viewColor","keyColor"]))),watch:{tabActive:function(t,e){switch(t){case 1:0==this.goods.length&&0==this.isCoupon?(this.resetParmas(),this.where.order=1==this.order?"is_new":"",this.where.action=2==this.order?1:"",this.getGoods()):1==this.isCoupon&&this.getCoupon();break;case 2:this.getCategory();break;case 3:this.where={order:"",keyword:"",page:1,limit:10},this.getGoods();break;case 4:this.getTopic();break;case 5:0==this.productList.length&&(this.resetParmas(),this.get_service_list());break;case 6:this.getCoupon();break;case 7:this.getProductSpu();break}}},onLoad:function(t){this.isLihaiYun=t.LihaiYun,this.type=parseInt(t.type)||3,this.id=t.mer_id||t.id||0,this.isCoupon=t.coupon||0,this.diyActive=t.order||0,this.order=t.order,t.spid&&(this.currSpid=t.spid,y.globalData.spid=t.spid),this.getStore(),this.diyData(),(0,m.default)(this.currSpid,this.isLogin),this.isLogin,this.statusBarHeight=uni.getSystemInfoSync().statusBarHeight+"px"},onShow:function(){},onReady:function(){},mounted:function(){var t=this,e=uni.createSelectorQuery().in(this);e.select("#store").boundingClientRect((function(e){t.storeHeight=e.height,t.store