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.4f40e5e1.js";import{C as F}from"./index.1939ab0d.js";import{C as p}from"./index.c4fa4795.js";import{I as z}from"./index.97fec1a5.js";import{R as i,C as t}from"./index.8a241fb6.js";import{C as I}from"./index.41aa1fc7.js";import{T as N}from"./index.4b5981fc.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.10256463.js";var O=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{O as default};
