(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesB/pages/activity/GroupDetails/index"],{1648:function(t,e,r){"use strict";var o=r("5d47"),i=r.n(o);i.a},4567:function(t,e,r){"use strict";var o;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return s})),r.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,r=(t._self._c,t.formatPrice(t.storeInfo.price,0)),o=t.formatPrice(t.storeInfo.price,1),i=t.formatPrice(t.storeInfo.productPrice,0),s=t.formatPrice(t.storeInfo.productPrice,1),n=t.formatPrice(t.storeInfo.price,0),a=t.formatPrice(t.storeInfo.price,1);t.$mp.data=Object.assign({},{$root:{m0:r,m1:o,m2:i,m3:s,m4:n,m5:a}})},s=[]},"5d47":function(t,e,r){},"7d94":function(t,e,r){"use strict";r.r(e);var o=r("d239"),i=r.n(o);for(var s in o)"default"!==s&&function(t){r.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},"9d55":function(t,e,r){"use strict";(function(t){r("0371");o(r("66fd"));var e=o(r("a872"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,r("543d")["createPage"])},a872:function(t,e,r){"use strict";r.r(e);var o=r("4567"),i=r("7d94");for(var s in i)"default"!==s&&function(t){r.d(e,t,(function(){return i[t]}))}(s);r("1648");var n,a=r("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"012697d3",null,!1,o["a"],n);e["default"]=c.exports},d239:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r("8c03"),i=r("fc49"),s=r("63e5"),n=r("6e63"),a=function(){r.e("components/ProductConSwiper").then(function(){return resolve(r("61db"))}.bind(null,r)).catch(r.oe)},c=function(){r.e("components/CountDown").then(function(){return resolve(r("7e6d"))}.bind(null,r)).catch(r.oe)},u=function(){r.e("components/UserEvaluation").then(function(){return resolve(r("913e"))}.bind(null,r)).catch(r.oe)},l=function(){r.e("components/ProductWindow").then(function(){return resolve(r("70c8"))}.bind(null,r)).catch(r.oe)},d=function(){r.e("components/StorePoster").then(function(){return resolve(r("39fd"))}.bind(null,r)).catch(r.oe)},h="GroupDetails",p={name:"GroupDetails",components:{ProductConSwiper:a,CountDown:c,UserEvaluation:u,ProductWindow:l,StorePoster:d},props:{},data:function(){return{domStatus:!1,posterData:{image:"",title:"",price:"",code:""},posterImageStatus:!1,reply:[],replyCount:0,replyChance:0,imgUrls:[],storeInfo:{},itemNew:{},groupListCount:2,groupList:{},attrTxt:"请选择",productValue:[],attrValue:"",swiperTip:{direction:"vertical",autoplay:{disableOnInteraction:!1,delay:2e3},loop:!0,speed:1e3,observer:!0,observeParents:!0},attr:{cartAttr:!1,productAttr:[],productSelect:{}},cartNum:1,userCollect:!1}},computed:{},watch:{$yroute:function(t){var e=this;t.name===h&&e.mountedStart()}},onShow:function(){this.mountedStart()},methods:{formatPrice:function(t,e){return console.log(t),t?t.split(".")[e]:""},onShareAppMessage:function(){return{title:this.storeInfo.title,imageUrl:this.storeInfo.image,path:"pages/activity/GroupDetails/index?id="+this.storeInfo.id+"&spread="+t.getStorageSync("uid")+"&pageType=good&codeType=routine",success:function(e){t.showToast({title:"分享成功"})},fail:function(e){t.showToast({title:"分享失败",icon:"none"})}}},openAlone:function(){this.$yrouter.push({path:"/pages/shop/GoodsCon/index",query:{id:this.storeInfo.productId}})},setCollect:function(){var t=this,e=t.storeInfo.id,r="product";t.userCollect?(0,n.getCollectDel)(e,r).then((function(){t.userCollect=!t.userCollect})):(0,n.getCollectAdd)(e,r).then((function(){t.userCollect=!t.userCollect}))},mountedStart:function(){var t=this,e=this,r=e.$yroute.query.id;(0,o.getCombinationDetail)(r).then((function(r){e.userCollect=r.data.userCollect,r.data.storeInfo.description=r.data.storeInfo.description.replace(/\30?e.posterData.title=e.storeInfo.title.substring(0,30)+"...":e.posterData.title=e.storeInfo.title,e.posterData.price=e.storeInfo.pinkPrice,e.posterData.code=e.storeInfo.code_base,e.domStatus=!0,console.log(t.storeInfo),e.DefaultSelect()}))},DefaultSelect:function(){for(var t=this.attr.productAttr,e=[],r=0;r