(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["promotionpages/pintuan/share/share"],{2315:function(t,n,e){"use strict";(function(t){e("6b76");i(e("66fd"));var n=i(e("2c5d"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"2c5d":function(t,n,e){"use strict";e.r(n);var i=e("4816"),o=e("6600");for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("dea0");var u,r=e("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);n["default"]=s.exports},4816:function(t,n,e){"use strict";var i={uniCountDown:function(){return e.e("components/uni-count-down/uni-count-down").then(e.bind(null,"e675"))},loadingCover:function(){return e.e("components/loading-cover/loading-cover").then(e.bind(null,"cd2f"))},nsShowToast:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-show-toast/ns-show-toast")]).then(e.bind(null,"f505"))}},o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.$util.img(t.groupDetail.sku_image,{size:"big"})),i=t.$util.img("/upload/uniapp/spelling_who.png"),o=t.__map(t.groupDetail.member_list,(function(n,e){var i=t.$util.img(n.member_img);return{$orig:t.__get_orig(n),g1:i}}));t.$mp.data=Object.assign({},{$root:{g0:e,g2:i,l0:o}})},a=[];e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}))},6600:function(t,n,e){"use strict";e.r(n);var i=e("7038"),o=e.n(i);for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},7038:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("4c22"));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){e.e("components/uni-count-down/uni-count-down").then(function(){return resolve(e("e675"))}.bind(null,e)).catch(e.oe)},u=function(){Promise.all([e.e("common/vendor"),e.e("components/ns-show-toast/ns-show-toast")]).then(function(){return resolve(e("f505"))}.bind(null,e)).catch(e.oe)},r={components:{uniCountDown:a,nsShowToast:u},data:function(){return{id:0,groupDetail:{sku_image:""},kill:0,memberId:0}},mixins:[i.default],onLoad:function(t){this.id=t.id,this.$langConfig.refresh(),this.getGroupDetail(),this.getMemberId()},methods:{getGroupDetail:function(){var t=this;this.$api.sendRequest({url:"/pintuan/api/order/detail",data:{id:this.id},success:function(n){if(0==n.code){n.data.member_list;for(var e=[],i=0;i<n.data.pintuan_num-n.data.member_list.length;i++){var o="";e.push(o)}t.kill=n.data.pintuan_num-n.data.pintuan_count,n.data.member_list=n.data.member_list.concat(e),n.data.group_end_time>n.timestamp?n.data.timeMachine=t.$util.countDown(n.data.group_end_time-n.timestamp):n.data.timeMachine=null,t.groupDetail=n.data}else t.$util.showToast({title:n.message});t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(n){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},getMemberId:function(){var t=this;this.$api.sendRequest({url:"/api/member/id",success:function(n){n.code>=0&&(t.memberId=n.data)}})},toPintuanDetail:function(t){this.$util.redirectTo("/promotionpages/pintuan/detail/detail",{id:t})},toDetail:function(t,n){this.$util.redirectTo("/promotionpages/pintuan/detail/detail",{id:t,group_id:n})},imageError:function(){this.groupDetail.sku_image=this.$util.getDefaultImage().default_goods_img,this.$forceUpdate()}},onShareAppMessage:function(t){var n="/promotionpages/pintuan/detail/detail?id="+this.groupDetail.pintuan_goods_id+"&group_id="+this.groupDetail.group_id;return this.memberId&&(n+="&source_member="+this.memberId),{title:"还差"+(this.groupDetail.pintuan_num-this.groupDetail.pintuan_count)+"人拼团成功，"+this.groupDetail.sku_name,imageUrl:this.$util.img(this.groupDetail.sku_image,{size:"big"}),path:n,success:function(t){},fail:function(t){}}}};n.default=r},9070:function(t,n,e){},dea0:function(t,n,e){"use strict";var i=e("9070"),o=e.n(i);o.a}},[["2315","common/runtime","common/vendor"]]]);