(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/goods_combination_status/index"],{"43ec":function(t,i,e){},4409:function(t,i,e){"use strict";(function(t){var o=e("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=o(e("7037")),s=o(e("9159")),a=e("86eb"),r=e("26cb"),u=e("84d8"),c=e("2a39"),d=o(e("19b6")),h=e("00a0"),l=getApp(),p={name:"GroupRule",components:{CountDown:function(){e.e("components/countDown/index").then(function(){return resolve(e("80f6"))}.bind(null,e)).catch(e.oe)},ProductWindow:function(){e.e("components/productWindow/index").then(function(){return resolve(e("6cd4"))}.bind(null,e)).catch(e.oe)},home:function(){Promise.all([e.e("common/vendor"),e.e("components/home/index")]).then(function(){return resolve(e("3b71"))}.bind(null,e)).catch(e.oe)},authorize:function(){e.e("components/Authorize").then(function(){return resolve(e("ad23"))}.bind(null,e)).catch(e.oe)}},props:{},mixins:[d.default],data:function(){return{imgHost:h.HTTP_REQUEST_URL,currentPinkOrder:"",isOk:0,pinkBool:0,userBool:0,pinkAll:[],pinkT:[],storeCombination:void 0,storeCombinationHost:[],pinkId:0,count:0,iShidden:!1,isOpen:!1,attr:{cartAttr:!1,productSelect:{image:"",store_name:"",price:"",quota:0,unique:"",cart_num:1,quota_show:0,product_stock:0,num:0},productAttr:[]},cart_num:"",userInfo:{},posters:!1,weixinStatus:!1,H5ShareBox:!1,isAuto:!1,isShowAuth:!1,attrTxt:this.$t("请选择"),attrValue:"",orderPid:0}},computed:(0,r.mapGetters)({isLogin:"isLogin",userData:"userInfo"}),watch:{isLogin:{handler:function(t,i){t?this.getCombinationPink():(0,a.toLogin)()},deep:!0},userData:{handler:function(t,i){t&&(this.userInfo=t,l.globalData.openPages="/pages/activity/goods_combination_status/index?id="+this.pinkId)},deep:!0}},onLoad:function(t){if(t.scene){var i=s.default.getUrlParams(decodeURIComponent(t.scene));"object"===(0,n.default)(i)&&(i.id&&(t.id=i.id),i.pid&&(l.globalData.spid=i.pid))}t.id&&(this.pinkId=t.id),0==this.isLogin&&(this.$Cache.set("login_back_url","/pages/activity/goods_combination_status/index?id=".concat(t.id)),(0,a.toLogin)())},onShareAppMessage:function(){return{title:this.$t("您的好友")+this.userInfo.nickname+this.$t("邀请您参团")+this.storeCombination.title,path:l.globalData.openPages,imageUrl:this.storeCombination.image}},mounted:function(){this.isLogin&&this.getCombinationPink()},methods:{authColse:function(t){this.isShowAuth=t},onLoadFun:function(t){this.userInfo=t,l.globalData.openPages="/pages/activity/goods_combination_status/index?id="+this.pinkId,this.getCombinationPink()},listenerActionSheet:function(){0==this.isLogin?(0,a.toLogin)():this.posters=!0},listenerActionClose:function(){this.posters=!1},goFriend:function(){this.posters=!1},iptCartNum:function(t){this.$set(this.attr.productSelect,"cart_num",t),this.$set(this,"cart_num",t)},attrVal:function(t){this.attr.productAttr[t.indexw].index=this.attr.productAttr[t.indexw].attr_values[t.indexn]},onMyEvent:function(){this.$set(this.attr,"cartAttr",!1),this.$set(this,"isOpen",!1)},ChangeAttr:function(t){this.$set(this,"cart_num",1);var i=this.productValue[t];i?(this.$set(this.attr.productSelect,"image",i.image),this.$set(this.attr.productSelect,"price",i.price),this.$set(this.attr.productSelect,"quota",i.quota),this.$set(this.attr.productSelect,"unique",i.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this.attr.productSelect,"product_stock",i.product_stock),this.$set(this.attr.productSelect,"quota_show",i.quota_show),this.$set(this,"attrValue",t),this.$set(this,"attrTxt",this.$t("已选择"))):(this.$set(this.attr.productSelect,"image",this.storeCombination.image),this.$set(this.attr.productSelect,"price",this.storeCombination.price),this.$set(this.attr.productSelect,"quota",0),this.$set(this.attr.productSelect,"unique",""),this.$set(this.attr.productSelect,"cart_num",0),this.$set(this.attr.productSelect,"quota_show",0),this.$set(this.attr.productSelect,"product_stock",0),this.$set(this,"attrValue",""),this.$set(this,"attrTxt",this.$t("请选择")))},ChangeCartNum:function(t){var i=this.productValue[this.attrValue];if(this.cart_num&&(i.cart_num=this.cart_num,this.attr.productSelect.cart_num=this.cart_num),void 0!==i||this.attr.productAttr.length||(i=this.attr.productSelect),void 0!==i){i.stock,i.quota_show;var e=i.quota||0,o=i.product_stock||0,n=this.attr.productSelect,s=this.storeCombination.num||0;if(void 0==i.cart_num&&(i.cart_num=1),t){n.cart_num++;var a=[];a.push(s),a.push(e),a.push(o);var r=Math.min.apply(null,a);n.cart_num>=r&&(this.$set(this.attr.productSelect,"cart_num",r||1),this.$set(this,"cart_num",r||1)),this.$set(this,"cart_num",n.cart_num),this.$set(this.attr.productSelect,"cart_num",n.cart_num)}else n.cart_num--,n.cart_num<1&&(this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"cart_num",1)),this.$set(this,"cart_num",n.cart_num),this.$set(this.attr.productSelect,"cart_num",n.cart_num)}},DefaultSelect:function(){var t=this.attr.productAttr,i=[];for(var e in this.productValue)if(this.productValue[e].quota>0){i=this.attr.productAttr.length?e.split(","):[];break}for(var o=0;o9&&t.iShidden?t.$t("收起"):null,m=(1===t.pinkBool||-1===t.pinkBool)&&t.count>9&&!t.iShidden?t.$t("查看更多"):null,$=1===t.userBool&&0==t.isOk&&0===t.pinkBool?t.$t("邀请好友参团"):null,_=(1!==t.userBool||0!=t.isOk||0!==t.pinkBool)&&0===t.userBool&&0===t.pinkBool&&t.count>0?t.$t("我要参团"):null,f=1===t.pinkBool||-1===t.pinkBool?t.$t("再次开团"):null,g=0===t.pinkBool&&1===t.userBool&&t.pinkT.uid==t.userInfo.uid?t.$t("取消开团"):null,k=1===t.pinkBool&&0===t.orderPid?t.$t("查看订单信息"):null,S=t.$t("大家都在拼"),b=t.$t("更多拼团"),v=t.$t("人团"),C=t.$t("¥"),B=t.$t("发送给朋友"),q=t.$t("生成海报");t._isMounted||(t.e0=function(i){t.H5ShareBox=!1}),t.$mp.data=Object.assign({},{$root:{m0:e,m1:o,m2:n,m3:s,m4:a,m5:r,m6:u,m7:c,m8:d,m9:h,g0:l,m10:p,m11:m,m12:$,m13:_,m14:f,m15:g,m16:k,m17:S,m18:b,m19:v,m20:C,m21:B,m22:q}})},n=[]}},[["5898","common/runtime","common/vendor"]]]);