!function(){function n(n,e,t,a,i,r,u){try{var o=n[r](u),s=o.value}catch(c){return void t(c)}o.done?e(s):Promise.resolve(s).then(a,i)}System.register(["./ResizeObserver.es-legacy.5b47f92b.js","./index-legacy.6825d120.js","./index-legacy.81d1573d.js","./index-legacy.933dc860.js","./index-legacy.45cd8944.js","./index-legacy.5dda57aa.js","./index-legacy.ab1c8461.js","./index.module-legacy.2b200250.js","./index-legacy.2904d274.js","./icon_member-legacy.839f4db8.js","./index-legacy.40a7d43e.js"],(function(e){"use strict";var t,a,i,r,u,o,s,c,l,d,f,p,v,y,b,m,g,T,x,z,h;return{setters:[function(n){t=n.d,a=n.Q,i=n.V,r=n.W,u=n.j,o=n.w,s=n.B,c=n.be,l=n.F,d=n.g,f=n.y},function(n){p=n.C},function(n){v=n.C},function(n){y=n.I},function(n){b=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=a(),t=i({}),R=function(){var a,i=(a=regeneratorRuntime.mark((function n(a){var i,r,u,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r="TEACHER"===d.platformType?"/api-teacher":"/api-student",n.next=4,f.get("".concat(r,"/userOrder/detailByOrderNo/").concat(e.query.orderNo),{hideLoading:a});case 4:u=n.sent,o=u.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,r){var u=a.apply(e,t);function o(e){n(u,i,r,o,s,"next",e)}function s(e){n(u,i,r,o,s,"throw",e)}o(void 0)}))});return function(n){return i.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(y,{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 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},[s("¥"),c(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},[s("x"),null===(a=n.bizInfo)||void 0===a?void 0:a.bizValidTime,n.unit]):u("span",{class:x.t},[s("永久")])])])])}})})),u("div",{class:x.paymentPrice},[["PAYING","WAIT_PAY"].includes(t.value.status)?"需付款":"实付款",u("span",null,[u("i",null,[s("¥")]),c(t.value.actualPrice)])])]}}),u("div",{class:x.optionGroup},[u(b,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[s("订单号:")]}}),u(m,{span:"14"},{default:function(){return[t.value.orderNo]}}),u(m,{span:"1"},{default:function(){return[s(" ")]}})]}}),u(b,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[s("交易流水号:")]}}),u(m,{span:"14"},{default:function(){return[t.value.transNo]}}),u(m,{span:"1"},{default:function(){return[s(" ")]}})]}}),u(b,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[s("创建时间:")]}}),u(m,{span:"14"},{default:function(){return[t.value.createTime]}}),u(m,{span:"1"},{default:function(){return[s(" ")]}})]}}),u(b,{class:x.optionRow},{default:function(){return[u(m,{span:"8",offset:1},{default:function(){return[s("付款时间:")]}}),u(m,{span:"14"},{default:function(){return[t.value.payTime]}}),u(m,{span:"1"},{default:function(){return[s(" ")]}})]}})])])])}}}))}}}))}();
