!function(){function n(n,e,t,a,i,u,r){try{var o=n[u](r),c=o.value}catch(s){return void t(s)}o.done?e(c):Promise.resolve(c).then(a,i)}System.register(["./index-legacy.2562bdba.js","./index-legacy.bbbfd066.js","./index-legacy.af0efc4c.js","./index-legacy.523bef85.js","./index-legacy.6aec778e.js","./index-legacy.83ebfae8.js","./index-legacy.71094bb0.js","./index.module-legacy.2b200250.js","./index-legacy.4b2a6a63.js","./icon_member-legacy.76df18e4.js","./index-legacy.1f1e6dc3.js","./index-legacy.da89f2f1.js"],(function(e){"use strict";var t,a,i,u,r,o,c,s,l,f,d,p,v,b,y,m,g,T,x,z,h;return{setters:[function(n){t=n.d,a=n.O,i=n.S,u=n.U,r=n.j,o=n.v,c=n.z,s=n.bz,l=n.F,f=n.g,d=n.x},function(n){p=n.C},function(n){v=n.C},function(n){b=n.I},function(n){y=n.R,m=n.C},function(n){g=n.C},function(n){T=n.T},function(n){x=n.s},function(n){z=n.o},function(n){h=n.i},function(){},function(){}],execute:function(){e("default",t({name:"trade-detail",setup:function(){var e=a(),t=i({}),j=function(){var a,i=(a=regeneratorRuntime.mark((function n(a){var i,u,r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,u="TEACHER"===f.platformType?"/api-teacher":"/api-student",n.next=4,d.get("".concat(u,"/userOrder/detailByOrderNo/").concat(e.query.orderNo),{hideLoading:a});case 4:r=n.sent,o=r.data||{},null===(i=o.orderDetailList)||void 0===i||i.forEach((function(n){var e=n.bizContent?JSON.parse(n.bizContent):{};e&&e.purchaseType?"DAY"===e.purchaseType?n.unit="天":(n.unit="个月",n.bizInfo.bizValidTime=n.bizInfo.bizValidTime*{MONTH:1,QUARTERLY:3,YEAR_HALF:6,YEAR:12}[e.purchaseType]):n.unit="个月"})),t.value=o,n.next=12;break;case 10:n.prev=10,n.t0=n.catch(0);case 12:case"end":return n.stop()}}),n,null,[[0,10]])})),function(){var e=this,t=arguments;return new Promise((function(i,u){var r=a.apply(e,t);function o(e){n(r,i,u,o,c,"next",e)}function c(e){n(r,i,u,o,c,"throw",e)}o(void 0)}))});return function(n){return i.apply(this,arguments)}}();return u((function(){j()})),function(){return r("div",null,[r(T,null,{default:function(){return[r(g,{isFixed:!1,border:!1,color:"#131415"},null)]}}),r("div",{class:x.tradeList},[r(p,{border:!1,class:x.orderDetailGroup},{default:function(){return[r(v,{border:!1,title:o(t.value.createTime).format("YYYY-MM-DD HH:mm"),value:z[t.value.status],valueClass:x.tradeType},null),t.value.orderDetailList&&t.value.orderDetailList.map((function(n){return r(v,{border:!1,class:x.orderSection},{icon:function(){var e;return r(b,{src:"VIP"===n.goodType?h:null===(e=n.bizInfo)||void 0===e?void 0:e.bizCover,class:x.tradeLogo},null)},title:function(){var e,t,a;return r("div",{class:x.goodsSection},[r("div",{class:[x.title]},[r("span",{class:[x.name,"van-ellipsis"]},[null===(e=n.bizInfo)||void 0===e?void 0:e.bizName]),r("span",{class:x.desc},[c("¥"),s(n.actualPrice)])]),r("div",{class:x.description},[r("span",{class:[x.d,"van-ellipsis"]},[null===(t=n.bizInfo)||void 0===t?void 0:t.bizDesc]),"VIP"!==n.goodType&&r(l,null,["TENANT_ALBUM"===n.goodType?r("span",{class:x.t},[c("x"),null===(a=n.bizInfo)||void 0===a?void 0:a.bizValidTime,n.unit]):r("span",{class:x.t},[c("永久")])])])])}})})),r("div",{class:x.paymentPrice},[["PAYING","WAIT_PAY"].includes(t.value.status)?"需付款":"实付款",r("span",null,[r("i",null,[c("¥")]),s(t.value.actualPrice)])])]}}),r("div",{class:x.optionGroup},[r(y,{class:x.optionRow},{default:function(){return[r(m,{span:"8",offset:1},{default:function(){return[c("订单号:")]}}),r(m,{span:"14"},{default:function(){return[t.value.orderNo]}}),r(m,{span:"1"},{default:function(){return[c(" ")]}})]}}),r(y,{class:x.optionRow},{default:function(){return[r(m,{span:"8",offset:1},{default:function(){return[c("交易流水号:")]}}),r(m,{span:"14"},{default:function(){return[t.value.transNo]}}),r(m,{span:"1"},{default:function(){return[c(" ")]}})]}}),r(y,{class:x.optionRow},{default:function(){return[r(m,{span:"8",offset:1},{default:function(){return[c("创建时间:")]}}),r(m,{span:"14"},{default:function(){return[t.value.createTime]}}),r(m,{span:"1"},{default:function(){return[c(" ")]}})]}}),r(y,{class:x.optionRow},{default:function(){return[r(m,{span:"8",offset:1},{default:function(){return[c("付款时间:")]}}),r(m,{span:"14"},{default:function(){return[t.value.payTime]}}),r(m,{span:"1"},{default:function(){return[c(" ")]}})]}})])])])}}}))}}}))}();
