(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/groupBooking/detail"],{"172e":function(e,t,o){"use strict";var n;o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement;e._self._c},s=[]},7473:function(e,t,o){"use strict";o.r(t);var n=o("172e"),i=o("96dd");for(var s in i)"default"!==s&&function(e){o.d(t,e,(function(){return i[e]}))}(s);o("bbe7");var u,r=o("f0c5"),a=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],u);t["default"]=a.exports},"8af2":function(e,t,o){"use strict";(function(e){o("5935");n(o("66fd"));var t=n(o("7473"));function n(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=o,e(t.default)}).call(this,o("543d")["createPage"])},"96dd":function(e,t,o){"use strict";o.r(t);var n=o("ac26"),i=o.n(n);for(var s in n)"default"!==s&&function(e){o.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},ac26:function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("7e95"),i=o("475d"),s=(o("26cb"),function(){o.e("components/uni-countdown/uni-countdowns").then(function(){return resolve(o("956b"))}.bind(null,o)).catch(o.oe)}),u={onShareAppMessage:function(e){if("button"===e.from){var t=getCurrentPages(),o=t[t.length-1],n="/"+o.route+"?";for(var i in o.options)n+=i+"="+o.options[i]+"&";n+="spread="+this.userInfo.uid;var s={path:n,imageUrl:this.goods.image,title:"万水千山总是情，一起来拼行不行"};return s}var u=getCurrentPages(),r=u[u.length-1],a="/"+r.route+"?";for(var c in r.options)a+=c+"="+r.options[c]+"&";a+="spread="+this.userInfo.uid;var p={path:a,imageUrl:this.goods.image,title:"万水千山总是情，一起来拼行不行"};return p},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(t){if(t.scene){if("string"==typeof t.scene){var o=("{"+t.scene+"}").replace("qr%26","").replace(/%3D/g,":").replace(/%26/g,",").replace("id",'"id"').replace("pid",'"pid"').replace(/=/g,":").replace(/&/g,",");console.log(o,"scene");var n=JSON.parse(o);console.log(n),this.gp_id=n.id,n.pid&&(this.spread=n.pid,e.setStorageSync("spread",n.pid))}}else this.gp_id=t.id,t.spread&&(this.spread=t.spread,e.setStorageSync("spread",t.spread));t.unique&&(this.unique=t.unique),this.getData()},onShow:function(){},components:{uniCountdowns:s},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 t=this;0!=t.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,n.getCombinationLisPink)({},this.gp_id).then((function(t){var o=t.data;e.goods=o.store_combination,e.pinkT=o.pinkT,e.timeComputed(1e3*e.pinkT.stop_time),e.people=o.pinkAll,e.userBool=o.userBool,o.pinkT.uid==o.userInfo.uid&&(e.status=1),e.userInfo=o.userInfo,e.pinkBool=o.pinkBool,e.peopleNub=e.pinkT.people-1-e.people.length}))},timeComputed:function(e){var t=this,o=(0,i.timeComputed)(e);t.stopTime.stopTimeH=o.hours,t.stopTime.stopTimeM=o.minutes,t.stopTime.stopTimeS=o.seconds}}};t.default=u}).call(this,o("543d")["default"])},bbe7:function(e,t,o){"use strict";var n=o("cc03"),i=o.n(n);i.a},cc03:function(e,t,o){}},[["8af2","common/runtime","common/vendor"]]]);