1 |
- !function(){function n(n,e,t,a,i,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(a,i)}System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.7ce7fe04.js","./index-legacy.c8c5bc4e.js","./index-legacy.4be048cf.js","./index-legacy.ff44e6c0.js","./index-legacy.6ac2a941.js","./index-legacy.9696a579.js","./index.module-legacy.2b200250.js","./index-legacy.2904d274.js","./icon_member-legacy.839f4db8.js","./index-legacy.4bad5b90.js"],(function(e){"use strict";var t,a,i,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,a=n.P,i=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=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"===f.platformType?"/api-teacher":"/api-student",n.next=4,d.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,c,"next",e)}function c(e){n(u,i,r,o,c,"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(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 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===(a=n.bizInfo)||void 0===a?void 0:a.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(" ")]}})]}})])])])}}}))}}}))}();
|