webpackJsonp([12],{"4ggU":function(t,s,i){t.exports=i.p+"static/img/sale.66e397c.png"},Mrjv:function(t,s){},wSE2:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("4ggU"),o=i.n(e),n=i("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.q)(this.orderNo).then(function(s){t.goods_id=s.goods_id,t.invite_code="CC-"+s.invite_type+"-"+s.invite_id,Object(n.h)(t.goods_id).then(function(s){var i=JSON.parse(s.desc).use_goods_ids;Object(n.i)({goods_ids:i}).then(function(s){t.user_goods_list=[];for(var i=0;i<s.list.length;i++)s.list[i].desc=JSON.parse(s.list[i].desc),s.list[i].goods_desc=JSON.parse(s.list[i].goods_desc),s.list[i].share_desc=JSON.parse(s.list[i].share_desc),t.user_goods_list.push(s.list[i])})})})},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,i=t._self._c||s;return i("div",{staticClass:"sale"},[i("div",{staticStyle:{height:"3.75vw"}}),t._v(" "),i("div",{staticClass:"banner"},[i("img",{attrs:{src:t.weChatUrl}})]),t._v(" "),i("div",t._l(t.user_goods_list,function(s){return i("div",{staticClass:"shop-block",on:{click:function(i){t.goToBuy(s),t.buttonClick("去购买")}}},[i("div",{staticClass:"shop"},[i("div",{staticClass:"img-block"},[i("img",{attrs:{src:s.goods_desc.img[0].url}})]),t._v(" "),i("div",[i("div",{staticClass:"title"},[t._v("\n            "+t._s(s.name)+"\n          ")]),t._v(" "),i("div",{staticClass:"content"},[t._v("\n            "+t._s(s.goods_desc.desc)+"\n          ")]),t._v(" "),i("div",{staticClass:"price"},[t._v("\n            >>立即购买<<\n          ")])])])])}))])},staticRenderFns:[]};var a=i("VU/8")(c,d,!1,function(t){i("Mrjv")},"data-v-3e87e9f5",null);s.default=a.exports}});
//# sourceMappingURL=12.f5e5ad3d68662a2f46f7.js.map