webpackJsonp([18],{R7Pr:function(s,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var t=e("CCn6"),A={0:"待付款",1:"付款成功",2:"付款失败",3:"退款成功",4:"拼团成功"},o=e("az9f"),n=e.n(o),a=e("Au9i"),r=e.n(a),g=e("/Bxx"),c=e.n(g),I={name:"order",data:function(){return{orderList:[],showShare:!1,shareTipsUrl:c.a,shareUrl:n.a}},filters:{orderType:function(s){return A[s]}},mounted:function(){this.initPage()},methods:{initPage:function(){var s=this;Object(t.F)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(s){wx.config({debug:!1,appId:s.appId,timestamp:parseInt(s.timestamp),nonceStr:s.nonceStr,signature:s.signature,jsApiList:s.jsApiList})}),Object(t.r)({status:1}).then(function(i){i.list.forEach(function(s){s.goods_desc&&(s.goods_desc=JSON.parse(s.goods_desc))}),s.orderList=i.list})},shareOrder:function(s){this.$sa.track("buttonClick",{tabTitle:"订单",moduleTitle:"订单",buttonType:"分享",buttonName:"团购分享"}),this.showShare=!0;var i=void 0;i=s.invite_id&&""!=s.invite_id?"TEACHER"===s.invite_type?"CC-USER-"+s.user_id:"CC-"+s.invite_type+"-"+s.user_id:"CC-USER-"+s.user_id;var e=JSON.parse(s.share_desc),t=this,A="https://wechat.changchangenglish.com/#/buyDetail?shopId="+s.goods_id+"&groupId="+s.order_group_id+"&invite_code="+i+"'";wx.onMenuShareAppMessage({title:e.title,desc:e.content,link:A,imgUrl:e.img[0]?e.img[0].url:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){r()("分享成功"),t.showShare=!1}}),wx.onMenuShareTimeline({title:e.title,desc:e.content,link:A,imgUrl:e.img[0]?e.img[0].url:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){r()("分享成功"),t.showShare=!1}})}}},l={render:function(){var s=this,i=s.$createElement,e=s._self._c||i;return e("div",[e("mt-popup",{staticClass:"refer-share",attrs:{position:"top"},model:{value:s.showShare,callback:function(i){s.showShare=i},expression:"showShare"}},[e("img",{attrs:{src:s.shareTipsUrl}})]),s._v(" "),s.orderList.length<1?e("div",{staticClass:"tips"},[s._v("\n    暂无订单\n  ")]):s._e(),s._v(" "),s._l(s.orderList,function(i){return e("div",{staticClass:"list"},[e("div",{staticClass:"head"},[i.goods_desc?e("div",{staticClass:"bg-img",style:{backgroundImage:"url("+i.goods_desc.img[0].url+")"}}):s._e(),s._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"title"},[s._v(s._s(i.goods_name))]),s._v(" "),i.goods_desc?e("div",{staticClass:"desc"},[s._v(s._s(i.goods_desc.desc))]):s._e(),s._v(" "),e("div",{staticClass:"time"},[s._v("付款时间："+s._s(i.pay_at))])])]),s._v(" "),e("div",{staticClass:"footer"},[e("span",{staticClass:"payMoney"},[s._v("实付："+s._s(i.money/100)+"元")]),s._v(" "),2===i.buy_type&&4!==i.status?e("span",{staticClass:"share",on:{click:function(e){s.shareOrder(i)}}},[e("img",{attrs:{src:s.shareUrl}}),s._v("点击分享\n      ")]):s._e(),s._v(" "),e("span",{class:{red:1===i.status}},[s._v(s._s(s._f("orderType")(i.status)))])])])})],2)},staticRenderFns:[]};var d=e("VU/8")(I,l,!1,function(s){e("glP2")},"data-v-307bc73e",null);i.default=d.exports},az9f:function(s,i){s.exports="data:image/png;base64,[encoded data, 7196 characters]"},glP2:function(s,i){}});
//# sourceMappingURL=18.618aa416fb9be1dc4752.js.map