webpackJsonp([53],{"28+M":function(t,e){},dthh:function(t,e,s){t.exports=s.p+"static/img/saleSuccess.6355462.png"},wSE2:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("dthh"),n=s.n(i),o=s("CCn6"),a={name:"saleSuccess",data:function(){return{invite_code:"",weChatUrl:n.a,orderNo:this.$route.query.out_trade_no,goods_id:"",user_goods_list:[],h:"",m:"",s:"",deadline:"",groupDetail:{}}},mounted:function(){this.initPage()},methods:{buttonClick:function(t){this.$sa.track("buttonClick",{tabTitle:"商品",moduleTitle:"优惠券购买成功页",buttonType:"功能",buttonName:t})},initPage:function(){var t=this;Object(o.D)(this.orderNo).then(function(e){t.goods_id=e.goods_id,t.invite_code="CC-"+e.invite_type+"-"+e.invite_id,e.coupon_over_at&&(t.deadline=e.coupon_over_at,t.leftTimer());var s=JSON.parse(t.groupDetail.desc).use_goods_ids;Object(o.r)({goods_ids:s}).then(function(e){t.user_goods_list=[];for(var s=0;s<e.list.length;s++)e.list[s].desc=JSON.parse(e.list[s].desc),e.list[s].goods_desc=JSON.parse(e.list[s].goods_desc),e.list[s].share_desc=JSON.parse(e.list[s].share_desc),t.user_goods_list.push(e.list[s])})})},goToBuy:function(t){this.$router.push({name:"buyDetail",query:{shopId:t.id,invite_code:this.$route.query.invite_code}})},leftTimer:function(){var t=new Date(this.deadline.replace(/\-/g,"/"))-new Date,e=parseInt(t/1e3/60/60,10),s=parseInt(t/1e3/60%60,10),i=parseInt(t/1e3%60,10);e=this.checkTime(e),s=this.checkTime(s),i=this.checkTime(i),this.h=e>0?e:"00",this.m=s>0?s:"00",this.s=i>0?i:"00",window.setTimeout(this.leftTimer,1e3)},checkTime:function(t){return t<10&&(t="0"+t),t}}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"sale"},[s("div",{staticStyle:{height:"3.75vw"}}),t._v(" "),s("div",{staticClass:"banner"},[s("img",{attrs:{src:t.weChatUrl}})]),t._v(" "),s("div",[s("div",{staticClass:"success-block"},[s("p",[t._v("恭喜领取成功！请尽快使用代金券哦~")]),t._v(" "),s("div",{staticClass:"text-content last"},[s("i",{staticClass:"line"}),t._v("\n      剩余\n      "),s("span",[t._v(t._s(t.h))]),t._v(":\n      "),s("span",[t._v(t._s(t.m))]),t._v(":\n      "),s("span",[t._v(t._s(t.s))]),t._v("\n      到期\n      "),s("i",{staticClass:"line"})])])])])},staticRenderFns:[]};var r=s("VU/8")(a,c,!1,function(t){s("28+M")},"data-v-1705a487",null);e.default=r.exports}});