| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-columnGoods-goods_coupon_list-index~pages-columnGoods-goods_list-index~pages-columnGoods-goods~c4769b8c"],{"0389":function(t,e,i){"use strict";i.r(e);var n=i("5d3b"),a=i("3b77");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("0716");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"97f0e66a",null,!1,n["a"],void 0);e["default"]=s.exports},"0716":function(t,e,i){"use strict";var n=i("8e3e"),a=i.n(n);a.a},"2b3f":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("9b1b"));i("dc69");var o=i("8f59"),r=i("4a82"),s=i("d727"),u=i("e44d"),c=n(i("0389")),l=i("aa10"),d=n(i("5b60")),p=n(i("1240")),f={components:{WaterfallsFlow:c.default,productWindow:d.default},computed:(0,o.mapGetters)(["uid"]),props:{hostProduct:{type:Array,default:function(){return[]}},indexP:{type:Boolean,default:!1},isLogin:{type:Boolean,default:!1},isTab:{type:Boolean,default:!1},isCart:{type:Boolean,default:!1},isCustom:{type:Boolean,default:function(){return!1}}},data:function(){return{domain:l.HTTP_REQUEST_URL,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:""}},mounted:function(){},watch:{},onPullDownRefresh:function(){var t=this;setTimeout((function(){var e=t.hostProduct.reverse();t.hostProduct=e,uni.stopPullDownRefresh()}),500)},methods:{goDetail:function(t){var e=this;1==t.cate_hot?uni.navigateTo({url:"/pages/goods_recommend/index?id="+t.product_id}):(0,r.goShopDetail)(t,this.uid).then((function(i){e.isLogin?(0,s.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,u.toLogin)()}))},selecAttr:function(t){var e=this,i=t.product?t.product.type:t.type;0==t.product_type&&0!=i||t.product_type>0||t.mer_form_id?e.goDetail(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,"svipPrice",t.show_svip_info&&t.show_svip_info.show_svip_price||!1),e.$set(e,"productValue",i.productValue),e.$set(e,"attrValue",i.attrValue),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,a.default)((0,a.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,t.isCart&&(t.$emit("getCartNum"),t.$emit("getCartList"))}))}}};e.default=f},"336e":function(t,e,i){"use strict";i.r(e);var n=i("2b3f"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"376f":function(t,e,i){"use strict";i.r(e);var n=i("efcd"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"3abf":function(t,e,i){"use strict";var n=i("5bd6"),a=i.n(n);a.a},"3b77":function(t,e,i){"use strict";i.r(e);var n=i("9356"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"42f8":function(t,e,i){var n=i("4b69");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("00ce4ae0",n,!0,{sourceMap:!1,shadowMode:!1})},"4a82":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=function(t,e){return new Promise((function(e){1===t.product_type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.product_id,"&time=").concat(t.stop_time)}):2===t.product_type?uni.navigateTo({url:"/pages/activity/presell_details/index?id=".concat(t.activity_id)}):0===t.product_type||10===t.product_type?uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.product_id)}):4===t.product_type?uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.activity_id)}):40===t.product_type?uni.navigateTo({url:"/pages/activity/combination_status/index?id=".concat(t.activity_id)}):e(t)}))},i("bf0f"),i("c223")},"4b69":function(t,e,i){var n=i("c86c");e=n(!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/* 文章场景相关 */.common-hd[data-v-5c2ec0c7]{display:flex;align-items:center;justify-content:center;height:%?118?%}.common-hd .title[data-v-5c2ec0c7]{padding:0 %?80?%;font-size:%?34?%;color:#e93323;font-weight:700;background-repeat:no-repeat;background-size:100% auto;background-position:0}.recommend .recommendList[data-v-5c2ec0c7]{min-height:%?100?%}.recommend .recommendList.on[data-v-5c2ec0c7]{padding:0}[data-v-5c2ec0c7] .looming-gray{border-radius:%?16?% %?16?% 0 0}',""]),t.exports=e},"52fb":function(t,e,i){var n=i("c86c");e=n(!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},"5b60":function(t,e,i){"use strict";i.r(e);var n=i("fe44"),a=i("376f");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("3abf");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"bba7aac0",null,!1,n["a"],void 0);e["default"]=s.exports},"5bd6":function(t,e,i){var n=i("bd34");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("6550b5bc",n,!0,{sourceMap:!1,shadowMode:!1})},"5d3b":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={WaterfallsFlowItem:i("90e3").default},a=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,n){return i("v-uni-view",{key:n,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,n){return i("v-uni-view",{key:n,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=[]},"8e3e":function(t,e,i){var n=i("52fb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("fe940e2a",n,!0,{sourceMap:!1,shadowMode:!1})},9356:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("bf0f"),i("2797"),i("aa9c"),i("5c47");var a=n(i("90e3")),o={components:{WaterfallsFlowItem:a.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.mark<this.allList.length&&this.waterFall())},immediate:!0,deep:!0},mounted:function(){},mark:function(){var t=this.allList.length;this.mark<t&&0!==this.mark&&this.boxHeight.length&&this.waterFall()}},methods:{waterFall:function(){var t=this.mark;if(0==t)this.leftList.push(this.allList[t]),this.getViewHeight(0);else if(1==t)this.rightList.push(this.allList[t]),this.getViewHeight(1);else{if(this.boxHeight.length){var e=this.boxHeight[0]>this.boxHeight[1]?1:0;e?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t])}else this.rightList.length<this.leftList.length?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t]);this.getViewHeight()}},getViewHeight:function(){var t=this;this.$nextTick((function(){setTimeout((function(){uni.createSelectorQuery().in(t).select("#right").boundingClientRect((function(e){e&&(t.boxHeight[1]=e.height),uni.createSelectorQuery().in(t).select("#left").boundingClientRect((function(e){e&&(t.boxHeight[0]=e.height),t.mark=t.mark+1})).exec()})).exec()}),100)}))},itemTap:function(t){this.$emit("itemTap",t)},goShop:function(t){this.$emit("goShop",t)},addCat:function(t){this.$emit("addCat",t)}}};e.default=o},aa4b:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={WaterfallsFlow:i("0389").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.hostProduct.length>0?i("v-uni-view",{staticClass:"pad20"},[i("v-uni-view",{staticClass:"recommend"},[i("v-uni-view",{staticClass:"common-hd"},[i("v-uni-view",{staticClass:"title",style:{"background-image":"url("+t.domain+"/static/images/index-title.png)"}},[t._v("为你推荐")])],1),i("v-uni-view",{staticClass:"recommendList",class:t.indexP?"on":""},[i("WaterfallsFlow",{attrs:{wfList:t.hostProduct,addCart:!0,type:0},on:{itemTap:function(e){arguments[0]=e=t.$handleEvent(e),t.goDetail.apply(void 0,arguments)},addCat:function(e){arguments[0]=e=t.$handleEvent(e),t.selecAttr.apply(void 0,arguments)}}})],1)],1),i("productWindow",{attrs:{attr:t.attr,isShow:!0,iSplus:1,destri:0,isList:!0,isTab:t.isTab,isCustom:t.isCustom,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):t._e()},o=[]},bd34:function(t,e,i){var n=i("c86c");e=n(!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/* 文章场景相关 */.product-window[data-v-bba7aac0]{position:fixed;bottom:0;width:100%;left:0;background-color:#fff;z-index:77;border-radius:%?40?% %?40?% 0 0;padding-bottom:%?150?%;padding-bottom:calc(150rpx+ constant(safe-area-inset-bottom));padding-bottom:calc(%?150?% + env(safe-area-inset-bottom));-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.product-window.presell-window[data-v-bba7aac0]{padding-bottom:%?200?%}.product-window.custom-window[data-v-bba7aac0]{padding-bottom:%?120?%;padding-bottom:calc(120rpx+ constant(safe-area-inset-bottom));padding-bottom:calc(%?120?% + env(safe-area-inset-bottom))}.product-window.on[data-v-bba7aac0]{-webkit-transform:translateZ(0);transform:translateZ(0)}.product-window .textpic .text .money .points_money[data-v-bba7aac0]{display:flex;align-items:baseline}.product-window .textpic .text .money .points_money uni-image[data-v-bba7aac0]{width:%?26?%;height:%?26?%;margin-right:%?10?%}.product-window .textpic .text .money .points_money .points-num[data-v-bba7aac0]{font-size:%?34?%;font-weight:700}.product-window .textpic .text .money .points_money .points-limit[data-v-bba7aac0]{display:flex;padding:0 %?10?%;align-items:center;justify-content:center;color:var(--view-theme);border:1px solid var(--view-theme);height:%?26?%;border-radius:%?14?%;background:var(--view-bgColor);margin-left:%?10?%;font-size:%?18?%}.product-window .stock_count[data-v-bba7aac0]{margin-top:%?12?%}.product-window .textpic .text .presell_price[data-v-bba7aac0]{color:#ff7f00}.product-window .textpic .text .presell_price .num[data-v-bba7aac0]{display:inline-block;margin-right:%?20?%}.product-window .textpic .text .presell_price .stock[data-v-bba7aac0]{margin-left:0}.vip-money[data-v-bba7aac0]{color:#282828;font-size:%?22?%;margin:0 %?10?% 0 %?20?%}.vipImg[data-v-bba7aac0]{width:%?65?%;height:%?28?%}.vipImg uni-image[data-v-bba7aac0]{width:100%;height:100%;display:block}.product-window .productWinList[data-v-bba7aac0]{max-height:%?730?%;overflow:auto;margin-top:%?36?%}.product-window .cart[data-v-bba7aac0]{margin-top:%?36?%;padding:0 %?30?%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.product-window .cart .title[data-v-bba7aac0]{font-size:%?30?%;color:#999;line-height:%?54?%}.product-window .cart .carnum[data-v-bba7aac0]{align-items:center}.product-window .cart .carnum .buy_limit[data-v-bba7aac0]{font-size:%?22?%;color:var(--view-theme);margin-right:%?30?%;border:none}',""]),t.exports=e},d3e2:function(t,e,i){"use strict";i.r(e);var n=i("aa4b"),a=i("336e");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("fc26");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"5c2ec0c7",null,!1,n["a"],void 0);e["default"]=s.exports},d727:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return a.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(t){return a.default.get("store/product/assist/count",t,{noAuth:!0})},e.cancelReservationApi=function(t){return a.default.post("order/self/cancel/".concat(t))},e.getActivitycategory=function(t){return a.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return a.default.get("store/product/assist/detail/"+t,e)},e.getAssistList=function(t){return a.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return a.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return a.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return a.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t,e){return a.default.get("store/product/group/detail/"+t,e,{noAuth:!0})},e.getCombinationList=function(t){return a.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return a.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return a.default.post("combination/poster",t)},e.getCombinationUser=function(t){return a.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return a.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return a.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return a.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return a.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getReservationDate=function(t,e){return a.default.get("store/product/reservation/getMonth/".concat(t),e)},e.getReservationMerData=function(t){return a.default.get("store/merchant/detail/".concat(t))},e.getReservationTimes=function(t,e){return a.default.get("store/product/reservation/getDay/".concat(t),e)},e.getSeckillDetail=function(t){return a.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return a.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return a.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return a.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return a.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return a.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return a.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return a.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return a.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return a.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return a.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return a.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return a.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return a.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return a.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var a=n(i("fea3"))},efcd:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("d4b5"),i("aa9c");var n=i("8f59"),a=i("aa10"),o=i("e44d"),r={props:{attr:{type:Object,default:function(){}},limitNum:{type:Number,default:0},limitCount:{type:Number||String,default:0},isShow:{type:Boolean,default:function(){return!1}},iSbnt:{type:Number,default:0},iSplus:{type:Number,default:0},destri:{type:Number,default:0},isPresell:{type:Number,default:0},presell_type:{type:Number,default:1},image:{type:String,default:""},maxCount:{type:Number,default:0},minCount:{type:Number,default:0},payLimit:{type:Number||String,default:1},svipPrice:{type:Boolean,default:!1},isList:{type:Boolean,default:!1},isTab:{type:Boolean,default:!1},type:{type:String,default:""},productType:{type:Number||String,default:1},isCustom:{type:Boolean,default:function(){return!1}}},computed:(0,n.mapGetters)(["viewColor","isLogin"]),data:function(){return{domain:a.HTTP_REQUEST_URL}},mounted:function(){},methods:{loookImg:function(){var t=[this.attr.productSelect.image?this.attr.productSelect.image:this.image];uni.previewImage({urls:t})},goCat:function(){this.isLogin||(0,o.toLogin)(),this.$emit("goCat")},bindCode:function(t){var e=JSON.parse(JSON.stringify(t));this.$emit("iptCartNum",e)},closeAttr:function(){this.$emit("myevent")},CartNumDes:function(){this.destri||this.$emit("ChangeCartNum",!1)},CartNumAdd:function(){this.destri||this.$emit("ChangeCartNum",!0)},tapAttr:function(t,e){this.$emit("attrVal",{indexw:t,indexn:e}),this.$set(this.attr.productAttr[t],"index",this.attr.productAttr[t].attr_values[e]);var i=this.getCheckedValue().join(",");this.$emit("ChangeAttr",i)},getCheckedValue:function(){for(var t=this.attr.productAttr,e=[],i=0;i<t.length;i++)for(var n=0;n<t[i].attr_values.length;n++)t[i].index===t[i].attr_values[n]&&e.push(t[i].attr_values[n]);return e}}};e.default=r},fc26:function(t,e,i){"use strict";var n=i("42f8"),a=i.n(n);a.a},fe44:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"product-window",class:(!0===t.attr.cartAttr?"on":"")+" "+(t.iSbnt||t.destri||t.isList&&!t.isTab?"join":"")+" "+(t.isPresell?"presell-window":"")+" "+(t.isCustom?"custom-window":"")},[i("v-uni-view",{staticClass:"textpic acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.attr.productSelect.image?t.attr.productSelect.image:t.image},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loookImg.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"line1"},[t._v(t._s(t.attr.productSelect.store_name))]),t.isPresell?i("v-uni-view",{staticClass:"money presell_price"},[i("v-uni-view",[i("v-uni-text",{staticStyle:{"margin-right":"2rpx"}},[t._v("预售价")]),i("priceFormat",{attrs:{price:t.attr.productSelect.price,weight:!0,intSize:"40",floatSize:"26",labelSize:"26"}}),2===t.presell_type?i("v-uni-text",{staticStyle:{"margin-left":"10rpx"}},[t._v("定金¥"),i("v-uni-text",{staticClass:"num semiBold"},[t._v(t._s(t.attr.productSelect.down_price))])],1):t._e()],1),t.isShow?i("v-uni-text",{staticClass:"stock"},[t._v("库存: "+t._s(t.attr.productSelect.stock))]):t._e(),t.limitNum?i("v-uni-text",{staticClass:"stock"},[t._v("限量: "+t._s(t.attr.productSelect.limitNum))]):t._e()],1):i("v-uni-view",{staticClass:"money"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"acea-row row-bottom"},["points"==t.type?i("v-uni-view",{staticClass:"points_money"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/jf-point.png",mode:""}}),i("v-uni-text",{staticClass:"points-num"},[t._v(t._s(t.attr.productSelect.ot_price))]),t._v("积分"),t.attr.productSelect.price>0?i("v-uni-text",[t._v("+"+t._s(t.attr.productSelect.price)+"元")]):t._e(),t.limitCount>0?i("v-uni-text",{staticClass:"points-limit"},[t._v("限购"+t._s(t.limitCount)+"件")]):t._e()],1):i("v-uni-view",[i("priceFormat",{attrs:{price:t.attr.productSelect.price,weight:!0,intSize:"40",floatSize:"26",labelSize:"26"}})],1),t.svipPrice?i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-text",{staticClass:"vip-money semiBold"},[t._v("¥"+t._s(t.attr.productSelect.svip_price))]),i("v-uni-view",{staticClass:"vipImg"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/svip.png"}})],1)],1):t._e()],1)],1),i("v-uni-view",{staticClass:"stock_count"},[t.isShow?i("v-uni-text",{staticClass:"stock"},[t._v("库存: "+t._s(t.attr.productSelect.stock))]):t._e(),t.limitNum?i("v-uni-text",{staticClass:"stock"},[t._v("限量: "+t._s(t.attr.productSelect.quota_show))]):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"iconfont icon-ic_close popup-close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeAttr.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"productWinList"},t._l(t.attr.productAttr,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item"},[i("v-uni-view",{staticClass:"titles"},[t._v(t._s(e.attr_name))]),i("v-uni-view",{staticClass:"listn acea-row"},t._l(e.attr_value,(function(a,o){return i("v-uni-view",{key:o,staticClass:"itemn",class:e.index===a.attr?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tapAttr(n,o)}}},[t._v(t._s(a.attr))])})),1)],1)})),1),3!=t.productType?i("v-uni-view",{staticClass:"cart acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"title"},[t._v("数量")]),i("v-uni-view",{staticClass:"carnum acea-row row-left"},[t.minCount>0||t.maxCount>0?i("v-uni-view",{staticClass:"buy_limit"},[t._v("("),t.minCount>0?i("v-uni-text",[t._v(t._s(t.minCount)+"件起购"),t.minCount>0&&t.maxCount>0?i("v-uni-text",[t._v(",")]):t._e()],1):t._e(),t.maxCount>0?i("v-uni-text",[t._v("最多"+t._s(t.maxCount)+"件")]):t._e(),t._v(")")],1):t._e(),i("v-uni-view",{staticClass:"item reduce",class:t.attr.productSelect.cart_num<=1||t.minCount>0&&t.attr.productSelect.cart_num<=t.minCount?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.CartNumDes.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-ic_Reduce"})],1),i("v-uni-view",{staticClass:"item num"},[i("v-uni-input",{attrs:{type:"number","data-name":"productSelect.cart_num"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.bindCode(t.attr.productSelect.cart_num)}},model:{value:t.attr.productSelect.cart_num,callback:function(e){t.$set(t.attr.productSelect,"cart_num",e)},expression:"attr.productSelect.cart_num"}})],1),t.iSplus?i("v-uni-view",{staticClass:"item plus",class:t.attr.productSelect.cart_num>=t.attr.productSelect.stock||t.destri||t.maxCount>0&&t.attr.productSelect.cart_num>=t.maxCount?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.CartNumAdd.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-ic_increase"})],1):i("v-uni-view",{staticClass:"item plus",class:t.attr.productSelect.cart_num>=t.attr.productSelect.quota_show||t.attr.productSelect.cart_num>=t.attr.productSelect.stock||t.maxCount>0&&t.attr.productSelect.cart_num>=t.maxCount?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.CartNumAdd.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-ic_increase"})],1)],1)],1):t._e(),(t.destri||t.iSbnt)&&t.attr.productSelect.stock>0?i("v-uni-view",{staticClass:"joinBnt b-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goCat.apply(void 0,arguments)}}},[t._v("立即购买")]):t.destri&&t.attr.productSelect.stock<=0?i("v-uni-view",{staticClass:"joinBnt on"},[t._v("已售罄")]):t.isList&&t.attr.productSelect.stock>0?i("v-uni-view",{staticClass:"joinBnt b-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goCat.apply(void 0,arguments)}}},[t._v("立即加购")]):t.iSbnt&&t.attr.productSelect.stock<=0?i("v-uni-view",{staticClass:"joinBnt on"},[t._v("已售罄")]):t._e()],1),i("v-uni-view",{staticClass:"mask",attrs:{hidden:!1===t.attr.cartAttr},on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeAttr.apply(void 0,arguments)}}})],1)},a=[]}}]);
|