detail.6cbf411b.js 3.0 KB

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