1 |
- !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.97a66b6e.js","./index-legacy.150b4b76.js","./index-legacy.85b40712.js","./index-legacy.d58ec43b.js","./index-legacy.dd9f2541.js","./index-legacy.fa2a959d.js","./index-legacy.8db33922.js","./index.module-legacy.f370f87c.js","./index-legacy.4b2a6a63.js","./icon_member-legacy.76df18e4.js","./index-legacy.662c8aa3.js","./index-legacy.8aa5c290.js"],(function(e){"use strict";var t,a,i,u,r,o,c,s,l,d,f,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.u,c=n.z,s=n.bz,l=n.F,d=n.g,f=n.w},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"===d.platformType?"/api-teacher":"/api-student",n.next=4,f.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(" ")]}})]}})])])])}}}))}}}))}();
|