(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/groupBooking/detail"],{4940:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},i=[]},"5f60":function(t,e,n){"use strict";n.r(e);var o=n("76c2"),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},"76c2":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("5e62"),i=n("b7b7"),s=(n("26cb"),{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}},onLoad:function(e){this.gp_id=e.id,e.spread&&(this.spread=e.spread,t.setStorageSync("spread",option.spread))},onShow:function(){this.getData()},components:{uniCountdowns:function(){n.e("components/uni-countdown/uni-countdowns").then(function(){return resolve(n("5f29"))}.bind(null,n)).catch(n.oe)}},onShareAppMessage:function(t){var e=getCurrentPages(),n=e[e.length-1],o=n.route,i=(n.options,{title:this.userInfo.nickname+"邀请您参加拼团",path:o+"?id="+this.gp_id+"&scene="+this.userInfo.uid,imageUrl:this.goods.image,success:function(t){console.log(i.path,"path+++++++++++++++++++"),t.errMsg},fail:function(){"shareAppMessage:fail cancel"==res.errMsg||res.errMsg}});return i},methods:{goBuy:function(){t.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+"&isP=1"})},invitation:function(){0!=this.userBool||t.showModal({title:"提示",content:"该拼团已经结束！",showCancel:!1,success:function(t){},fail:function(){},complete:function(){}})},getData:function(){var t=this;(0,o.getCombinationLisPink)({},this.gp_id).then((function(e){var n=e.data;t.goods=n.store_combination,t.pinkT=n.pinkT,t.timeComputed(1e3*t.pinkT.stop_time),t.people=n.pinkAll,t.userBool=n.userBool,n.pinkT.uid==n.userInfo.uid&&(t.status=1),t.userInfo=n.userInfo,t.pinkBool=n.pinkBool,t.peopleNub=t.pinkT.people-1-t.people.length}))},timeComputed:function(t){var e=(0,i.timeComputed)(t);this.stopTime.stopTimeH=e.hours,this.stopTime.stopTimeM=e.minutes,this.stopTime.stopTimeS=e.seconds}}});e.default=s}).call(this,n("543d")["default"])},c15f:function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("12d5");o(n("66fd"));var i=o(n("d187"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},c6c2:function(t,e,n){},d187:function(t,e,n){"use strict";n.r(e);var o=n("4940"),i=n("5f60");for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("de197");var u=n("f0c5"),r=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},de197:function(t,e,n){"use strict";var o=n("c6c2"),i=n.n(o);i.a}},[["c15f","common/runtime","common/vendor"]]]);