(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-home-index"],{"0389":function(t,e,i){"use strict";i.r(e);var a=i("5d3b"),n=i("3b77");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("0716");var s=i("828b"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"97f0e66a",null,!1,a["a"],void 0);e["default"]=r.exports},"0716":function(t,e,i){"use strict";var a=i("8e3e"),n=i.n(a);n.a},"13f0":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box"},[e("v-uni-image",{attrs:{src:this.noImage}}),e("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},n=[]},"20df":function(t,e,i){"use strict";i.r(e);var a=i("e975"),n=i("a31e");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("62f9");var s=i("828b"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"868923b4",null,!1,a["a"],void 0);e["default"]=r.exports},"252e":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.tab-cont[data-v-868923b4]{min-height:%?500?%}.noPointer[data-v-868923b4]{pointer-events:none}[data-v-868923b4] .care{background-image:none!important;border:1px solid #fff;background-color:initial}.store-home[data-v-868923b4]{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;padding-bottom:%?100?%;padding-bottom:calc(100rpx+ constant(safe-area-inset-bottom));padding-bottom:calc(%?100?% + env(safe-area-inset-bottom));background:0 0/%?750?% %?390?% no-repeat fixed;overflow:hidden;touch-action:none}.store-home[data-v-868923b4]::before{content:"";width:100%;background:linear-gradient(180deg,rgba(51,51,51,0),#f5f5f5);position:absolute;height:%?132?%;top:%?265?%;left:0;z-index:0}.header[data-v-868923b4]{position:relative;z-index:6;display:flex;align-items:center;padding-right:%?34?%;height:43px;padding-left:%?33?%}.header .head-menu[data-v-868923b4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:27px;width:70px;background:hsla(0,0%,100%,.1);border-radius:13px}.header .head-menu .icon-ic_leftarrow[data-v-868923b4]{font-size:%?32?%;color:#fff}.header .head-menu .iconfont[data-v-868923b4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center;color:#fff;box-sizing:border-box}.header .head-menu .iconfont.icon-ic_leftarrow[data-v-868923b4]{border-right:1px solid hsla(0,0%,100%,.3)}.header .search[data-v-868923b4]{flex:1;display:flex;align-items:center;min-width:0;height:%?58?%;border-radius:%?30?%;margin-left:%?32?%;background-color:hsla(0,0%,100%,.1);font-weight:500;font-size:%?26?%;color:#ccc}.header .search .iconfont[data-v-868923b4]{margin-right:%?13?%;margin-left:%?30?%;font-size:%?30?%}.main_count[data-v-868923b4]{background-color:#f5f5f5;padding:%?20?%}.main_count .list[data-v-868923b4]{width:%?710?%;height:%?280?%;margin-bottom:%?20?%;position:relative}.main_count .list .picture[data-v-868923b4]{width:%?710?%;height:%?280?%;border-radius:%?24?%}.main[data-v-868923b4]{flex:1;min-height:%?0?%;box-sizing:border-box;padding:0}.store[data-v-868923b4]{position:relative;z-index:6;display:flex;align-items:center;padding-right:%?20?%;padding-left:%?20?%;padding-top:%?20?%;padding-bottom:%?22?%}.store uni-image[data-v-868923b4]{width:%?74?%;height:%?74?%;border-radius:%?6?%}.store .store-margin[data-v-868923b4]{width:%?26?%;height:%?26?%;margin-left:%?10?%}.store .kefu[data-v-868923b4]{color:#fff;margin-right:%?26?%;cursor:pointer}.store .kefu .icon-ic_customerservice[data-v-868923b4]{font-size:%?34?%}.store .text[data-v-868923b4]{flex:1;min-width:0;margin-right:%?20?%;margin-left:%?20?%}.store .text uni-navigator[data-v-868923b4]{display:inline-flex;align-items:center;max-width:100%}.store .text uni-navigator .name[data-v-868923b4]{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:700;font-size:%?30?%;line-height:1;color:#fff}.store .text uni-navigator .iconfont[data-v-868923b4]{margin-left:%?10?%;font-size:%?24?%;color:#fff}.store .text .score[data-v-868923b4]{display:flex;align-items:center;margin-top:%?17?%;font-weight:500;font-size:%?24?%;line-height:1;color:#fff}.store .text .score .star[data-v-868923b4]{position:relative;width:%?111?%;height:%?19?%;margin-right:%?10?%;overflow:hidden}.store .text .score .star uni-view[data-v-868923b4]{position:absolute;top:0;left:0;width:100%;height:100%}.store uni-button[data-v-868923b4]{display:flex;justify-content:center;align-items:center;width:%?124?%;height:%?50?%;border-radius:%?26?%;background-image:linear-gradient(-90deg,var(--view-bntColor21),var(--view-bntColor22));font-size:%?22?%;color:#fff}.store uni-button .iconfont[data-v-868923b4]{margin-right:%?6?%;font-size:%?22?%}.store uni-button.gary[data-v-868923b4]{background-color:#999}.font-bg-red[data-v-868923b4]{background-color:var(--view-theme)}.nav.fixed[data-v-868923b4]{position:fixed;left:0;width:100%}.nav.fixed .nav-cont[data-v-868923b4]{position:absolute;width:100%}.nav[data-v-868923b4]{position:relative}.nav .nav-cont[data-v-868923b4]{display:flex;align-items:center;height:%?84?%}.nav .nav-cont .item[data-v-868923b4]{flex:1;display:flex;justify-content:center;align-items:center;min-width:0}.nav .nav-cont .item .cont[data-v-868923b4]{display:flex;justify-content:center;align-items:center;width:%?116?%;height:%?44?%;border-radius:%?22?%;font-weight:500;font-size:%?24?%;color:#fff}.nav .nav-cont .item .cont .arrow-icon[data-v-868923b4]{margin-left:%?10?%;font-size:%?18?%}.nav .nav-cont .item .cont .layout-icon[data-v-868923b4]{font-size:%?32?%}.nav .nav-cont .item .cont .icon-a-ic_Imageandtextsorting[data-v-868923b4]{font-size:%?32?%}.nav .nav-cont .item .cont uni-image[data-v-868923b4]{width:%?15?%;height:%?21?%;margin-left:%?7?%}.nav .nav-cont .active .cont[data-v-868923b4]{background-color:#fff;font-weight:700;color:var(--view-theme)}.nav .select[data-v-868923b4]{position:absolute;top:100%;left:0;z-index:2;width:100%;padding-right:%?40?%;padding-bottom:%?28?%;padding-left:%?74?%;border-bottom-right-radius:%?24?%;border-bottom-left-radius:%?24?%;background-color:#fff;box-shadow:0 2px 10px 0 rgba(0,0,0,.06)}.nav .select .item[data-v-868923b4]{margin-top:%?28?%;font-size:%?24?%;color:#454545}.nav .select .active[data-v-868923b4]{color:var(--view-theme)}.nav .select .active .iconfont[data-v-868923b4]{color:var(--view-theme);float:right;font-size:%?20?%}.goods[data-v-868923b4]{display:flex;flex-wrap:wrap;justify-content:space-between;padding:0 %?20?%;background-color:#f5f5f5;width:%?750?%}.goods .item[data-v-868923b4]{width:%?345?%;border-radius:%?16?%;background-color:#fff;overflow:hidden}.goods .item .sell_out[data-v-868923b4]{display:flex;width:%?110?%;height:%?110?%;align-items:center;justify-content:center;border-radius:100%;background:rgba(0,0,0,.6);color:#fff;font-size:%?24?%;position:absolute;top:50%;left:50%;margin:%?-55?% 0 0 %?-55?%}.goods .item .sell_out[data-v-868923b4]::before{content:"";display:block;width:%?100?%;height:%?100?%;border-radius:100%;border:1px dashed #fff;position:absolute;top:%?5?%;left:%?5?%}.goods .item .image[data-v-868923b4], .goods .item .easy-loadimage[data-v-868923b4], .goods .item uni-image[data-v-868923b4], .goods .item uni-image[data-v-868923b4]{width:%?345?%;height:%?345?%}.goods .item .image uni-image[data-v-868923b4], .goods .item .easy-loadimage uni-image[data-v-868923b4], .goods .item uni-image uni-image[data-v-868923b4], .goods .item uni-image uni-image[data-v-868923b4]{display:block;width:100%;height:100%}.goods .item .text[data-v-868923b4]{padding:%?20?% %?20?% %?25?%}.goods .item .text .name[data-v-868923b4]{font-weight:500;font-size:%?30?%;line-height:1;display:flex;align-items:center}.goods .item .text .name .name_text[data-v-868923b4]{max-width:%?440?%}.goods .item .text .money-wrap[data-v-868923b4]{display:flex;align-items:baseline;margin-top:%?43?%}.goods .item .text .money-wrap .money[data-v-868923b4]{font-weight:700;font-size:%?26?%;color:var(--view-priceColor)}.goods .item .text .money-wrap .money uni-text[data-v-868923b4]{font-size:%?34?%;line-height:1}.goods .item .text .score[data-v-868923b4]{margin-top:%?14?%;font-weight:500;font-size:%?22?%;line-height:1;color:#666}.goods .item .item_tags[data-v-868923b4]{margin-top:%?8?%}.goods .item .item_tags .tags_item[data-v-868923b4]{display:inline-block;font-size:%?20?%;text-align:center;border-radius:%?5?%;padding:0 %?4?%;line-height:%?28?%;margin-right:%?8?%}.goods .item .item_tags .tags_item.ticket[data-v-868923b4]{border:1px solid var(--view-theme);color:var(--view-theme)}.goods .item .item_tags .tags_item.delivery[data-v-868923b4]{color:#ff9000;border:1px solid #ff9000}.goods .item .foot[data-v-868923b4]{display:flex;justify-content:center;align-items:center;height:%?52?%;background-image:linear-gradient(-90deg,var(--view-bntColor21),var(--view-bntColor22));font-weight:500;font-size:%?24?%;color:#fff}.goods .item .foot .iconfont[data-v-868923b4]{margin-right:%?10?%;font-size:%?22?%;line-height:1}.column[data-v-868923b4]{padding:0 0 %?20?%;background-color:#fff}.column .item[data-v-868923b4]{position:relative;display:flex;justify-content:space-between;width:100%;padding:0 %?20?%;border-radius:0;margin-top:%?30?%}.column .item[data-v-868923b4] .image, .column .item[data-v-868923b4] .easy-loadimage, .column .item[data-v-868923b4] uni-image, .column .item[data-v-868923b4] uni-image{width:%?270?%;height:%?270?%;border-radius:%?24?%;overflow:hidden;position:relative}.column .item .border-picture[data-v-868923b4]{position:absolute;top:0;left:0;width:100%;height:100%;background:50%/cover no-repeat;border-radius:%?24?%}.column .item .text[data-v-868923b4]{position:relative;width:%?420?%;height:%?270?%;padding:%?10?% 0 0}.column .item .text .name[data-v-868923b4]{color:#282828;width:100%;display:flex}.column .item .text .item_bot[data-v-868923b4]{width:100%}.column .item .text .money-wrap[data-v-868923b4]{display:flex;align-items:baseline;margin-top:%?52?%}.column .item .text .money-wrap .ticket[data-v-868923b4]{height:%?28?%;padding-right:%?12?%;padding-left:%?12?%;border:none;border-radius:0;margin-top:%?17?%;margin-left:0;line-height:%?28?%}.column .item .foot[data-v-868923b4]{position:absolute;right:%?20?%;bottom:%?30?%;height:%?44?%;padding-right:%?17?%;padding-left:%?17?%;border-radius:%?22?%;font-size:%?22?%;color:#f5f5f5}.category[data-v-868923b4]{padding:%?20?% %?20?% 0}.category .section[data-v-868923b4]{margin-bottom:%?18?%}.category .section .head[data-v-868923b4]{position:relative;display:flex;align-items:center;height:%?90?%;padding-right:%?20?%;padding-left:%?36?%;color:#282828}.category .section .head[data-v-868923b4]::before{content:" ";position:absolute;top:50%;left:%?20?%;width:%?6?%;height:%?24?%;background-color:var(--view-theme);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.category .section .head .title[data-v-868923b4]{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:%?30?%;font-weight:700}.category .section .head .iconfont[data-v-868923b4]{font-size:%?24?%;line-height:1;color:#999}.category .section .body[data-v-868923b4]{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:%?9?% %?36?% %?16?%}.category .section .body .item[data-v-868923b4]{width:%?314?%;height:%?84?%;padding-right:%?30?%;padding-left:%?30?%;border-radius:%?16?%;background-color:#f5f5f5;margin-bottom:%?10?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500;font-size:%?26?%;line-height:%?84?%;color:#282828}.coupon[data-v-868923b4]{padding:%?30?%;background-color:#f5f5f5}.coupon .item[data-v-868923b4]{display:flex;margin-bottom:%?16?%}.coupon .item .left[data-v-868923b4]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:%?240?%;font-weight:500;font-size:%?24?%;line-height:1;color:#fff;background-size:100% 100%}.coupon .item .left .money[data-v-868923b4]{margin-bottom:%?25?%;font-weight:800;font-size:%?36?%}.coupon .item .left .money .int[data-v-868923b4]{font-size:%?52?%}.coupon .item .right[data-v-868923b4]{flex:1;min-width:0;padding-right:%?18?%;padding-left:%?27?%;background-color:#fff;position:relative;overflow:hidden;border-radius:0 %?24?% %?24?% 0}.coupon .item .right .name[data-v-868923b4]{padding:%?30?% 0;border-bottom:1px solid #f5f5f5;font-weight:500;font-size:%?30?%;line-height:1;color:#282828}.coupon .item .right .name .label[data-v-868923b4]{display:inline-block;text-align:center;line-height:%?28?%;padding:0 %?14?%;-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--view-minorColor);border:1px solid var(--view-theme);opacity:1;border-radius:%?26?%;font-size:%?20?%;color:var(--view-theme);margin-right:%?12?%}.coupon .item .right .name .label.gary[data-v-868923b4]{border-color:#bbb;color:#bbb;background-color:#f5f5f5}.coupon .item .right .name uni-text[data-v-868923b4]{display:inline-block;max-width:%?290?%}.coupon .item .right .time-wrap[data-v-868923b4]{display:flex;align-items:center;padding:%?12?% 0;font-size:%?20?%;color:#999}.coupon .item .right .time-wrap .time[data-v-868923b4]{flex:1;min-width:0}.coupon .item .right .time-wrap .button[data-v-868923b4]{width:%?136?%;height:%?52?%;border-radius:%?26?%;background-color:var(--view-theme);font-weight:500;font-size:%?22?%;line-height:%?52?%;text-align:center;color:#fff}.coupon .item .right .time-wrap .gary[data-v-868923b4]{font-size:%?130?%;color:#dfdfdf;position:absolute;right:%?-15?%;z-index:0;bottom:%?-20?%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.footer[data-v-868923b4]{position:fixed;bottom:0;left:0;z-index:100;display:flex;width:100%;height:%?100?%;height:calc(100rpx+ constant(safe-area-inset-bottom));height:calc(%?100?% + env(safe-area-inset-bottom));background-color:#fff;border-top:%?2?% solid #eee}.footer .item[data-v-868923b4]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;font-weight:500;font-size:%?20?%;color:#282828}.footer .item .iconfont[data-v-868923b4]{font-size:%?43?%;color:#333;margin-bottom:%?12?%}.footer .active[data-v-868923b4]{color:var(--view-theme)}.footer .active .iconfont[data-v-868923b4]{color:var(--view-theme)}.p-b-75[data-v-868923b4]{padding-bottom:%?150?%}.vip-money[data-v-868923b4]{color:#282828;font-size:%?22?%;margin-left:%?6?%;font-weight:700}.vipImg[data-v-868923b4]{width:%?65?%;height:%?28?%;margin-left:%?4?%}.vipImg uni-image[data-v-868923b4]{width:100%!important;height:100%!important;display:block}.category-loading-gap[data-v-868923b4]{margin-top:%?120?%}',""]),t.exports=e},"3b77":function(t,e,i){"use strict";i.r(e);var a=i("9356"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"518e":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5c47"),i("a1c1"),i("e838"),i("e966"),i("c223"),i("bf0f"),i("2797"),i("4100"),i("dc8a"),i("fd3c"),i("5ef2"),i("aa9c"),i("dc69");var n=a(i("b7c7")),o=a(i("9b1b")),s=(a(i("fea3")),a(i("0389"))),r=a(i("23ab")),c=i("7e00"),l=i("d727"),d=i("02aa"),v=i("672a"),u=i("96e0"),h=i("8f59"),g=i("4a82"),p=a(i("1240")),f=a(i("73c1")),m=a(i("8329")),w=a(i("5b60")),b=a(i("3e37")),_=i("aa10"),y=i("e44d"),C=a(i("0176")),x=getApp(),k={components:(0,o.default)((0,o.default)({},C.default),{},{emptyPage:m.default,WaterfallsFlow:s.default,easyLoadimage:r.default,productWindow:w.default}),mixins:[f.default],filters:{dateFormat:function(t){return t?t.split(" ")[0].replace("-","."):""}},data:function(){return{domain:_.HTTP_REQUEST_URL,id:0,store:{},goods:[],category:[],coupon:[],productList:[],styleConfig:[],isColumn:!0,navShow:!1,navActive:0,diyActive:0,tabActive:0,isCoupon:0,keyword:"",order:"",sortPrice:!0,goodsLoading:!1,categoryLoading:!1,loadTitle:"加载更多",loadend:!1,where:{order:"",keyword:"",page:1,limit:30},select:{show:!1,selected:0,options:[{id:0,name:"默认"},{id:1,name:"评分"}]},tabs1:[{icon:"icon-ic_mall",name:"首页",value:1},{icon:"icon-ic_gift1",name:"商品",value:3},{icon:"icon-ic_commodity",name:"生活服务",value:5},{icon:"icon-a-ic_Picturearrangement",name:"分类",value:2},{icon:"icon-a-ic_crown",name:"专场",value:4}],tabs2:[{icon:"icon-ic_mall",name:"首页",value:1},{icon:"icon-ic_gift1",name:"商品",value:3},{icon:"icon-a-ic_Picturearrangement",name:"分类",value:2},{icon:"icon-a-ic_crown",name:"专场",value:4}],tabs:[],storeScroll:!0,storeTop:0,navHeight:0,currSpid:"",topicList:[],service_open:!1,type:0,statusBarHeight:0,serviceInfo:{},preview:!1,max_count:0,min_count:0,pay_limit:1,svipData:{},svipPrice:!1,attr:{cartAttr:!1,productAttr:[],productSelect:{}},storeInfo:{},cart_num:1,isOpen:!1,selectedArr:[],productValue:[],attrValue:"",uniqueValue:""}},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,u.configMap)({margin_ico_switch:0,margin_ico:""},(0,h.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.resetParmas(),this.goods=[],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}}},onLoad:function(t){this.type=parseInt(t.type)||1,this.id=t.mer_id||t.id||0,this.isCoupon=t.coupon||0,this.diyActive=t.order||0,this.order=t.order,this.preview=!!t.time,t.spid&&(this.currSpid=t.spid,x.globalData.spid=t.spid),this.getStore(),this.diyData(),(0,b.default)(this.currSpid,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.storeTop=e.top})).exec()},methods:{goCustomer:function(){if(!1===this.isLogin)(0,y.toLogin)();else{var t=this.store.services_type,e={type:t.services_type,service_phone:t.service_phone,customer_url:t.mer_customer_url,customer_corpId:t.mer_customer_corpId,customer_link:t.mer_customer_link},i="/pages/chat/customer_list/chat?mer_id=".concat(this.store.mer_id,"&uid=").concat(this.uid);(0,u.getCustomer)(e,i)}},onTouchmove:function(t){var e=this;if(!this.loadend&&!this.loading&&!this.goodsLoading){var i=uni.createSelectorQuery().in(this);i.select("#goods").boundingClientRect((function(t){t.bottom<1500&&t.top<0&&e.getGoods()})).exec()}},onTouchmoves:function(t){var e=this;if(!this.loadend&&!this.loading&&!this.goodsLoading){var i=uni.createSelectorQuery().in(this);i.select("#product").boundingClientRect((function(t){t.bottom<1500&&t.top<0&&e.get_service_list()})).exec()}},authOpen:function(){(0,y.toLogin)()},setDiy:function(){this.diyActive=0},diyData:function(){var t=this;(0,d.getDiy)({id:t.id,version:"221"}).then((function(e){var i=e.data;t.styleConfig=t.objToArr(i.value),t.styleConfig.forEach((function(t,e,a){t.did=i.id})),uni.setNavigationBarTitle({title:i.title})})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},objToArr:function(t){var e=Object.keys(t).sort(),i=e.map((function(e){return t[e]}));return i},get_service_list:function(t){var e=this;e.loadend||e.loading||e.goodsLoading||(e.goodsLoading=!0,e.loadTitle="",(0,c.storeServiceList)(e.id,e.where).then((function(t){e.goodsLoading=!1;var i=t.data.list,a=e.$util.SplitArray(i,e.productList),n=i.length0||t.mer_form_id?e.goGoodsDetail(t):(e.storeInfo=t,p.default.getProductSpecs(t.spu_id,(function(i){e.$set(e,"attr",i.attr),e.$set(e.attr.productSelect,"store_name",t.store_name),e.$set(e,"productValue",i.productValue),e.$set(e,"attrValue",i.attrValue),e.$set(e,"svipPrice",t.show_svip_info&&t.show_svip_info.show_svip_price||!1),e.$set(e.attr,"cartAttr",!0),e.$set(e,"isOpen",!0)})))},onMyEvent:function(){this.$set(this.attr,"cartAttr",!1),this.$set(this,"isOpen",!1)},attrVal:function(t){this.$set(this.attr.productAttr[t.indexw],"index",this.attr.productAttr[t.indexw].attr_values[t.indexn])},iptCartNum:function(t){this.$set(this.attr.productSelect,"cart_num",t)},ChangeAttr:function(t){var e=this.productValue[t];this.attr.productSelect=(0,o.default)((0,o.default)({},this.attr.productSelect),e),(!e||e.stock<=0)&&(this.$set(this.attr.productSelect,"stock",0),this.$set(this.attr.productSelect,"unique",""),this.$set(this.attr.productSelect,"cart_num",0))},ChangeCartNum:function(t){var e=this.productValue[this.attrValue];p.default.ChangeCartNum(e,this.attr,t,(function(t){this.$set(this.attr.productSelect,"cart_num",t)}))},goCat:function(){var t=this,e=t.productValue[this.attrValue];if(t.attrValue?t.attr.cartAttr=!t.isOpen:t.isOpen?t.attr.cartAttr=!0:t.attr.cartAttr=!t.attr.cartAttr,!0===t.attr.cartAttr&&!1===t.isOpen)return t.isOpen=!0;if(t.isOpen=t.attr.cartAttr=!0,t.attr.productAttr.length&&!0===t.isOpen&&0==e.stock)return t.$util.Tips({title:"产品库存不足,请选择其它"});if(0==t.attr.productSelect.cart_num)return t.$util.Tips({title:"购买个数不能为0!"});var i={is_new:0,product_id:t.storeInfo.product_id,cart_num:t.attr.productSelect.cart_num,product_attr_unique:void 0!==t.attr.productSelect?t.attr.productSelect.unique:"",product_type:t.storeInfo.product_type};p.default.addCart(i,(function(){t.isOpen=t.attr.cartAttr=!1}))},scrollHome:function(t){uni.$emit("scroll"),this.navShow=t.detail.scrollTop>=50},goback:function(){uni.navigateBack()},goHome:function(){uni.switchTab({url:"/pages/index/index"})},tab:function(t){this.tabActive=t,this.goodsLoading=this.loadend=this.loading=!1},resetParmas:function(){this.where={order:"",keyword:"",page:1,limit:30}},ShareInfo:function(){var t=this,e=this.store,i=location.href;this.$wechat.isWeixin()&&(0,v.getUserInfo)().then((function(a){i=-1===i.indexOf("?")?i+"?spid="+a.data.uid:i+"&spid="+a.data.uid;var n={desc:e.mer_info,title:e.mer_name,link:i,imgUrl:e.mer_avatar};t.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],n).then((function(t){})).catch((function(t){}))}))}},onReachBottom:function(){var t=this;0==this.tabActive&&setTimeout((function(){var e;(e=t.goods).push.apply(e,(0,n.default)(t.goods))}),500)},onPullDownRefresh:function(){var t=this;setTimeout((function(){var e=t.goods.reverse();t.goods=e,uni.stopPullDownRefresh()}),500)}};e.default=k},"52fb":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.wf-page[data-v-97f0e66a]{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px}.wf-item[data-v-97f0e66a]{width:calc((100vw - 2 * 10px - 10px) / 2);margin-bottom:10px;position:relative}.wf-page1 .wf-item[data-v-97f0e66a]{margin-top:%?20?%;background-color:#fff;border-radius:%?24?%;padding-bottom:0}.wf-item-page[data-v-97f0e66a]{padding-bottom:%?20?%}',""]),t.exports=e},"5d3b":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={WaterfallsFlowItem:i("90e3").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{class:"wf-page wf-page"+t.type},[i("v-uni-view",[t.leftList.length?i("v-uni-view",{attrs:{id:"left"}},t._l(t.leftList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"wf-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.itemTap(e)}}},[i("WaterfallsFlowItem",{attrs:{item:e,isStore:t.isStore,addCart:t.addCart,type:t.type},on:{goShop:function(e){arguments[0]=e=t.$handleEvent(e),t.goShop.apply(void 0,arguments)},addCat:function(e){arguments[0]=e=t.$handleEvent(e),t.addCat.apply(void 0,arguments)}}})],1)})),1):t._e()],1),i("v-uni-view",[t.rightList.length?i("v-uni-view",{attrs:{id:"right"}},t._l(t.rightList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"wf-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.itemTap(e)}}},[i("WaterfallsFlowItem",{attrs:{item:e,isStore:t.isStore,addCart:t.addCart,type:t.type},on:{goShop:function(e){arguments[0]=e=t.$handleEvent(e),t.goShop.apply(void 0,arguments)},addCat:function(e){arguments[0]=e=t.$handleEvent(e),t.addCat.apply(void 0,arguments)}}})],1)})),1):t._e()],1)],1)},o=[]},"62f9":function(t,e,i){"use strict";var a=i("b939"),n=i.n(a);n.a},8329:function(t,e,i){"use strict";i.r(e);var a=i("13f0"),n=i("c4bf");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("ad31");var s=i("828b"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"07efc1fe",null,!1,a["a"],void 0);e["default"]=r.exports},"8e3e":function(t,e,i){var a=i("52fb");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("fe940e2a",a,!0,{sourceMap:!1,shadowMode:!1})},9356:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("bf0f"),i("2797"),i("aa9c"),i("5c47");var n=a(i("90e3")),o={components:{WaterfallsFlowItem:n.default},props:{wfList:{type:Array,require:!0},updateNum:{type:Number,default:10},type:{type:Number,default:0},isStore:{type:[String,Number],default:"1"},addCart:{type:Boolean,require:!1}},data:function(){return{allList:[],leftList:[],rightList:[],mark:0,boxHeight:[]}},watch:{wfList:{handler:function(t,e){var i=this;(!this.wfList.length||this.wfList.length===this.updateNum&&this.wfList.length<=this.allList.length)&&(this.allList=[],this.leftList=[],this.rightList=[],this.boxHeight=[],this.mark=0),this.wfList.length&&(this.allList=this.wfList,this.leftList=[],this.rightList=[],this.boxHeight=[],this.allList.forEach((function(t,e){(i.allList.length<3||i.allList.length<=7&&i.allList.length-e>1||i.allList.length>7&&i.allList.length-e>2)&&(e%2?i.rightList.push(t):i.leftList.push(t))})),this.allList.length<3?this.mark=this.allList.length+1:this.allList.length<=7?this.mark=this.allList.length-1:this.mark=this.allList.length-2,this.markthis.boxHeight[1]?1:0;e?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t])}else this.rightList.length0?[i("v-uni-view",{staticClass:"main_count"},t._l(t.topicList,(function(t,e){return i("v-uni-navigator",{key:t.group_data_id,attrs:{url:"/pages/activity/topic_detail/index?id="+t.group_data_id,"hover-class":"none"}},[i("v-uni-view",{staticClass:"list"},[i("v-uni-image",{staticClass:"picture",attrs:{src:t.pic}})],1)],1)})),1)]:[i("emptyPage",{attrs:{title:"暂无活动专场哦~"}})]],2)],1)],1),i("v-uni-view",{staticClass:"footer",class:{noPointer:t.preview},style:t.viewColor},t._l(t.tabs,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",class:{active:t.tabActive===e.value},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.tab(e.value)}}},[i("v-uni-view",{class:["iconfont",e.icon]}),i("v-uni-view",[t._v(t._s(e.name))])],1)})),1),i("productWindow",{attrs:{attr:t.attr,isShow:!0,iSplus:1,destri:0,isList:!0,id:"product-window",payLimit:t.pay_limit,maxCount:t.max_count,minCount:t.min_count,svipPrice:t.svipPrice,image:t.storeInfo.image},on:{myevent:function(e){arguments[0]=e=t.$handleEvent(e),t.onMyEvent.apply(void 0,arguments)},ChangeAttr:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangeAttr.apply(void 0,arguments)},ChangeCartNum:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangeCartNum.apply(void 0,arguments)},attrVal:function(e){arguments[0]=e=t.$handleEvent(e),t.attrVal.apply(void 0,arguments)},goCat:function(e){arguments[0]=e=t.$handleEvent(e),t.goCat.apply(void 0,arguments)},iptCartNum:function(e){arguments[0]=e=t.$handleEvent(e),t.iptCartNum.apply(void 0,arguments)}}})],1)},o=[]},eb2d:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-07efc1fe]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?120?%}.empty-box uni-image[data-v-07efc1fe]{width:%?414?%;height:%?305?%}.empty-box .txt[data-v-07efc1fe]{font-size:%?26?%;color:#999}',""]),t.exports=e},fb63:function(t,e,i){var a=i("eb2d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("c382cd32",a,!0,{sourceMap:!1,shadowMode:!1})}}]);