!function(){function n(n,e,t,i,a,r,u){try{var o=n[r](u),c=o.value}catch(s){return void t(s)}o.done?e(c):Promise.resolve(c).then(i,a)}System.register(["./ResizeObserver.es-legacy.bb3fc8a7.js","./index-legacy.c37f7247.js","./index-legacy.b5d1f27c.js","./index-legacy.f3ef216d.js","./index-legacy.47b908c7.js","./index-legacy.42480338.js","./index-legacy.980e36ce.js","./index.module-legacy.2b200250.js","./index-legacy.9eccffde.js","./icon_member-legacy.839f4db8.js","./index-legacy.8785c82f.js"],(function(e){"use strict";var t,i,a,r,u,o,c,s,l,f,d,p,v,b,y,m,g,T,x,z,h;return{setters:[function(n){t=n.d,i=n.P,a=n.U,r=n.V,u=n.j,o=n.w,c=n.A,s=n.bC,l=n.F,f=n.g,d=n.y},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(){}],execute:function(){e("default",t({name:"trade-detail",setup:function(){var e=i(),t=a({}),R=function(){var i,a=(i=regeneratorRuntime.mark((function n(i){var a,r,u,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r="TEACHER"===f.platformType?"/api-teacher":"/api-student",n.next=4,d.get("".concat(r,"/userOrder/detailByOrderNo/").concat(e.query.orderNo),{hideLoading:i});case 4:u=n.sent,o=u.data||{},null===(a=o.orderDetailList)||void 0===a||a.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(a,r){var u=i.apply(e,t);function o(e){n(u,a,r,o,c,"next",e)}function c(e){n(u,a,r,o,c,"throw",e)}o(void 0)}))});return function(n){return a.apply(this,arguments)}}();return r((function(){R()})),function(){return u("div",null,[u(T,null,{default:function(){return[u(g,{isFixed:!1,border:!1,color:"#131415"},null)]}}),u("div",{class:x.tradeList},[u(p,{border:!1,class:x.orderDetailGroup},{default:function(){return[u(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 u(v,{border:!1,class:x.orderSection},{icon:function(){var e;return u(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,i;return u("div",{class:x.goodsSection},[u("div",{class:[x.title]},[u("span",{class:[x.name,"van-ellipsis"]},[null===(e=n.bizInfo)||void 0===e?void 0:e.bizName]),u("span",{class:x.desc},[c("¥"),s(n.actualPrice)])]),u("div",{class:x.description},[u("span",{class:[x.d,"van-ellipsis"]},[null===(t=n.bizInfo)||void 0===t?void 0:t.bizDesc]),"VIP"!==n.goodType&&u(l,null,["TENANT_ALBUM"===n.goodType?u("span",{class:x.t},[c("x"),null===(i=n.bizInfo)||void 0===i?void 0:i.bizValidTime,n.unit]):u("span",{class:x.t},[c("永久")])])])])}})})),u("div",{class:x.paymentPrice},[["PAYING","WAIT_PAY"].includes(t.value.status)?"需付款":"实付款",u("span",null,[u("i",null,[c("¥")]),s(t.value.actualPrice)])])]}}),u("div",{class:x.optionGroup},[u(y,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[c("订单号:")]}}),u(m,{span:"14"},{default:function(){return[t.value.orderNo]}}),u(m,{span:"1"},{default:function(){return[c(" ")]}})]}}),u(y,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[c("交易流水号:")]}}),u(m,{span:"14"},{default:function(){return[t.value.transNo]}}),u(m,{span:"1"},{default:function(){return[c(" ")]}})]}}),u(y,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[c("创建时间:")]}}),u(m,{span:"14"},{default:function(){return[t.value.createTime]}}),u(m,{span:"1"},{default:function(){return[c(" ")]}})]}}),u(y,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[c("付款时间:")]}}),u(m,{span:"14"},{default:function(){return[t.value.payTime]}}),u(m,{span:"1"},{default:function(){return[c(" ")]}})]}})])])])}}}))}}}))}();
