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 lines
18 KiB
1 lines
18 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-index"],{"2e85":function(t,e,i){var a=i("24fb");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/* 文章场景相关 */uni-page-body[data-v-06ac7b86]{display:flex;flex-direction:column}.main[data-v-06ac7b86]{padding:0 %?20?%}.colum0[data-v-06ac7b86]{white-space:nowrap;display:flex}.ysize[data-v-06ac7b86]{background-size:100%}.fullsize[data-v-06ac7b86]{background-size:100% 100%}.repeat[data-v-06ac7b86]{background-repeat:repeat}.noRepeat[data-v-06ac7b86]{background-repeat:no-repeat}.area-row[data-v-06ac7b86]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;width:100%;text-align:center}.page-index[data-v-06ac7b86]{display:flex;flex-direction:column;min-height:100%}.page-index .page_content .page_bg[data-v-06ac7b86]{background:linear-gradient(180deg,#fff,#f5f5f5)}.page-index .page_content .nav[data-v-06ac7b86]{padding:0 %?0?% %?30?%;flex-wrap:wrap;margin-top:0}.page-index .page_content .nav .item[data-v-06ac7b86]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:20%;margin-top:%?30?%}.page-index .page_content .nav .item uni-image[data-v-06ac7b86]{width:%?82?%;height:%?82?%}.page-index .page_content .index-product-wrapper .nav-bd[data-v-06ac7b86]{display:flex;align-items:center}.page-index .page_content .index-product-wrapper .nav-bd .item[data-v-06ac7b86]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:25%}.page-index .page_content .index-product-wrapper .nav-bd .item .txt[data-v-06ac7b86]{font-size:%?32?%;color:#282828}.page-index .page_content .index-product-wrapper .nav-bd .item .label[data-v-06ac7b86]{display:flex;align-items:center;justify-content:center;width:%?124?%;height:%?32?%;margin-top:%?5?%;font-size:%?24?%;color:#999}.page-index .page_content .index-product-wrapper .nav-bd .item.active[data-v-06ac7b86]{color:#e93323}.page-index .page_content .index-product-wrapper .nav-bd .item.active .label[data-v-06ac7b86]{background:linear-gradient(90deg,#f62c2c,#f96e29);border-radius:%?16?%;color:#fff}.page-index .page_content .index-product-wrapper .list-box[data-v-06ac7b86]{display:flex;flex-wrap:wrap;justify-content:space-between}.page-index .page_content .index-product-wrapper .list-box .item[data-v-06ac7b86]{width:%?345?%;margin-bottom:%?20?%;background-color:#fff;border-radius:10px;overflow:hidden}.page-index .page_content .index-product-wrapper .list-box .item uni-image[data-v-06ac7b86]{width:100%;height:%?345?%}.page-index .page_content .index-product-wrapper .list-box .item .text-info[data-v-06ac7b86]{padding:%?10?% %?20?% %?15?%}.page-index .page_content .index-product-wrapper .list-box .item .text-info .title[data-v-06ac7b86]{color:#222}.page-index .page_content .index-product-wrapper .list-box .item .text-info .old-price[data-v-06ac7b86]{margin-top:%?8?%;font-size:%?26?%;color:#aaa;text-decoration:line-through}.page-index .page_content .index-product-wrapper .list-box .item .text-info .old-price uni-text[data-v-06ac7b86]{margin-right:2px;font-size:%?20?%}.page-index .page_content .index-product-wrapper .list-box .item .text-info .price[data-v-06ac7b86]{display:flex;align-items:flex-end;color:#e93323;font-size:%?34?%;font-weight:800}.page-index .page_content .index-product-wrapper .list-box .item .text-info .price uni-text[data-v-06ac7b86]{padding-bottom:%?4?%;font-size:%?24?%;font-weight:400}.page-index .page_content .index-product-wrapper .list-box .item .text-info .price .txt[data-v-06ac7b86]{display:flex;align-items:center;justify-content:center;width:%?28?%;height:%?28?%;margin-left:%?15?%;margin-bottom:%?10?%;border:1px solid #e93323;border-radius:%?4?%;font-size:%?22?%;font-weight:400}.page-index .page_content .index-product-wrapper .list-box.on[data-v-06ac7b86]{display:flex}.productList[data-v-06ac7b86]{background-color:#f1f1f1;min-height:70vh}.productList .sort[data-v-06ac7b86]{width:%?710?%;max-height:%?380?%;background:#fff;border-radius:%?16?%;padding:%?8?% %?0?% %?30?%;flex-wrap:wrap;margin:%?25?% auto 0 auto}.productList .sort.no_pad[data-v-06ac7b86]{padding:0}.productList .sort .item[data-v-06ac7b86]{width:20%;margin-top:%?30?%;text-align:center}.productList .sort .item .pictrues[data-v-06ac7b86]{width:%?90?%;height:%?90?%;background:#f8f8f8;border-radius:50%;margin:0 auto}.productList .sort .item uni-image[data-v-06ac7b86]{width:%?90?%;height:%?90?%}.productList .sort .item .text[data-v-06ac7b86]{color:#272727;font-size:%?24?%;margin-top:%?10?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.productList .list[data-v-06ac7b86]{padding:0 %?20?%}.productList .list.on[data-v-06ac7b86]{background-color:#fff;border-top:1px solid #f6f6f6}.productList .list .item[data-v-06ac7b86]{width:%?345?%;margin-top:%?20?%;background-color:#fff;border-radius:%?10?%}.productList .list .item .name[data-v-06ac7b86]{display:flex;align-items:center}.productList .list .item .name .name_text[data-v-06ac7b86]{display:inline-block;max-width:%?200?%}.productList .list .item.on[data-v-06ac7b86]{width:100%;display:flex;border-bottom:1px solid #f6f6f6;padding:%?30?% 0;margin:0}.productList .list .item .pictrue[data-v-06ac7b86]{position:relative;width:100%;height:%?345?%}.productList .list .item .pictrue.on[data-v-06ac7b86]{width:%?180?%;height:%?180?%}.productList .list .item .pictrue uni-image[data-v-06ac7b86],\n.productList .list .item .pictrue uni-image[data-v-06ac7b86],\n.productList .list .item .pictrue .easy-loadimage[data-v-06ac7b86]{width:100%;height:100%;border-radius:%?10?% %?10?% 0 0}.productList .list .item .pictrue uni-image.on[data-v-06ac7b86]{border-radius:%?6?%}.productList .list .item .text[data-v-06ac7b86]{padding:%?14?% %?17?% %?26?% %?17?%;font-size:%?28?%;color:#212121}.productList .list .item .text.on[data-v-06ac7b86]{width:%?508?%;padding:0 0 0 %?22?%}.productList .list .item .text .money[data-v-06ac7b86]{font-size:%?26?%;font-weight:700;margin-top:%?8?%}.productList .list .item .text .coupon[data-v-06ac7b86]{background:#fff8f7;border:1px solid #e93323;border-radius:%?4?%;font-size:%?20?%;margin-left:%?18?%;padding:%?1?% %?4?%}.productList .list .item .text .money.on[data-v-06ac7b86]{margin-top:%?50?%}.productList .list .item .text .money .num[data-v-06ac7b86]{font-size:%?34?%}.productList .list .item .text .vip[data-v-06ac7b86]{font-size:%?22?%;color:#aaa;margin-top:%?7?%}.productList .list .item .text .vip.on[data-v-06ac7b86]{margin-top:%?12?%}.productList .list .item .text .vip .vip-money[data-v-06ac7b86]{font-size:%?24?%;color:#282828;font-weight:700}.productList .list .item .text .vip .vip-money uni-image[data-v-06ac7b86]{width:%?46?%;height:%?21?%;margin-left:%?4?%}.pictrue[data-v-06ac7b86]{position:relative}.combination-item[data-v-06ac7b86]{width:%?328?%;height:%?180?%;display:inline-block;background-size:100%;position:relative;background-size:cover;border-radius:%?16?%}.combination-item .img-box[data-v-06ac7b86]{width:%?122?%;height:%?122?%;position:absolute}.combination-item .img-box uni-image[data-v-06ac7b86], .combination-item .img-box .easy-loadimage[data-v-06ac7b86], .combination-item .img-box uni-image[data-v-06ac7b86]{width:%?122?%;height:%?122?%}.combination-item .name[data-v-06ac7b86]{font-size:%?30?%;color:#333;font-weight:700;line-height:%?32?%}.combination-item .price[data-v-06ac7b86]{display:block;font-size:%?30?%;font-weight:700;margin-top:%?8?%;color:#e93323}.combination-item .price uni-text[data-v-06ac7b86]{font-size:%?20?%}',""]),t.exports=e},5362:function(t,e,i){var a=i("2e85");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("531a33d7",a,!0,{sourceMap:!1,shadowMode:!1})},"554e":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,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{class:2==t.bgTabVal?"fullsize noRepeat":1==t.bgTabVal?"repeat ysize":"noRepeat ysize",style:"overflow-x:hidden;background-color:"+t.bgColor+";background-image: url("+t.bgPic+");min-height:"+t.windowHeight+"px;"},[i("skeleton",{ref:"skeleton",attrs:{show:t.showSkeleton,isNodes:t.isNodes,loading:"chiaroscuro",selector:"skeleton",bgcolor:"#FFF"}}),t.errorNetwork?t._e():i("v-uni-view",{style:{visibility:t.showSkeleton?"hidden":"visible"}},[i("v-uni-view",{staticClass:"page-index skeleton"},[[t._l(t.styleConfig,(function(e,a){return i("v-uni-view",{key:a},["headerSerch"!=e.name&&"tabNav"!=e.name?[i(e.name,{tag:"component",attrs:{index:a,isFixed:t.isFixed,dataConfig:e,tempArr:t.tempArr,userInfo:t.userInfo,tabTitle:t.navTop,merId:t.mer_id,navIndex:t.navIndex,communityStatus:t.community_status},on:{detail:function(e){arguments[0]=e=t.$handleEvent(e),t.goDetail.apply(void 0,arguments)}}})]:t._e(),"headerSerch"==e.name?[i("headerSerch",{tag:"headerSerch",attrs:{isFixed:t.isFixed,dataConfig:e,tempArr:t.tempArr,userInfo:t.userInfo,tabTitle:t.navTop,merId:t.mer_id},on:{detail:function(e){arguments[0]=e=t.$handleEvent(e),t.goDetail.apply(void 0,arguments)}}})]:t._e(),"tabNav"==e.name?[i("tabNav",{tag:"tabNav",attrs:{isFixed:t.isFixed,dataConfig:e,tempArr:t.tempArr,merId:t.mer_id,userInfo:t.userInfo,tabTitle:t.navTop},on:{detail:function(e){arguments[0]=e=t.$handleEvent(e),t.goDetail.apply(void 0,arguments)}}})]:t._e()],2)})),i("v-uni-view",[t.tempArr.length&&"promotionList"==t.styleConfig[t.styleConfig.length-1].name?i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e()],1)]],2)],1),i("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth,isGoIndex:!1},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},n=[]},"5a21":function(t,e,i){"use strict";i.r(e);var a=i("ca04"),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},"7e96":function(t,e,i){"use strict";i.r(e);var a=i("554e"),n=i("5a21");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("8085");var d=i("f0c5"),r=Object(d["a"])(n["default"],a["b"],a["c"],!1,null,"06ac7b86",null,!1,a["a"],void 0);e["default"]=r.exports},8085:function(t,e,i){"use strict";var a=i("5362"),n=i.n(a);n.a},ca04:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("3ca3"),i("ddb0"),i("4e82"),i("b64b"),i("d81d"),i("159b"),i("3c65");var n=a(i("ade3")),o=a(i("5530")),d=i("c6c3"),r=i("ef5b"),s=(i("31bd"),i("bd9e")),c=i("26cb"),u=i("111c"),l=i("3b3e"),p=a(i("2e74")),f=a(i("f272")),g=i("4f1b"),h=a(i("d6af")),m=a(i("b272")),b=a(i("ae65")),v=uni.getSystemInfoSync().statusBarHeight+"px",x=getApp(),w={computed:(0,g.configMap)({hide_mer_status:0,community_status:0,share_title:""},(0,c.mapGetters)(["isLogin","uid"])),mixins:[h.default],components:(0,o.default)((0,o.default)({easyLoadimage:b.default},p.default),{},{authorize:f.default}),data:function(){var t;return t={styleConfig:[],showSkeleton:!0,isNodes:0,errorNetwork:!1,ad:{home_ad_pic:""},userInfo:{},loading:!1,isAuto:!1,isShowAuth:!1,statusBarHeight:v,navTop:[],subscribe:!1,itemNew:[],menus:[{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""},{url:"",pic:"",id:"",name:""}],window:!1,iShidden:!1,couponList:[],lovely:[],marTop:0,datatime:0,mer_id:"",loadend:!1},(0,n.default)(t,"loading",!1),(0,n.default)(t,"loadTitle","加载更多"),(0,n.default)(t,"sortProduct",[]),(0,n.default)(t,"where",{pid:0,page:1,limit:6}),(0,n.default)(t,"hostProduct",[]),(0,n.default)(t,"hotPage",1),(0,n.default)(t,"hotLimit",30),(0,n.default)(t,"hotScroll",!0),(0,n.default)(t,"hotLoading",!1),(0,n.default)(t,"hotTitle","加载更多"),(0,n.default)(t,"prodeuctTop",0),(0,n.default)(t,"pinkInfo",""),(0,n.default)(t,"searchH",0),(0,n.default)(t,"domOffsetTop",50),(0,n.default)(t,"isFixed",!1),(0,n.default)(t,"goodScroll",!0),(0,n.default)(t,"params",{page:1,limit:10}),(0,n.default)(t,"tempArr",[]),(0,n.default)(t,"numConfig",0),(0,n.default)(t,"swiperCur",0),(0,n.default)(t,"brandList",[]),(0,n.default)(t,"d",""),(0,n.default)(t,"h",""),(0,n.default)(t,"m",""),(0,n.default)(t,"s",""),(0,n.default)(t,"sum_h",""),(0,n.default)(t,"sortMarTop",0),(0,n.default)(t,"mpHeight",0),(0,n.default)(t,"currSpid",""),(0,n.default)(t,"mer_id",""),(0,n.default)(t,"navIndex",0),(0,n.default)(t,"_options",{}),(0,n.default)(t,"activity_banner",!0),(0,n.default)(t,"activityData",[]),(0,n.default)(t,"sortMpTop",0),(0,n.default)(t,"isHeaderSerch",!1),(0,n.default)(t,"bgColor",""),(0,n.default)(t,"bgPic",""),(0,n.default)(t,"bgTabVal",""),(0,n.default)(t,"windowHeight",0),t},onLoad:function(t){var e=this,i=this;this._options=t,this.mer_id=this._options.id,i.$nextTick((function(){uni.getSystemInfo({success:function(t){i.windowHeight=t.windowHeight}})})),this.pageLoad(t),setTimeout((function(){e.isNodes++}),100)},onShow:function(){},onHide:function(){},onReady:function(){},watch:{},onPullDownRefresh:function(){setTimeout((function(){uni.stopPullDownRefresh()}),100)},methods:{pageLoad:function(t){t.spid&&(this.currSpid=t.spid,x.globalData.spid=t.spid),(0,m.default)(this.currSpid,this.isLogin),this.isLogin&&(0,g.silenceBindingSpread)(),this.getIndexConfig(),Promise.all([this.diyData()]),this.isLogin&&this.getUserInfo()},bindHeighta:function(t){},objToArr:function(t){var e=Object.keys(t).sort(),i=e.map((function(e){return t[e]}));return i},diyData:function(){var t=this;(0,r.getDiy)({id:this.mer_id}).then((function(e){setTimeout((function(){t.isNodes++}),0),t.errorNetwork=!1;var i=e.data;i.is_bg_color&&(t.bgColor=i.color_picker),i.is_bg_pic&&(t.bgPic=i.bg_pic,t.bgTabVal=i.bg_tab_val),uni.setNavigationBarTitle({title:e.data.title}),e.data.value&&""!=e.data.value?(t.styleConfig=t.objToArr(e.data.value),t.styleConfig.forEach((function(e,i,a){"headerSerch"==e.name&&(t.isHeaderSerch=!0)}))):uni.redirectTo({url:"/pages/store/home/index?id="+t.mer_id})})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},onLoadFun:function(t){this.isShowAuth=!1},goMenuDetail:function(t){if("/pages/goods_cate/goods_cate"==t.url){var e=this.$util.stringIntercept(t.url,1,"?");e=this.$util.stringIntercept(e,1,"="),uni.setStorageSync("storeIndex",e),uni.switchTab({url:"/pages/goods_cate/goods_cate"})}else uni.navigateTo({url:t.url})},goDetails:function(t){var e=this;(0,s.goShopDetail)(t,this.uid).then((function(i){e.isLogin?(0,l.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"})})):(e.isAuto=!0,e.isShowAuth=!0)}))},getUserInfo:function(){var t=this;(0,d.getUserInfo)().then((function(e){t.userInfo=e.data}))},get_product_list:function(){var t=this;t.loading||(t.loading=!0,t.loadTitle="",(0,u.getProductslist)(t.where).then((function(e){var i=e.data.list,a=t.$util.SplitArray(i,t.sortProduct),n=i.length<t.where.limit;t.loadend=n,t.loading=!1,t.loadTitle=n?"已全部加载":"加载更多",t.$set(t,"sortProduct",a),t.$set(t.where,"page",t.where.page+1)})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"})))},getIndexConfig:function(){var t=this;(0,u.getStoreCategory)(this.mer_id).then((function(e){t.$set(t,"menus",e.data.menu),e.data.unshift({cate_name:"首页"}),t.$set(t,"navTop",e.data),t.reloadData()}))},reloadData:function(){var t=this;setTimeout((function(){t.showSkeleton=!1}),500)},authColse:function(t){this.isShowAuth=t},goDetail:function(t){!t.activity||"2"!==t.activity.type||this.isLogin?(0,s.goShopDetail)(t,this.uid).then((function(e){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})})):uni.showModal({title:"提示",content:"您未登录,请登录!",success:function(t){t.confirm?uni.navigateTo({url:"/pages/users/login/index"}):t.cancel}})},godDetail:function(t){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})},goCombinDetail:function(t){uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.product_group_id)})},countTime:function(){var t=new Date,e=t.getTime(),i=new Date("2020-10-22 23:23:23"),a=i.getTime(),n=a-e;n>=0&&(this.d=Math.floor(n/1e3/60/60/24),this.h=Math.floor(n/1e3/60/60%24),this.m=Math.floor(n/1e3/60%60),this.s=Math.floor(n/1e3%60),this.sum_h=24*this.d+this.h),setTimeout(this.countTime,1e3)}},mounted:function(){},onReachBottom:function(){},onPageScroll:function(t){var e=this;this.isHeaderSerch?(t.scrollTop>this.domOffsetTop&&(this.isFixed=!0),t.scrollTop<this.domOffsetTop&&this.$nextTick((function(){e.isFixed=!1}))):this.isFixed=!1,uni.$emit("scroll")}};e.default=w}}]); |