detail-legacy.3600bf72.js 4.2 KB

1
  1. !function(){function e(e,n,t,a,i,r,u){try{var o=e[r](u),s=o.value}catch(c){return void t(c)}o.done?n(s):Promise.resolve(s).then(a,i)}System.register(["./ResizeObserver.es-legacy.9ef5ac8c.js","./index-legacy.6268a8fe.js","./index-legacy.e9381954.js","./index-legacy.8802e914.js","./index-legacy.8b605db5.js","./index-legacy.402479d8.js","./index-legacy.3c7372ae.js","./index.module-legacy.2b200250.js","./index-legacy.98761967.js","./icon_member-legacy.839f4db8.js","./index-legacy.91eef022.js"],(function(n){"use strict";var t,a,i,r,u,o,s,c,l,f,d,p,v,y,b,m,g,T,x,z,h;return{setters:[function(e){t=e.d,a=e.P,i=e.U,r=e.V,u=e.j,o=e.w,s=e.A,c=e.bA,l=e.F,f=e.g,d=e.y},function(e){p=e.C},function(e){v=e.C},function(e){y=e.I},function(e){b=e.R,m=e.C},function(e){g=e.C},function(e){T=e.T},function(e){x=e.s},function(e){z=e.o},function(e){h=e.i},function(){}],execute:function(){n("default",t({name:"trade-detail",setup:function(){var n=a(),t=i({}),A=function(){var a,i=(a=regeneratorRuntime.mark((function e(a){var i,r,u,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r="TEACHER"===f.platformType?"/api-teacher":"/api-student",e.next=4,d.get("".concat(r,"/userOrder/detailByOrderNo/").concat(n.query.orderNo),{hideLoading:a});case 4:u=e.sent,o=u.data||{},null===(i=o.orderDetailList)||void 0===i||i.forEach((function(e){var n=e.bizContent?JSON.parse(e.bizContent):{};n&&n.purchaseType?"DAY"===n.purchaseType?e.unit="天":(e.unit="个月",e.bizInfo.bizValidTime=e.bizInfo.bizValidTime*{MONTH:1,QUARTERLY:3,YEAR_HALF:6,YEAR:12}[n.purchaseType]):e.unit="个月"})),t.value=o,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})),function(){var n=this,t=arguments;return new Promise((function(i,r){var u=a.apply(n,t);function o(n){e(u,i,r,o,s,"next",n)}function s(n){e(u,i,r,o,s,"throw",n)}o(void 0)}))});return function(e){return i.apply(this,arguments)}}();return r((function(){A()})),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(e){return u(v,{border:!1,class:x.orderSection},{icon:function(){var n;return u(y,{src:"VIP"===e.goodType?h:null===(n=e.bizInfo)||void 0===n?void 0:n.bizCover,class:x.tradeLogo},null)},title:function(){var n,t,a;return u("div",{class:x.goodsSection},[u("div",{class:[x.title]},[u("span",{class:[x.name,"van-ellipsis"]},[null===(n=e.bizInfo)||void 0===n?void 0:n.bizName]),u("span",{class:x.desc},[s("¥"),c(e.actualPrice)])]),u("div",{class:x.description},[u("span",{class:[x.d,"van-ellipsis"]},[null===(t=e.bizInfo)||void 0===t?void 0:t.bizDesc]),"VIP"!==e.goodType&&u(l,null,["TENANT_ALBUM"===e.goodType?u("span",{class:x.t},[s("x"),null===(a=e.bizInfo)||void 0===a?void 0:a.bizValidTime,e.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(" ")]}})]}})])])])}}}))}}}))}();