detail.dc4a64c2.js 2.9 KB

1
  1. import{d as m,O as v,S as T,U as y,j as a,u as b,z as s,bz as d,F as C,g,w as A}from"./index.394decd7.js";import{C as F}from"./index.9462d7c5.js";import{C as p}from"./index.9e0d46e4.js";import{I as z}from"./index.ae2dd816.js";import{R as i,C as t}from"./index.a9c78aa8.js";import{C as I}from"./index.e6e212d8.js";import{T as N}from"./index.88270f6d.js";import{s as e}from"./index.module.36522c3a.js";import{o as E}from"./index.68f32c85.js";import{i as R}from"./icon_member.663cb792.js";import"./index.75a0444f.js";import"./index.b9aedd1d.js";var S=m({name:"trade-detail",setup(){const f=v(),o=T({}),c=async l=>{try{const u=g.platformType==="TEACHER"?"/api-teacher":"/api-student",r=await A.get(`${u}/userOrder/detailByOrderNo/${f.query.orderNo}`,{hideLoading:l});console.log(r.data),o.value=r.data}catch{}};return y(()=>{c()}),()=>a("div",null,[a(N,null,{default:()=>[a(I,{isFixed:!1,border:!1,color:"#131415"},null)]}),a("div",{class:e.tradeList},[a(F,{border:!1,class:e.orderDetailGroup},{default:()=>[a(p,{border:!1,title:b(o.value.createTime).format("YYYY-MM-DD HH:mm"),value:E[o.value.status],valueClass:e.tradeType},null),o.value.orderDetailList&&o.value.orderDetailList.map(l=>a(p,{border:!1,class:e.orderSection},{icon:()=>{var u;return a(z,{src:l.goodType==="VIP"?R:(u=l.bizInfo)==null?void 0:u.bizCover,class:e.tradeLogo},null)},title:()=>{var u,r,n;return a("div",{class:e.goodsSection},[a("div",{class:[e.title]},[a("span",{class:[e.name,"van-ellipsis"]},[(u=l.bizInfo)==null?void 0:u.bizName]),a("span",{class:e.desc},[s("\xA5"),d(l.actualPrice)])]),a("div",{class:e.description},[a("span",{class:[e.d,"van-ellipsis"]},[(r=l.bizInfo)==null?void 0:r.bizDesc]),l.goodType!=="VIP"&&a(C,null,[l.goodType==="TENANT_ALBUM"?a("span",{class:e.t},[s("x"),(n=l.bizInfo)==null?void 0:n.bizValidTime,s("\u4E2A\u6708")]):a("span",{class:e.t},[s("\u6C38\u4E45")])])])])}})),a("div",{class:e.paymentPrice},[["PAYING","WAIT_PAY"].includes(o.value.status)?"\u9700\u4ED8\u6B3E":"\u5B9E\u4ED8\u6B3E",a("span",null,[a("i",null,[s("\xA5")]),d(o.value.actualPrice)])])]}),a("div",{class:e.optionGroup},[a(i,{class:e.optionRow},{default:()=>[a(t,{span:"8",offset:1},{default:()=>[s("\u8BA2\u5355\u53F7:")]}),a(t,{span:"14"},{default:()=>[o.value.orderNo]}),a(t,{span:"1"},{default:()=>[s(" ")]})]}),a(i,{class:e.optionRow},{default:()=>[a(t,{span:"8",offset:1},{default:()=>[s("\u4EA4\u6613\u6D41\u6C34\u53F7:")]}),a(t,{span:"14"},{default:()=>[o.value.transNo]}),a(t,{span:"1"},{default:()=>[s(" ")]})]}),a(i,{class:e.optionRow},{default:()=>[a(t,{span:"8",offset:1},{default:()=>[s("\u521B\u5EFA\u65F6\u95F4:")]}),a(t,{span:"14"},{default:()=>[o.value.createTime]}),a(t,{span:"1"},{default:()=>[s(" ")]})]}),a(i,{class:e.optionRow},{default:()=>[a(t,{span:"8",offset:1},{default:()=>[s("\u4ED8\u6B3E\u65F6\u95F4:")]}),a(t,{span:"14"},{default:()=>[o.value.payTime]}),a(t,{span:"1"},{default:()=>[s(" ")]})]})])])])}});export{S as default};