1 |
- import{d as S,ag as C,r as A,ai as L,$ as w,c as t,q as d,ba as T,ak as B,P as b,b2 as k,al as D,m as g,B as G,bd as j,ah as V,R as _,an as H,aj as R}from"./index.5f7ffb46.js";import{O as Y}from"./index.7790de2a.js";import{o as h,b as E}from"./index.b28db9f5.js";import{O as x}from"./index.1d6ac2c5.js";import{O as N}from"./index.fdad9231.js";import{L as O}from"./index.9ef28852.js";import{C as P}from"./index.052b3caa.js";import{C as f}from"./index.abd668f7.js";import{I}from"./index.276a5d68.js";import{D as U}from"./index.af85409e.js";import{T as X,a as v}from"./index.6bbd7daa.js";import"./index.78e196a2.js";import"./use-tab-status.69b57a37.js";import"./utils.0f86fc1f.js";import"./Picker.148c9d83.js";import"./index.de1f78a6.js";import"./index.99e0cf1f.js";import"./index.61ab9823.js";const J="_tradeRecord_ehtrx_1",Q="_searchGroup_ehtrx_12",Z="_searchBand_ehtrx_17",M="_cellGroup_ehtrx_23",K="_times_ehtrx_29",q="_status_ehtrx_34",W="_img_ehtrx_38",z="_name_ehtrx_44",$="_price_ehtrx_50",ee="_refundBtn_ehtrx_57",te="_smallBtn_ehtrx_63",ae="_btnGroup_ehtrx_69",se="_dialogTitle_ehtrx_72",re="_refundContent_ehtrx_88",le="_tips_ehtrx_91",ne="_container_ehtrx_96",ie="_refundTitle_ehtrx_100",oe="_phoneName_ehtrx_110";var l={tradeRecord:J,searchGroup:Q,searchBand:Z,cellGroup:M,times:K,status:q,img:W,name:z,price:$,refundBtn:ee,smallBtn:te,btnGroup:ae,dialogTitle:se,refundContent:re,tips:le,container:ne,refundTitle:ie,phoneName:oe},F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACglJREFUeF7tXHtwFdUZ/303AQFFKVJaEFRmULGdQung4HTaaRGn1QqJ6ChgQiEoCIQkIC+JohEEDC8hEIiJhiAJCahAeITSB33g1M7YmhkcpCN0sMhLS4U2tCWQ3K9zsnfvnrt39+6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oBOMcCIcA2gu+XEsF212vCfw/e8Nub+wsikIAAAAASUVORK5CYII=";function ce(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!D(o)}var ue=S({name:"wait_pay",props:{height:{type:Number,default:50}},setup(o){const p=C(),e=A({isClick:!1,timeShow:!1,currentData:[L().year()+""],typeShow:!1,currentType:"ALL",typeArray:[{name:"\u5168\u90E8",value:"ALL",selected:!0}],resionList:[],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:o.height||0},params:{paymentStatus:["PAID","TIMEOUT","FAIL","CLOSED"],page:1,rows:20},refundStatus:!1,resion:null,refundSelect:{},checked:null}),u=async(r=!1)=>{try{if(e.isClick)return;e.isClick=!0;const a=await g.post("/api-student/userPaymentOrder/page",{data:{...e.params,orderType:e.currentType==="ALL"?null:e.currentType,paymentYear:e.currentData[0]}});e.listState.loading=!1,e.listState.refreshing=!1;const s=a.data||{};if(e.list.length>0&&s.current===1)return;e.list=e.list.concat(s.rows||[]),e.listState.finished=s.current>=s.pages,e.params.page=s.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.finished=!0,e.listState.refreshing=!1,e.isClick=!1}},i=(r=!1)=>{e.params.page=1,e.list=[],e.listState.dataShow=!0,e.listState.loading=!1,e.listState.finished=!1,u(r)},m=r=>{let a={};return e.typeArray.forEach(s=>{s.value===r&&(a=s)}),a.name},y=r=>{p.push({path:"payment-result",query:{orderNo:r.orderNo,refund:"refund"}})};return w(()=>{u(),Object.keys(h).forEach(r=>{e.typeArray.push({name:h[r],value:r})})}),()=>{let r;return t("div",null,[t("div",{class:"searchGroup"},[t("div",{class:["searchItem",e.timeShow&&"searchItem-active"],onClick:()=>e.timeShow=!0},[t("span",null,[e.currentData[0],d("\u5E74")]),t("i",{class:"arrow"},null)]),t("div",{class:["searchItem",e.typeShow&&"searchItem-active"],onClick:()=>e.typeShow=!0},[t("span",null,[m(e.currentType)]),t("i",{class:"arrow"},null)])]),t("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[e.listState.dataShow?t(x,{modelValue:e.listState.refreshing,"onUpdate:modelValue":a=>e.listState.refreshing=a,onRefresh:()=>i(!0),style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:()=>[t(O,{finished:e.listState.finished,finishedText:" ",class:[l.liveList],onLoad:u,style:{paddingTop:"12px"},immediateCheck:!1},ce(r=e.list.map(a=>t(P,{inset:!0,class:l.cellGroup,onClick:()=>y(a)},{default:()=>[t(f,{center:!0,titleClass:l.times},{title:()=>t("span",{class:l.times},[a.createTime]),value:()=>t("span",{class:l.status},[E[a.status]])}),t(f,{isLink:!0,center:!0,clickable:!1,titleStyle:{flex:"0 auto"}},{icon:()=>t(I,{class:l.img,src:F},null),title:()=>t("span",{class:l.name},[h[a.orderType]]),value:()=>t("div",{class:l.price},[t("span",null,[d("\xA5 ")]),T(a.paymentCashAmount)])})]})))?r:{default:()=>[r]})]}):t(B,{btnStatus:!1,tips:"\u6682\u65E0\u8BA2\u5355"},null)]),t(b,{show:e.timeShow,"onUpdate:show":a=>e.timeShow=a,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[t(U,{modelValue:e.currentData,"onUpdate:modelValue":a=>e.currentData=a,columnsType:["year"],formatter:k,onConfirm:a=>{e.currentData=a.selectedValues,e.timeShow=!1,i()},onCancel:()=>e.timeShow=!1},null)]}),t(N,{show:e.typeShow,"onUpdate:show":a=>e.typeShow=a,actions:e.typeArray,teleport:"body",onSelect:a=>{e.typeArray.forEach(s=>{s.selected=!1}),a.selected=!0,e.currentType=a.value,e.typeShow=!1,i()}},null)])}}});function he(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!D(o)}var pe=S({name:"wait_pay",props:{height:{type:Number,default:50}},setup(o){const p=C(),e=A({isClick:!1,timeShow:!1,currentData:[L().year()+""],typeShow:!1,currentType:"ALL",typeArray:[{name:"\u5168\u90E8",value:"ALL",selected:!0}],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:o.height||0},params:{paymentStatus:["REFUNDING","REFUNDED"],page:1,rows:20}}),u=async(r=!1)=>{try{if(e.isClick)return;e.isClick=!0;const a=await g.post("/api-student/userPaymentOrder/page",{data:{...e.params,orderType:e.currentType==="ALL"?null:e.currentType,paymentYear:e.currentData[0]}});e.listState.loading=!1,e.listState.refreshing=!1;const s=a.data||{};if(e.list.length>0&&s.current===1)return;e.list=e.list.concat(s.rows||[]),e.listState.finished=s.current>=s.pages,e.params.page=s.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.refreshing=!1,e.listState.finished=!0,e.isClick=!1}},i=(r=!1)=>{e.params.page=1,e.list=[],e.listState.dataShow=!0,e.listState.loading=!1,e.listState.finished=!1,u(r)},m=r=>{let a={};return e.typeArray.forEach(s=>{s.value===r&&(a=s)}),a.name},y=r=>{p.push({path:"payment-result",query:{orderNo:r.orderNo}})};return w(()=>{u(),Object.keys(h).forEach(r=>{e.typeArray.push({name:h[r],value:r})})}),()=>{let r;return t("div",null,[t("div",{class:"searchGroup"},[t("div",{class:["searchItem",e.timeShow&&"searchItem-active"],onClick:()=>e.timeShow=!0},[t("span",null,[e.currentData[0],d("\u5E74")]),t("i",{class:"arrow"},null)]),t("div",{class:["searchItem",e.typeShow&&"searchItem-active"],onClick:()=>e.typeShow=!0},[t("span",null,[m(e.currentType)]),t("i",{class:"arrow"},null)])]),t("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[e.listState.dataShow?t(x,{modelValue:e.listState.refreshing,"onUpdate:modelValue":a=>e.listState.refreshing=a,onRefresh:()=>i(!0),style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:()=>[t(O,{finished:e.listState.finished,finishedText:" ",class:[l.liveList],onLoad:u,style:{paddingTop:"12px"},immediateCheck:!1},he(r=e.list.map(a=>t(P,{inset:!0,class:l.cellGroup,onClick:()=>y(a)},{default:()=>[t(f,{center:!0,titleClass:l.times},{title:()=>t("span",{class:l.times},[a.createTime]),value:()=>t("span",{class:l.status},[E[a.status]])}),t(f,{isLink:!0,clickable:!1,center:!0,titleStyle:{flex:"0 auto"}},{icon:()=>t(I,{class:l.img,src:F},null),title:()=>t("span",{class:l.name},[h[a.orderType]]),value:()=>t("div",{class:l.price},[t("span",null,[d("\xA5 ")]),T(a.paymentCashAmount)])})]})))?r:{default:()=>[r]})]}):t(B,{btnStatus:!1,tips:"\u6682\u65E0\u8BA2\u5355"},null)]),t(b,{show:e.timeShow,"onUpdate:show":a=>e.timeShow=a,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[t(U,{modelValue:e.currentData,"onUpdate:modelValue":a=>e.currentData=a,columnsType:["year"],formatter:k,onConfirm:a=>{e.currentData=a.selectedValues,e.timeShow=!1,i()},onCancel:()=>e.timeShow=!1},null)]}),t(N,{show:e.typeShow,"onUpdate:show":a=>e.typeShow=a,actions:e.typeArray,teleport:"body",onSelect:a=>{e.typeArray.forEach(s=>{s.selected=!1}),a.selected=!0,e.currentType=a.value,e.typeShow=!1,i()}},null)])}}});function de(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!D(o)}var fe=S({name:"wait_pay",props:{height:{type:Number,default:50}},setup(o){const p=C(),e=A({isClick:!1,timeShow:!1,currentData:[L().year()+""],typeShow:!1,currentType:"ALL",typeArray:[{name:"\u5168\u90E8",value:"ALL",selected:!0}],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:o.height||0},params:{paymentStatus:["WAIT_PAY","PAYING"],page:1,rows:20}}),u=async(s=!1)=>{try{if(e.isClick)return;e.isClick=!0;const n=await g.post("/api-student/userPaymentOrder/page",{data:{...e.params,orderType:e.currentType==="ALL"?null:e.currentType,paymentYear:e.currentData[0]}});e.listState.loading=!1,e.listState.refreshing=!1;const c=n.data||{};if(e.list.length>0&&c.current===1)return;e.list=e.list.concat(c.rows||[]),e.listState.finished=c.current>=c.pages,e.params.page=c.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.refreshing=!1,e.listState.finished=!0,e.isClick=!1}},i=(s=!1)=>{e.params.page=1,e.list=[],e.listState.dataShow=!0,e.listState.loading=!1,e.listState.finished=!1,u(s)},m=s=>{let n={};return e.typeArray.forEach(c=>{c.value===s&&(n=c)}),n.name},y=async s=>{j({message:"\u60A8\u662F\u5426\u5173\u95ED\u8BE5\u8BA2\u5355",cancelButtonText:"\u53D6\u6D88",confirmButtonText:"\u786E\u5B9A"}).then(async()=>{try{await g.post("/api-student/userPaymentOrder/cancelPayment/"+s.orderNo,{hideLoading:!1}),i()}catch{}})},r=async s=>{try{const{data:n}=await g.get("/api-student/userPaymentOrder/unpaid",{hideLoading:!1,params:{orderNo:s.orderNo,paymentType:s.orderType}}),c=n.paymentConfig;p.push({path:"/orderDetail",query:{config:JSON.stringify(c.paymentConfig),orderNo:c.orderNo}})}catch{}},a=s=>{p.push({path:"payment-result",query:{orderNo:s.orderNo}})};return w(()=>{u(),Object.keys(h).forEach(s=>{e.typeArray.push({name:h[s],value:s})})}),()=>{let s;return t("div",null,[t("div",{class:"searchGroup"},[t("div",{class:["searchItem",e.timeShow&&"searchItem-active"],onClick:()=>e.timeShow=!0},[t("span",null,[e.currentData[0],d("\u5E74")]),t("i",{class:"arrow"},null)]),t("div",{class:["searchItem",e.typeShow&&"searchItem-active"],onClick:()=>e.typeShow=!0},[t("span",null,[m(e.currentType)]),t("i",{class:"arrow"},null)])]),t("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[e.listState.dataShow?t(x,{modelValue:e.listState.refreshing,"onUpdate:modelValue":n=>e.listState.refreshing=n,onRefresh:()=>i(!1),style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:()=>[t(O,{finished:e.listState.finished,finishedText:" ",class:[l.liveList],onLoad:u,style:{paddingTop:"12px"},immediateCheck:!1},de(s=e.list.map(n=>t(P,{inset:!0,class:l.cellGroup,onClick:()=>a(n)},{default:()=>[t(f,{center:!0,titleClass:l.times},{title:()=>t("span",{class:l.times},[n.createTime]),value:()=>t("span",{class:l.status},[E[n.status]])}),t(f,{isLink:!0,center:!0,clickable:!1,titleStyle:{flex:"0 auto"}},{icon:()=>t(I,{class:l.img,src:F},null),title:()=>t("span",{class:l.name},[h[n.orderType]]),value:()=>t("div",{class:l.price},[t("span",null,[d("\xA5 ")]),T(n.paymentCashAmount)])}),t(f,null,{value:()=>t("div",{class:l.btnGroup},[t(G,{plain:!0,round:!0,size:"small",color:"#777777",class:l.smallBtn,onClick:c=>{c.stopPropagation(),y(n)}},{default:()=>[d("\u53D6\u6D88\u8BA2\u5355")]}),t(G,{plain:!0,round:!0,size:"small",type:"primary",class:l.smallBtn,onClick:c=>{c.stopPropagation(),r(n)}},{default:()=>[d("\u7EE7\u7EED\u652F\u4ED8")]})])})]})))?s:{default:()=>[s]})]}):t(B,{btnStatus:!1,tips:"\u6682\u65E0\u8BA2\u5355"},null)]),t(b,{show:e.timeShow,"onUpdate:show":n=>e.timeShow=n,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[t(U,{modelValue:e.currentData,"onUpdate:modelValue":n=>e.currentData=n,columnsType:["year"],formatter:k,onConfirm:n=>{e.currentData=n.selectedValues,e.timeShow=!1,i()},onCancel:()=>e.timeShow=!1},null)]}),t(N,{show:e.typeShow,"onUpdate:show":n=>e.typeShow=n,actions:e.typeArray,teleport:"body",onSelect:n=>{e.typeArray.forEach(c=>{c.selected=!1}),n.selected=!0,e.currentType=n.value,e.typeShow=!1,i()}},null)])}}}),Pe=S({name:"trade-record",setup(){const o=V(),p=sessionStorage.getItem("tradeRecordTabs"),e=A({tabValue:o.query.tab||p||"wait_pay",height:50,headerHeight:0}),u=_();return w(()=>{const{height:i}=H(u.value);e.height=i}),()=>t("div",{class:l.tradeRecord},[t(Y,{onGetHeight:i=>{console.log(i,"height"),e.height=e.height+i,e.headerHeight=i,document.documentElement.style.setProperty("--header-height",i+"px")}},{default:()=>[t(R,null,null)]}),t(X,{lineWidth:20,lineHeight:4,sticky:!0,animated:!0,swipeable:!0,offsetTop:e.headerHeight,active:e.tabValue,"onUpdate:active":i=>e.tabValue=i,onChange:i=>{sessionStorage.setItem("tradeRecordTabs",i)}},{default:()=>[t(v,{title:"\u5F85\u5B8C\u6210",name:"wait_pay"},{default:()=>[t(fe,{height:e.height},null)]}),t(v,{title:"\u5DF2\u5B8C\u6210",name:"paid"},{default:()=>[t(ue,{height:e.height},null)]}),t(v,{title:"\u9000\u8D39",name:"refund"},{default:()=>[t(pe,{height:e.height},null)]})]})])}});export{Pe as default};
|