(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesub/index/store","components/payment-box","components/uni-popup/uni-popup"],{"26af":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=(t._self._c,t.__("支付金额")),n=t.__("¥"),i=t.defaultUserMoney&&t.paymentDataDefault.user_recharge_card&&t.blanceChannel.recharge_card?t.sprintf(t.__("充值余额 (¥%s)"),t.paymentDataDefault.user_recharge_card):null,a=t.defaultUserMoney&&t.paymentDataDefault.user_sp&&t.blanceChannel.sp?t.sprintf(t.__("现金券 (¥%s)"),t.paymentDataDefault.user_sp):null,s=t.defaultUserMoney&&(t.userMoney||t.userPoints||t.userSp||t.userRechargeCard)?t.__("请输入支付密码"):null,r=t.__map(t.providerList,(function(e,o){var n=t.__get_orig(e),i=t.$.inArray(t.h5WeChatMPpayList,e.id);return{$orig:n,g0:i}})),c=t.__("确定支付");t.$mp.data=Object.assign({},{$root:{m0:o,m1:n,m2:i,m3:a,m4:s,l0:r,m5:c}})},i=[]},"2ac6":function(t,e,o){"use strict";o.r(e);var n=o("7217"),i=o("9c51");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("8003");var s=o("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"4b80472c",null,!1,n["a"],void 0);e["default"]=r.exports},"36fa":function(t,e,o){"use strict";(function(t,n){var i=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(o("7eb4")),s=i(o("34cf")),r=i(o("7ca3")),c=i(o("ee10")),u=(i(o("e70c")),i(o("2ac6")),i(o("ee53"))),l=o("8f59");function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function d(t){for(var e=1;e0&&(t.$set(t.commonTPL,"cid",e.leaf[0].id),t.$set(t.commonTPL,"currentCategoryId",e.leaf[0].id),t.$set(t.commonTPL,"categoryname",e.leaf[0].store_product_cat_name),t.$set(t.commonTPL,"currentCategoryName",e.leaf[0].store_product_cat_name)),1==t.commonTPL.tapindex||(2==t.commonTPL.tapindex?t.listAllProduct():3==t.commonTPL.tapindex?t.listNewProduct():4==t.commonTPL.tapindex?t.getStoreData():t.commonTPL.tapindex),t.$.stopPullDownRefresh(),t.$.hideLoading()},fail:function(t){}})}))},clickRecommend:function(){this.$set(this.commonTPL,"tapindex",1)},clickListAllProduct:function(){this.$set(this.commonTPL,"tapindex",2),this.listAllProduct()},listAllProduct:function(t){this.$set(this.commonTPL,"pdlist",[]),"shop6"===this.commonTPL.TemplateKey?this.$set(this.commonTPL,"post",Object.assign({},this.commonTPL.post,{store_category_ids:this.commonTPL.currentCategoryId,store_id:this.store_id,orderby:1,sort:2,isnew:!1,curpage:1})):(this.$set(this.commonTPL,"post",Object.assign({},this.commonTPL.post,{store_id:this.store_id,orderby:1,sort:2,isnew:!1,curpage:1,is_activity:3})),this.getProductList())},clickListNewProduct:function(){this.$set(this.commonTPL,"tapindex",3),this.listNewProduct()},listNewProduct:function(){this.$set(this.commonTPL,"pdlist",[]),"shop6"===this.commonTPL.TemplateKey?this.$set(this.commonTPL,"post",Object.assign({},this.commonTPL.post,(0,r.default)({store_category_ids:this.commonTPL.currentCategoryId,store_id:this.store_id,sidx:"product_add_time",sord:"DESC",orderby:1,sort:2,isnew:!0,curpage:1},"store_id",this.store_id))):(this.$set(this.commonTPL,"post",Object.assign({},this.commonTPL.post,{store_id:this.store_id,sidx:"product_add_time",sord:"DESC",orderby:2,sort:2,isnew:!0,curpage:1,is_activity:1})),this.getProductList())},clickGetStoreData:function(){this.$set(this.commonTPL,"tapindex",4),this.getStoreData()},getStoreData:function(){},onViewType:function(){this.$set(this.commonTPL,"viewtype",0===this.commonTPL.viewtype?1:0)},clickSortBySaleNum:function(){this.sortBySaleNum()},sortBySaleNum:function(){this.$set(this.commonTPL,"pdlist",[]),this.$set(this.commonTPL,"post",Object.assign({},this.commonTPL.post,{sidx:"product_sale_num",sord:"DESC",curpage:1})),this.getProductList()},clickNewpd:function(){this.newpd()},newpd:function(){this.$set(this.commonTPL,"pdlist",[]),this.$set(this.commonTPL,"post",Object.assign({},this.commonTPL.post,{sidx:"product_add_time",sord:"DESC",curpage:1})),this.getProductList()},clickSortByPrice:function(){this.sortByPrice()},sortByPrice:function(){this.$set(this.commonTPL,"post",Object.assign({},this.commonTPL.post,{sidx:"product_unit_price",sord:1===this.commonTPL.sort?"DESC":"ASC",curpage:1})),this.$set(this.commonTPL,"sort",1==this.commonTPL.sort?2:1),this.$set(this.commonTPL,"pdlist",[]),this.getProductList()},scrollbottom:function(t){var e=this;if(e.commonTPL.flag){e.setData({flag:!1}),clearTimeout(o);var o=setTimeout((function(){e.$set(e.commonTPL,"post",Object.assign({},e.commonTPL.post,{curpage:e.commonTPL.post.curpage+1})),e.getProductList()}),500)}},getProductList:function(){var t=this;t.$set(t.commonTPL,"flag",!1);var e=Object.assign({},t.commonTPL.post,{isnew:t.commonTPL.post.isnew?1:0,user_cart_quantity:"shop6"===t.commonTPL.TemplateKey?1:0});t.$.request({url:this.Config.URL.store.product,loading:!0,data:e,success:function(e,o,n,i){for(var a=0;a1,e.items[a]["DefaultProductSkuId"]=e.items[a]["item_id"];e.items.length>0?(1==t.commonTPL.post.curpage&&e.items.length<10?(t.$set(t.commonTPL,"flag",!1),t.$set(t.commonTPL,"ispage",!1)):(t.$set(t.commonTPL,"flag",!0),t.$set(t.commonTPL,"ispage",!0)),t.$set(t.commonTPL,"pdlist",t.commonTPL.pdlist.concat(e.items))):(t.$set(t.commonTPL,"flag",!1),t.$set(t.commonTPL,"ispage",!1))}})},scrollView:function(t){t.detail.deltaY<-305&&(this.$set(this.commonTPL,"distance",t.detail.deltaY),this.$set(this.commonTPL,"istop",!0))},scrollTop:function(){this.$set(this.commonTPL,"istop",!1)},returnTop:function(){this.$set(this.commonTPL,"distance",0)},showSupplyProducts:function(){this.$.gopage("/pages/product/list?store_type=2")},getStoreConfig:function(){var t=this,e=this,o={store_id:this.store_id};return new Promise((function(n,i){e.$.request({url:t.Config.URL.store.contents,data:o,loading:!1,success:function(t,o,i,a){if(e.setData({loadStoreConfigComplete:!0}),e.$set(e.commonTPL,"TemplateKey",t.store_template>1e3||"shop7"===t.store_template?"shopdiy":t.store_template),"shopdiy"==e.commonTPL.TemplateKey);else{for(var s=0;s0&&"shop6"==e.commonTPL.TemplateKey&&e.$set(e.commonTPL,"tapindex",2),"shopdiy"==e.commonTPL.TemplateKey&&e.getDivModel(),n("success")},complete:function(t,e){}})}))},sao:function(){var t=this;t.$.scanCode({success:function(e){var o=e.result.split("=");o.length>2||o.length<2?t.$.alert("无法识别"):"productId"==o[0]?t.$.isNull(o[1])?t.$.alert("无法识别"):t.$.navigateTo("/pages/product/detail?pid="+o[1]):"eventId"==o[0]?t.$.isNull(o[1])?t.$.alert("无法识别"):t.$.navigateTo("../activitycheckin/activitycheckin?eventId="+o[1]):t.$.alert("无法识别")},fail:function(e){t.$.alert("无法识别")}})},doReceive:function(){this.cancel(),this.userReceiveCoupon()},cancel:function(){this.setData({isCancel:!1})},cancelsuccess:function(){this.setData({isCancelSuccess:!0})},userReceiveCoupon:function(){var t={CouponIds:"",user_is_new:this.user_is_new},e=this;e.$.xsr(e.$.makeUrl(userapi.UserReceiveCoupon,t),(function(t){0==t.Code?e.setData({isCancelSuccess:!1,Coupons:t.Info}):e.$.alert(t.Msg)}))},onLikeStore:function(t){var e=this;u.default.onLikeStore(t,(function(t){e.commonTPL.shopInfo.analytics.store_collect=1,e.commonTPL.shopInfo.analytics.store_favorite_num++}))},onUnlikeStore:function(t){var e=this;u.default.onUnlikeStore(t,(function(t){e.commonTPL.shopInfo.analytics.store_collect=0,e.commonTPL.shopInfo.analytics.store_favorite_num--}))},previewProductImg:function(t){var e=[];for(var o in this.commonTPL.shopInfo.info.store_slide)this.ProductInfo.productPicList[o].check&&e.push(this.ProductInfo.productPicList[o].img);var n=t.target.dataset.src;this.$.previewImage({current:n,urls:e})},callPhone:function(e){t.makePhoneCall({phoneNumber:e+""})},gotomap:function(t){this.$.openLocation({latitude:parseFloat(t.currentTarget.dataset.lat),longitude:parseFloat(t.currentTarget.dataset.lng),name:t.currentTarget.dataset.name,address:t.currentTarget.dataset.address,scale:28})},getNearbylist:function(){this.post,this.latitude,this.longitude,this.options.store_id,this.$.getStorageSync("city")}})};e.default=f}).call(this,o("df3c")["default"],o("3223")["default"])},"4b22":function(t,e,o){"use strict";o.r(e);var n=o("36fa"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"4bbd":function(t,e,o){"use strict";o.r(e);var n=o("6e73"),i=o("4b22");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("f42b");var s=o("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"df13c9a2",null,!1,n["a"],void 0);e["default"]=r.exports},"62d6":function(t,e,o){"use strict";(function(t,n){var i=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(o("7eb4")),s=i(o("ee10")),r=i(o("7ca3")),c=o("8f59");function u(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function l(t){for(var e=1;e0?t.__("综合体验"):null),n=t.loadStoreInfoComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&""!=t.store_info.store_slogan?t.sprintf(t.__("公告:%s"),t.store_info.store_slogan):null,i=t.loadStoreInfoComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.store_info.analytics.store_collect?t.__("已收藏"):null,a=t.loadStoreInfoComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.store_info.analytics.store_collect<1?t.__("收藏"):null,s=t.loadStoreInfoComplete&&"shopdiy"!=t.commonTPL.TemplateKey?t.sprintf(t.__(" %d 次"),t.store_info.analytics.store_favorite_num):null,r=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&""!=t.commonTPL.TemplateKey&&"shop6"!=t.commonTPL.TemplateKey?t.__("推荐"):null,c=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&""!=t.commonTPL.TemplateKey?t.__("全部商品"):null,u=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&""!=t.commonTPL.TemplateKey?t.__("上新"):null,l=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&""!=t.commonTPL.TemplateKey?t.__("店铺简介"):null,m=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&""!=t.commonTPL.TemplateKey?t.__("供应商"):null,d=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.loadStoreCategoryComplete&&(2!=t.commonTPL.tapindex||"shop6"!=t.commonTPL.TemplateKey)&&2==t.commonTPL.tapindex?t.__("销量"):null,p=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.loadStoreCategoryComplete&&(2!=t.commonTPL.tapindex||"shop6"!=t.commonTPL.TemplateKey)&&2==t.commonTPL.tapindex?t.__("新品"):null,f=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.loadStoreCategoryComplete&&(2!=t.commonTPL.tapindex||"shop6"!=t.commonTPL.TemplateKey)&&2==t.commonTPL.tapindex?t.__("价格"):null,h=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.loadStoreCategoryComplete&&(2!=t.commonTPL.tapindex||"shop6"!=t.commonTPL.TemplateKey)&&2==t.commonTPL.tapindex?t.__map(t.commonTPL.pdlist,(function(e,o){var n=t.__get_orig(e),i=e.ItemSalePrice?t.__("¥"):null,a=e.ItemSalePrice?t.number_format(e.ItemSalePrice,2):null,s=e.product_unit_points?t.number_format(e.product_unit_points):null,r=e.product_unit_points?t.__("积分"):null,c=e.product_unit_sp?t.__("众宝"):null;return{$orig:n,m13:i,m14:a,m15:s,m16:r,m17:c}})):null,g=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.loadStoreCategoryComplete&&(2!=t.commonTPL.tapindex||"shop6"!=t.commonTPL.TemplateKey)&&2==t.commonTPL.tapindex&&t.commonTPL.ispage?t.__("正在加载"):null,_=!t.loadStoreConfigComplete||"shopdiy"==t.commonTPL.TemplateKey||!t.loadStoreCategoryComplete||2==t.commonTPL.tapindex&&"shop6"==t.commonTPL.TemplateKey||2!=t.commonTPL.tapindex||t.commonTPL.ispage?null:t.__("没有更多数据啦!"),P=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.loadStoreCategoryComplete&&(3!=t.commonTPL.tapindex||"shop6"!=t.commonTPL.TemplateKey)&&3==t.commonTPL.tapindex?t.__map(t.commonTPL.pdlist,(function(e,o){var n=t.__get_orig(e),i=e.ItemSalePrice?t.__("¥"):null,a=e.ItemSalePrice?t.number_format(e.ItemSalePrice,2):null,s=e.product_unit_points?t.number_format(e.product_unit_points):null,r=e.product_unit_points?t.__("积分"):null,c=e.product_unit_sp?t.__("众宝"):null;return{$orig:n,m20:i,m21:a,m22:s,m23:r,m24:c}})):null,y=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&t.loadStoreCategoryComplete&&(3!=t.commonTPL.tapindex||"shop6"!=t.commonTPL.TemplateKey)&&3==t.commonTPL.tapindex&&t.commonTPL.ispage?t.__("正在加载"):null,T=!t.loadStoreConfigComplete||"shopdiy"==t.commonTPL.TemplateKey||!t.loadStoreCategoryComplete||3==t.commonTPL.tapindex&&"shop6"==t.commonTPL.TemplateKey||3!=t.commonTPL.tapindex||t.commonTPL.ispage?null:t.__("没有更多数据啦!"),C=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&4==t.commonTPL.tapindex&&t.distance?t.sprintf(t.__("距您 %s"),t.distance):null,L=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&4==t.commonTPL.tapindex?t.__("联系商家"):null,v=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&5==t.commonTPL.tapindex?t.comment_row.length:null,w=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&5==t.commonTPL.tapindex&&v>0?t.__("我也说两句~"):null,b=t.loadStoreConfigComplete&&"shopdiy"!=t.commonTPL.TemplateKey&&5==t.commonTPL.tapindex&&v>0?t.__("去评论~"):null,S=!t.loadStoreConfigComplete||"shopdiy"==t.commonTPL.TemplateKey||5!=t.commonTPL.tapindex||v>0?null:t.__("暂时没有评论哦~"),$=!t.loadStoreConfigComplete||"shopdiy"==t.commonTPL.TemplateKey||5!=t.commonTPL.tapindex||v>0?null:t.__("去评论~"),x=t.loadStoreConfigComplete&&t.loadStoreConfigComplete&&"shopdiy"==t.commonTPL.TemplateKey?t.__("销量"):null,I=t.loadStoreConfigComplete&&t.loadStoreConfigComplete&&"shopdiy"==t.commonTPL.TemplateKey?t.__("新品"):null,k=t.loadStoreConfigComplete&&t.loadStoreConfigComplete&&"shopdiy"==t.commonTPL.TemplateKey?t.__("价格"):null,D=t.loadStoreConfigComplete&&t.loadStoreConfigComplete&&"shopdiy"==t.commonTPL.TemplateKey?t.__map(t.commonTPL.pdlist,(function(e,o){var n=t.__get_orig(e),i=e.ItemSalePrice?t.__("¥"):null,a=e.ItemSalePrice?t.number_format(e.ItemSalePrice,2):null,s=e.product_unit_points?t.number_format(e.product_unit_points):null,r=e.product_unit_points?t.__("积分"):null,c=e.product_unit_sp?t.__("众宝"):null;return{$orig:n,m36:i,m37:a,m38:s,m39:r,m40:c}})):null,O=t.loadStoreConfigComplete&&t.loadStoreConfigComplete&&"shopdiy"==t.commonTPL.TemplateKey&&t.commonTPL.ispage?t.__("正在加载"):null,M=t.loadStoreConfigComplete&&t.loadStoreConfigComplete&&"shopdiy"==t.commonTPL.TemplateKey&&!t.commonTPL.ispage?t.__("没有更多数据啦!"):null;t.$mp.data=Object.assign({},{$root:{m0:o,m1:n,m2:i,m3:a,m4:s,m5:r,m6:c,m7:u,m8:l,m9:m,m10:d,m11:p,m12:f,l0:h,m18:g,m19:_,l1:P,m25:y,m26:T,m27:C,m28:L,g0:v,m29:w,m30:b,m31:S,m32:$,m33:x,m34:I,m35:k,l2:D,m41:O,m42:M}})},a=[]},7217:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={uniTransition:function(){return o.e("components/uni-transition/uni-transition").then(o.bind(null,"46d2"))}},i=function(){var t=this.$createElement;this._self._c},a=[]},7339:function(t,e,o){},8003:function(t,e,o){"use strict";var n=o("c7d0"),i=o.n(n);i.a},"9ac3":function(t,e,o){"use strict";var n=o("7339"),i=o.n(n);i.a},"9c51":function(t,e,o){"use strict";o.r(e);var n=o("f87a"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},b762:function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("ec76");n(o("3240"));var i=n(o("4bbd"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},c152:function(t,e,o){},c7d0:function(t,e,o){},d26e:function(t,e,o){"use strict";o.r(e);var n=o("62d6"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},e70c:function(t,e,o){"use strict";o.r(e);var n=o("26af"),i=o("d26e");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("9ac3");var s=o("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=r.exports},f42b:function(t,e,o){"use strict";var n=o("c152"),i=o.n(n);i.a},f87a:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"UniPopup",components:{uniTransition:function(){o.e("components/uni-transition/uni-transition").then(function(){return resolve(o("46d2"))}.bind(null,o)).catch(o.oe)}},props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},maskClick:{type:Boolean,default:!0}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0}}},watch:{type:{handler:function(t){switch(this.type){case"top":this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0};break;case"bottom":this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0};break;case"center":this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"};break}},immediate:!0}},created:function(){this.animation?this.duration=300:this.duration=0},methods:{clear:function(t){t.stopPropagation()},open:function(){var t=this;this.showPopup=!0,this.$nextTick((function(){clearTimeout(t.timer),t.timer=setTimeout((function(){t.showTrans=!0}),50)})),this.$emit("change",{show:!0})},close:function(t){var e=this;this.showTrans=!1,this.$nextTick((function(){clearTimeout(e.timer),e.timer=setTimeout((function(){e.$emit("change",{show:!1}),e.showPopup=!1}),300)}))},onTap:function(){this.maskClick&&this.close()}}};e.default=n}},[["b762","common/runtime","common/vendor"]]]);