webpackJsonp([13],{"4ggU":function(t,s,e){t.exports=e.p+"static/img/sale.66e397c.png"},Mrjv:function(t,s){},wSE2:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("4ggU"),o=e.n(i),n=e("CCn6"),c={name:"saleSuccess",data:function(){return{invite_code:"",weChatUrl:o.a,orderNo:this.$route.query.out_trade_no,goods_id:"",user_goods_list:[]}},mounted:function(){this.initPage()},methods:{buttonClick:function(t){this.$sa.track("buttonClick",{tabTitle:"商品",moduleTitle:"优惠券购买成功页",buttonType:"功能",buttonName:t})},initPage:function(){var t=this;Object(n.p)(this.orderNo).then(function(s){t.goods_id=s.goods_id,t.invite_code="CC-"+s.invite_type+"-"+s.invite_id,Object(n.g)(t.goods_id).then(function(s){var e=JSON.parse(s.desc).use_goods_ids;Object(n.h)({goods_ids:e}).then(function(s){t.user_goods_list=[];for(var e=0;e<s.list.length;e++)s.list[e].desc=JSON.parse(s.list[e].desc),s.list[e].goods_desc=JSON.parse(s.list[e].goods_desc),s.list[e].share_desc=JSON.parse(s.list[e].share_desc),t.user_goods_list.push(s.list[e])})})})},goToBuy:function(t){this.$router.push({name:"buyDetail",query:{shopId:t.id,invite_code:this.invite_code}})}}},d={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"sale"},[e("div",{staticStyle:{height:"3.75vw"}}),t._v(" "),e("div",{staticClass:"banner"},[e("img",{attrs:{src:t.weChatUrl}})]),t._v(" "),e("div",t._l(t.user_goods_list,function(s){return e("div",{staticClass:"shop-block",on:{click:function(e){t.goToBuy(s),t.buttonClick("去购买")}}},[e("div",{staticClass:"shop"},[e("div",{staticClass:"img-block"},[e("img",{attrs:{src:s.goods_desc.img[0].url}})]),t._v(" "),e("div",[e("div",{staticClass:"title"},[t._v("\n            "+t._s(s.name)+"\n          ")]),t._v(" "),e("div",{staticClass:"content"},[t._v("\n            "+t._s(s.goods_desc.desc)+"\n          ")]),t._v(" "),e("div",{staticClass:"price"},[t._v("\n            >>立即购买<<\n          ")])])])])}))])},staticRenderFns:[]};var a=e("VU/8")(c,d,!1,function(t){e("Mrjv")},"data-v-3e87e9f5",null);s.default=a.exports}});
//# sourceMappingURL=13.d3b93d52e1fdf01bb989.js.map