webpackJsonp([36],{"DhZ+":function(t,s,e){t.exports=e.p+"static/img/orderless.961cec0.png"},R7Pr:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});e("eqfM");var i=e("/QYm"),n=e("CCn6"),o=e("Jmy5"),r=e("az9f"),a=e.n(r),c=e("DhZ+"),d=e.n(c),u=e("/Bxx"),l=e.n(u),g={name:"order",data:function(){return{orderList:[],showShare:!1,shareTipsUrl:l.a,shareUrl:a.a,mok4:d.a,shopId:"",orderImg:o.e}},filters:{orderType:function(t){if(2===t.buy_type){if(1==t.status)return o.e.orderStatus2;if(4==t.status)return o.e.orderStatus3}else{if(1===t.buy_type&&1==t.status)return o.e.orderStatus1;if(2==t.status)return o.e.orderStatus4}}},mounted:function(){this.initPage()},methods:{goDetail:function(t){1==this.orderList[t].buy_type?this.$router.push({name:"buySuccess",query:{out_trade_no:this.orderList[t].out_trade_no}}):this.$router.push({name:"success",query:{out_trade_no:this.orderList[t].out_trade_no}})},goIndex:function(){this.$router.push({name:"index"})},initPage:function(){var t=this;Object(n.Y)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(t){wx.config({debug:!1,appId:t.appId,timestamp:parseInt(t.timestamp),nonceStr:t.nonceStr,signature:t.signature,jsApiList:t.jsApiList})}),Object(n.E)({status:1}).then(function(s){s.list.forEach(function(t){t.goods_desc&&(t.goods_desc=JSON.parse(t.goods_desc))}),t.orderList=s.list})},shareOrder:function(t){this.$sa.track("buttonClick",{tabTitle:"订单",moduleTitle:"订单",buttonType:"分享",buttonName:"团购分享"}),this.showShare=!0;var s=void 0;s=t.invite_id&&""!=t.invite_id?"TEACHER"===t.invite_type?"CC-USER-"+t.user_id:"CC-"+t.invite_type+"-"+t.user_id:"CC-USER-"+t.user_id;var e=JSON.parse(t.share_desc),n=this,o="https://wechat.changchangenglish.com/#/buyDetail?shopId="+t.goods_id+"&groupId="+t.order_group_id+"&invite_code="+s+"'";wx.onMenuShareAppMessage({title:e.title,desc:e.content,link:o,imgUrl:e.img[0]?e.img[0].url:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){Object(i.a)("分享成功"),n.showShare=!1}}),wx.onMenuShareTimeline({title:e.title,desc:e.content,link:o,imgUrl:e.img[0]?e.img[0].url:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){Object(i.a)("分享成功"),n.showShare=!1}})}}},m={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("van-popup",{staticClass:"refer-share",attrs:{position:"top"},model:{value:t.showShare,callback:function(s){t.showShare=s},expression:"showShare"}},[e("img",{attrs:{src:t.shareTipsUrl}})]),t._v(" "),t.orderList.length<1?e("div",{staticClass:"unStart"},[e("img",{attrs:{src:t.mok4,alt:""}}),t._v(" "),e("p",[t._v("还没有订单哦~")]),t._v(" "),e("div",{on:{click:t.goIndex}},[t._v("去逛逛吧")])]):t._e(),t._v(" "),e("div",{staticClass:"listBox"},t._l(t.orderList,function(s,i){return e("div",{staticClass:"list"},[e("div",{staticClass:"head"},[s.goods_desc?e("div",{staticClass:"bg-img",style:{backgroundImage:"url("+s.goods_desc.img[0].url+")"},on:{click:function(s){t.goDetail(i)}}}):t._e(),t._v(" "),e("div",{staticClass:"content"},[0!=s.status?e("img",{staticClass:"status",attrs:{src:t._f("orderType")(s),alt:""},on:{click:function(s){t.goDetail(i)}}}):t._e(),t._v(" "),e("div",{staticClass:"title",on:{click:function(s){t.goDetail(i)}}},[t._v(t._s(s.goods_name))]),t._v(" "),s.goods_desc?e("div",{staticClass:"desc",on:{click:function(s){t.goDetail(i)}}},[t._v(t._s(s.goods_desc.desc))]):t._e(),t._v(" "),e("div",{staticClass:"time",on:{click:function(s){t.goDetail(i)}}},[t._v("付款时间："+t._s(s.pay_at))]),t._v(" "),e("div",{staticClass:"bottom"},[e("span",{staticClass:"payMoney"},[t._v("实付："+t._s(s.money/100)+"元")]),2===s.buy_type&&4!==s.status?e("span",{staticClass:"share",on:{click:function(e){t.shareOrder(s)}}},[t._v("\n          我要分享 "),e("img",{attrs:{src:t.shareUrl}})]):t._e()])])])])}))],1)},staticRenderFns:[]};var h=e("VU/8")(g,m,!1,function(t){e("cTk0")},"data-v-4c22d2d7",null);s.default=h.exports},az9f:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaBAMAAABbZFH9AAAAMFBMVEVHcExmZmZmZmZmZmZmZmZmZmZlZWVkZGRmZmZmZmZmZmZkZGRmZmZmZmZmZmZmZmY+CoHcAAAAD3RSTlMAuEMrdt5eC4/KhRvwnK0VbnSZAAAA2klEQVQY02NgAAIr0Z8McGD4//+fAhiH4//XZdowDrv8TwUwDSYZ/zuARbk+glT3f4Mo2fJfnIGBGSJld/7//y9AhWDDWf4DAVCR/ScQT/+jdtn/CwwM/gEg3vwHDCx/gbR8AwNI8wYGBiBiiE8AEmwQlxUwnAdZygVSxcB9EsLj/QHiMf2HqOT9BeKxfYWa0g1xG9QGMGD9BbUdDPQ/M/AhvD1fAOZqsFsNGBjWf4Mp/IHkW5b/AoiQYJoP9jsD1/+vbUoZ8f8bIBrsQF79Lwwz2kT0TKAziAEAvsROXdc3HlsAAAAASUVORK5CYII="},cTk0:function(t,s){}});