(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/groupBooking/detail"],{82:function(e,n,t){"use strict";(function(e){var n=t(3);t(25);n(t(24));var o=n(t(83));wx.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["createPage"])},83:function(e,n,t){"use strict";t.r(n);var o=t(84),i=t(86);for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t(88);var s,u=t(39),a=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);a.options.__file="pages/product/groupBooking/detail.vue",n["default"]=a.exports},84:function(e,n,t){"use strict";t.r(n);var o=t(85);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},85:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return s})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return o}));var i=function(){var e=this,n=e.$createElement;e._self._c},r=!1,s=[];i._withStripped=!0},86:function(e,n,t){"use strict";t.r(n);var o=t(87),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},87:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(52),i=t(32),r=(t(27),function(){t.e("components/uni-countdown/uni-countdowns").then(function(){return resolve(t(582))}.bind(null,t)).catch(t.oe)}),s={onShareAppMessage:function(e){if("button"===e.from){var n=getCurrentPages(),t=n[n.length-1],o="/"+t.route+"?";for(var i in t.options)o+=i+"="+t.options[i]+"&";o+="spread="+this.userInfo.uid;var r={path:o,imageUrl:this.goods.image,title:"万水千山总是情，一起来拼行不行"};return r}var s=getCurrentPages(),u=s[s.length-1],a="/"+u.route+"?";for(var c in u.options)a+=c+"="+u.options[c]+"&";a+="spread="+this.userInfo.uid;var d={path:a,imageUrl:this.goods.image,title:"万水千山总是情，一起来拼行不行"};return d},data:function(){return{gp_id:0,goods:{},pinkT:{},people:[],status:0,gid:0,user_info:{},stopTime:{stopTimeH:0,stopTimeM:0,stopTimeS:0},pinkBool:0,userBool:0,spread:"",userInfo:{},peopleNub:0,scene:""}},onLoad:function(n){if(n.scene){if("string"==typeof n.scene){var t=("{"+n.scene+"}").replace("qr%26","").replace(/%3D/g,":").replace(/%26/g,",").replace("id",'"id"').replace("pid",'"pid"').replace(/=/g,":").replace(/&/g,",");console.log(t,"scene");var o=JSON.parse(t);console.log(o),this.gp_id=o.id,o.pid&&(this.spread=o.pid,e.setStorageSync("spread",o.pid))}}else this.gp_id=n.id,n.spread&&(this.spread=n.spread,e.setStorageSync("spread",n.spread));n.unique&&(this.unique=n.unique),this.getData()},onShow:function(){},components:{uniCountdowns:r},methods:{goBuy:function(){e.navigateTo({url:"/pages/order/createOrder?pinkId="+this.gp_id+"&type=pink&pid="+this.goods.product_id+"&gid="+this.goods.id+"&merid="+this.goods.mer_id+"&unique="+this.goods.productValue[this.goods.productAttr[0].attr_values[0]].unique})},invitation:function(){var n=this;0!=n.userBool?e.navigateTo({url:"/pages/product/groupBooking/inviteImg?id="+this.pinkT.id+"&spread="+this.userInfo.uid,success:function(e){},fail:function(e){console.log(e)},complete:function(){}}):e.showModal({title:"提示",content:"该拼团已经结束！",showCancel:!1,success:function(e){},fail:function(){},complete:function(){}})},getData:function(){var e=this;(0,o.getCombinationLisPink)({},this.gp_id).then((function(n){var t=n.data;e.goods=t.store_combination,e.pinkT=t.pinkT,e.timeComputed(1e3*e.pinkT.stop_time),e.people=t.pinkAll,e.userBool=t.userBool,t.pinkT.uid==t.userInfo.uid&&(e.status=1),e.userInfo=t.userInfo,e.pinkBool=t.pinkBool,e.peopleNub=e.pinkT.people-1-e.people.length}))},timeComputed:function(e){var n=this,t=(0,i.timeComputed)(e);n.stopTime.stopTimeH=t.hours,n.stopTime.stopTimeM=t.minutes,n.stopTime.stopTimeS=t.seconds}}};n.default=s}).call(this,t(1)["default"])},88:function(e,n,t){"use strict";t.r(n);var o=t(89),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},89:function(e,n,t){}},[[82,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/product/groupBooking/detail.js.map