1 |
- !function(){var e=document.createElement("style");e.innerHTML="._tradeRecord_ehtrx_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._tradeRecord_ehtrx_1 .van-tab{font-weight:600}._tradeRecord_ehtrx_1 .van-tabs__wrap{padding-bottom:.08rem}._searchGroup_ehtrx_12{padding:0 .34667rem;line-height:1.12rem;background-color:#f8f8f8}._searchBand_ehtrx_17{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._cellGroup_ehtrx_23{margin-bottom:.32rem}._cellGroup_ehtrx_23 .van-cell{padding:.32rem .4rem}._cellGroup_ehtrx_23 ._times_ehtrx_29{flex:0 auto;font-size:.42667rem;color:#777}._cellGroup_ehtrx_23 ._status_ehtrx_34{color:#fa6400;font-size:.37333rem}._cellGroup_ehtrx_23 ._img_ehtrx_38{width:.96rem;height:.96rem;margin-right:.26667rem;flex-shrink:0}._cellGroup_ehtrx_23 ._name_ehtrx_44{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._cellGroup_ehtrx_23 ._price_ehtrx_50{font-size:.53333rem;color:#fc1a19}._cellGroup_ehtrx_23 ._price_ehtrx_50 span{font-size:.37333rem}._cellGroup_ehtrx_23 ._refundBtn_ehtrx_57{border:0;font-size:.42667rem;color:#777;line-height:.58667rem}._cellGroup_ehtrx_23 ._smallBtn_ehtrx_63{padding:0 .32rem}._cellGroup_ehtrx_23 ._smallBtn_ehtrx_63+._smallBtn_ehtrx_63{margin-left:.32rem}._cellGroup_ehtrx_23 ._btnGroup_ehtrx_69{padding-bottom:.13333rem}._dialogTitle_ehtrx_72{text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding:.53333rem 0 .4rem .66667rem}._dialogTitle_ehtrx_72 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._refundContent_ehtrx_88{padding:0 .53333rem .66667rem}._refundContent_ehtrx_88 ._tips_ehtrx_91{font-size:.4rem;color:#333;line-height:.56rem}._container_ehtrx_96 .van-button{font-size:.48rem;font-weight:500}._refundTitle_ehtrx_100{padding-top:.66667rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._refundTitle_ehtrx_100 span{color:#f44541}._phoneName_ehtrx_110{background:#f2f2f2;border-radius:.16rem}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./index-legacy.4e015ad0.js","./index-legacy.d64e5695.js","./index-legacy.d552a2f3.js","./index-legacy.fad72574.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js","./index-legacy.fecc738b.js","./index-legacy.5f462740.js","./index-legacy.ac7c51db.js","./index-legacy.8c254533.js","./use-tab-status-legacy.91417466.js","./utils-legacy.6e8de97c.js","./Picker-legacy.95f03705.js","./index-legacy.38b799d5.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var t,a,r,i,n,l,s,o,c,h,d,u,p,m,g,f,y,S,_,w,v,A,x,C,b,L,k,T,B,j,N;return{setters:[function(e){t=e.d,a=e.ag,r=e.r,i=e.ai,n=e.$,l=e.c,s=e.q,o=e.ba,c=e.ak,h=e.P,d=e.b2,u=e.al,p=e.m,m=e.B,g=e.bd,f=e.ah,y=e.R,S=e.an,_=e.aj},function(e){w=e.O},function(e){v=e.o,A=e.b},function(e){x=e.O},function(e){C=e.O},function(e){b=e.L},function(e){L=e.C},function(e){k=e.C},function(e){T=e.I},function(e){B=e.D},function(e){j=e.T,N=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var D={tradeRecord:"_tradeRecord_ehtrx_1",searchGroup:"_searchGroup_ehtrx_12",searchBand:"_searchBand_ehtrx_17",cellGroup:"_cellGroup_ehtrx_23",times:"_times_ehtrx_29",status:"_status_ehtrx_34",img:"_img_ehtrx_38",name:"_name_ehtrx_44",price:"_price_ehtrx_50",refundBtn:"_refundBtn_ehtrx_57",smallBtn:"_smallBtn_ehtrx_63",btnGroup:"_btnGroup_ehtrx_69",dialogTitle:"_dialogTitle_ehtrx_72",refundContent:"_refundContent_ehtrx_88",tips:"_tips_ehtrx_91",container:"_container_ehtrx_96",refundTitle:"_refundTitle_ehtrx_100",phoneName:"_phoneName_ehtrx_110"},I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACglJREFUeF7tXHtwFdUZ/303AQFFKVJaEFRmULGdQung4HTaaRGn1QqJ6ChgQiEoCIQkIC+JohEEDC8hEIiJhiAJCahAeITSB33g1M7YmhkcpCN0sMhLS4U2tCWQ3K9zsnfvnrt39+6ePbkxDpy/7p79nr9zzrffedxDSFC4rqgPuDkdRA8BPBBEPcB8XSKe1nlHETHcOuJkKUSNYD4H0CEw7wWl1NLPck+6KTItiXnPv1zbG03NBUA4C4zU1rfSLjGJgHgZT9QE0EakphTQT3JOu1kWrec9q9OAcCWAroDZgnYcveq92sOrZ9gBaxP9DQAyacSsXTEdTn7gPStywLQa4FBLPUUMs/vjZq8pzLFfSprc5EXrIz/aXn8YFJpBI2aujXOF96xMA/MOAAY4V28Jg2iU2ZNa2pprC3uDQn81htW1AqABHB5A6fNOGwDtXl6KMCZZ0HjFCLex5JfPKxT6leM11v02toOcEJXRyDmTid8p7INUOg4gFezXMDtANj4zdphk9tgSZbcZ1p70i69bE/cj3rksG+B1frGOoXP7mAUSFoAp6fppOnFtYR3C/GAA864Gln3E25eKLPKWq8HbAD6eEgBdcp0+RPMQ1djkYoqqPFV6LwRU5YWokfidxQz4zVTtFkhBIJQC9Psu0PfbQNceQIc2mLLJ5ly5DDT8AzhxGDheD4Sb493y7aflF/HbAiDN0rkr8P3HgG7f1BTUSuwXPgP+uA34n5g96BXit17WA0j0nGETgK+1E3BMPC6cBQ5UGD1JoxBvW6QHUP8hwOAHNExIImv9fuDY+1oKiLctlABSzEwF5/CJwM3t9CP4z1PAgXIx646A5NUX4v0n3ioDFADsUXPbPiD7NfNKI7BjmV9qRzrim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skFo56tevvpf6xOFQtOJCzP6oJmOG9fgRMaI71jhFkO8EjK7LzY57UN/E1LC/VpM4SXjSsEsXU1hc8ALB7+HI4O28Zehn6iM8jdPNgAqGNMbqSnXLjeJNiA1oEPTAJpXY1xu0gLSokxxsdK163GAMBAaRQsqWy5aivkw86KMHDBbFyz5/q+n37Gjmtio0nvZ4SWPxN1BM2hBVfwFS1ZPGpMGpkowS+f+bQlOVI8tGLsdfrDXu/nhuknQJvobQJxJC2rcr+iKgiRiUgoVIMxZLdfmJKt4JNLJUhuVK/QTxHrIRjAKqKDG+5I32SguyOgDak4HYFwTCPRwnZYk3ZtWUkBoBOMcCIcA2gu+XEsF212vCfw/e8Nub+wsikIAAAAASUVORK5CYII=";var P=t({name:"wait_pay",props:{height:{type:Number,default:50}},setup(e){const t=a(),m=r({isClick:!1,timeShow:!1,currentData:[i().year()+""],typeShow:!1,currentType:"ALL",typeArray:[{name:"全部",value:"ALL",selected:!0}],resionList:[],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:e.height||0},params:{paymentStatus:["PAID","TIMEOUT","FAIL","CLOSED"],page:1,rows:20},refundStatus:!1,resion:null,refundSelect:{},checked:null}),g=async(e=!1)=>{try{if(m.isClick)return;m.isClick=!0;const e=await p.post("/api-student/userPaymentOrder/page",{data:{...m.params,orderType:"ALL"===m.currentType?null:m.currentType,paymentYear:m.currentData[0]}});m.listState.loading=!1,m.listState.refreshing=!1;const t=e.data||{};if(m.list.length>0&&1===t.current)return;m.list=m.list.concat(t.rows||[]),m.listState.finished=t.current>=t.pages,m.params.page=t.current+1,m.listState.dataShow=m.list.length>0,m.isClick=!1}catch{m.listState.dataShow=!1,m.listState.finished=!0,m.listState.refreshing=!1,m.isClick=!1}},f=(e=!1)=>{m.params.page=1,m.list=[],m.listState.dataShow=!0,m.listState.loading=!1,m.listState.finished=!1,g(e)},y=e=>{let t={};return m.typeArray.forEach((a=>{a.value===e&&(t=a)})),t.name};return n((()=>{g(),Object.keys(v).forEach((e=>{m.typeArray.push({name:v[e],value:e})}))})),()=>{let e;return l("div",null,[l("div",{class:"searchGroup"},[l("div",{class:["searchItem",m.timeShow&&"searchItem-active"],onClick:()=>m.timeShow=!0},[l("span",null,[m.currentData[0],s("年")]),l("i",{class:"arrow"},null)]),l("div",{class:["searchItem",m.typeShow&&"searchItem-active"],onClick:()=>m.typeShow=!0},[l("span",null,[y(m.currentType)]),l("i",{class:"arrow"},null)])]),l("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[m.listState.dataShow?l(x,{modelValue:m.listState.refreshing,"onUpdate:modelValue":e=>m.listState.refreshing=e,onRefresh:()=>f(!0),style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:()=>{return[l(b,{finished:m.listState.finished,finishedText:" ",class:[D.liveList],onLoad:g,style:{paddingTop:"12px"},immediateCheck:!1},(a=e=m.list.map((e=>l(L,{inset:!0,class:D.cellGroup,onClick:()=>(e=>{t.push({path:"payment-result",query:{orderNo:e.orderNo,refund:"refund"}})})(e)},{default:()=>[l(k,{center:!0,titleClass:D.times},{title:()=>l("span",{class:D.times},[e.createTime]),value:()=>l("span",{class:D.status},[A[e.status]])}),l(k,{isLink:!0,center:!0,clickable:!1,titleStyle:{flex:"0 auto"}},{icon:()=>l(T,{class:D.img,src:I},null),title:()=>l("span",{class:D.name},[v[e.orderType]]),value:()=>l("div",{class:D.price},[l("span",null,[s("¥ ")]),o(e.paymentCashAmount)])})]}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!u(a)?e:{default:()=>[e]}))];var a}}):l(c,{btnStatus:!1,tips:"暂无订单"},null)]),l(h,{show:m.timeShow,"onUpdate:show":e=>m.timeShow=e,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[l(B,{modelValue:m.currentData,"onUpdate:modelValue":e=>m.currentData=e,columnsType:["year"],formatter:d,onConfirm:e=>{m.currentData=e.selectedValues,m.timeShow=!1,f()},onCancel:()=>m.timeShow=!1},null)]}),l(C,{show:m.typeShow,"onUpdate:show":e=>m.typeShow=e,actions:m.typeArray,teleport:"body",onSelect:e=>{m.typeArray.forEach((e=>{e.selected=!1})),e.selected=!0,m.currentType=e.value,m.typeShow=!1,f()}},null)])}}});var E=t({name:"wait_pay",props:{height:{type:Number,default:50}},setup(e){const t=a(),m=r({isClick:!1,timeShow:!1,currentData:[i().year()+""],typeShow:!1,currentType:"ALL",typeArray:[{name:"全部",value:"ALL",selected:!0}],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:e.height||0},params:{paymentStatus:["REFUNDING","REFUNDED"],page:1,rows:20}}),g=async(e=!1)=>{try{if(m.isClick)return;m.isClick=!0;const e=await p.post("/api-student/userPaymentOrder/page",{data:{...m.params,orderType:"ALL"===m.currentType?null:m.currentType,paymentYear:m.currentData[0]}});m.listState.loading=!1,m.listState.refreshing=!1;const t=e.data||{};if(m.list.length>0&&1===t.current)return;m.list=m.list.concat(t.rows||[]),m.listState.finished=t.current>=t.pages,m.params.page=t.current+1,m.listState.dataShow=m.list.length>0,m.isClick=!1}catch{m.listState.dataShow=!1,m.listState.refreshing=!1,m.listState.finished=!0,m.isClick=!1}},f=(e=!1)=>{m.params.page=1,m.list=[],m.listState.dataShow=!0,m.listState.loading=!1,m.listState.finished=!1,g(e)},y=e=>{let t={};return m.typeArray.forEach((a=>{a.value===e&&(t=a)})),t.name};return n((()=>{g(),Object.keys(v).forEach((e=>{m.typeArray.push({name:v[e],value:e})}))})),()=>{let e;return l("div",null,[l("div",{class:"searchGroup"},[l("div",{class:["searchItem",m.timeShow&&"searchItem-active"],onClick:()=>m.timeShow=!0},[l("span",null,[m.currentData[0],s("年")]),l("i",{class:"arrow"},null)]),l("div",{class:["searchItem",m.typeShow&&"searchItem-active"],onClick:()=>m.typeShow=!0},[l("span",null,[y(m.currentType)]),l("i",{class:"arrow"},null)])]),l("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[m.listState.dataShow?l(x,{modelValue:m.listState.refreshing,"onUpdate:modelValue":e=>m.listState.refreshing=e,onRefresh:()=>f(!0),style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:()=>{return[l(b,{finished:m.listState.finished,finishedText:" ",class:[D.liveList],onLoad:g,style:{paddingTop:"12px"},immediateCheck:!1},(a=e=m.list.map((e=>l(L,{inset:!0,class:D.cellGroup,onClick:()=>(e=>{t.push({path:"payment-result",query:{orderNo:e.orderNo}})})(e)},{default:()=>[l(k,{center:!0,titleClass:D.times},{title:()=>l("span",{class:D.times},[e.createTime]),value:()=>l("span",{class:D.status},[A[e.status]])}),l(k,{isLink:!0,clickable:!1,center:!0,titleStyle:{flex:"0 auto"}},{icon:()=>l(T,{class:D.img,src:I},null),title:()=>l("span",{class:D.name},[v[e.orderType]]),value:()=>l("div",{class:D.price},[l("span",null,[s("¥ ")]),o(e.paymentCashAmount)])})]}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!u(a)?e:{default:()=>[e]}))];var a}}):l(c,{btnStatus:!1,tips:"暂无订单"},null)]),l(h,{show:m.timeShow,"onUpdate:show":e=>m.timeShow=e,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[l(B,{modelValue:m.currentData,"onUpdate:modelValue":e=>m.currentData=e,columnsType:["year"],formatter:d,onConfirm:e=>{m.currentData=e.selectedValues,m.timeShow=!1,f()},onCancel:()=>m.timeShow=!1},null)]}),l(C,{show:m.typeShow,"onUpdate:show":e=>m.typeShow=e,actions:m.typeArray,teleport:"body",onSelect:e=>{m.typeArray.forEach((e=>{e.selected=!1})),e.selected=!0,m.currentType=e.value,m.typeShow=!1,f()}},null)])}}});var U=t({name:"wait_pay",props:{height:{type:Number,default:50}},setup(e){const t=a(),f=r({isClick:!1,timeShow:!1,currentData:[i().year()+""],typeShow:!1,currentType:"ALL",typeArray:[{name:"全部",value:"ALL",selected:!0}],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:e.height||0},params:{paymentStatus:["WAIT_PAY","PAYING"],page:1,rows:20}}),y=async(e=!1)=>{try{if(f.isClick)return;f.isClick=!0;const e=await p.post("/api-student/userPaymentOrder/page",{data:{...f.params,orderType:"ALL"===f.currentType?null:f.currentType,paymentYear:f.currentData[0]}});f.listState.loading=!1,f.listState.refreshing=!1;const t=e.data||{};if(f.list.length>0&&1===t.current)return;f.list=f.list.concat(t.rows||[]),f.listState.finished=t.current>=t.pages,f.params.page=t.current+1,f.listState.dataShow=f.list.length>0,f.isClick=!1}catch{f.listState.dataShow=!1,f.listState.refreshing=!1,f.listState.finished=!0,f.isClick=!1}},S=(e=!1)=>{f.params.page=1,f.list=[],f.listState.dataShow=!0,f.listState.loading=!1,f.listState.finished=!1,y(e)},_=e=>{let t={};return f.typeArray.forEach((a=>{a.value===e&&(t=a)})),t.name};return n((()=>{y(),Object.keys(v).forEach((e=>{f.typeArray.push({name:v[e],value:e})}))})),()=>{let e;return l("div",null,[l("div",{class:"searchGroup"},[l("div",{class:["searchItem",f.timeShow&&"searchItem-active"],onClick:()=>f.timeShow=!0},[l("span",null,[f.currentData[0],s("年")]),l("i",{class:"arrow"},null)]),l("div",{class:["searchItem",f.typeShow&&"searchItem-active"],onClick:()=>f.typeShow=!0},[l("span",null,[_(f.currentType)]),l("i",{class:"arrow"},null)])]),l("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[f.listState.dataShow?l(x,{modelValue:f.listState.refreshing,"onUpdate:modelValue":e=>f.listState.refreshing=e,onRefresh:()=>S(!1),style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:()=>{return[l(b,{finished:f.listState.finished,finishedText:" ",class:[D.liveList],onLoad:y,style:{paddingTop:"12px"},immediateCheck:!1},(a=e=f.list.map((e=>l(L,{inset:!0,class:D.cellGroup,onClick:()=>(e=>{t.push({path:"payment-result",query:{orderNo:e.orderNo}})})(e)},{default:()=>[l(k,{center:!0,titleClass:D.times},{title:()=>l("span",{class:D.times},[e.createTime]),value:()=>l("span",{class:D.status},[A[e.status]])}),l(k,{isLink:!0,center:!0,clickable:!1,titleStyle:{flex:"0 auto"}},{icon:()=>l(T,{class:D.img,src:I},null),title:()=>l("span",{class:D.name},[v[e.orderType]]),value:()=>l("div",{class:D.price},[l("span",null,[s("¥ ")]),o(e.paymentCashAmount)])}),l(k,null,{value:()=>l("div",{class:D.btnGroup},[l(m,{plain:!0,round:!0,size:"small",color:"#777777",class:D.smallBtn,onClick:t=>{t.stopPropagation(),(async e=>{g({message:"您是否关闭该订单",cancelButtonText:"取消",confirmButtonText:"确定"}).then((async()=>{try{await p.post("/api-student/userPaymentOrder/cancelPayment/"+e.orderNo,{hideLoading:!1}),S()}catch{}}))})(e)}},{default:()=>[s("取消订单")]}),l(m,{plain:!0,round:!0,size:"small",type:"primary",class:D.smallBtn,onClick:a=>{a.stopPropagation(),(async e=>{try{const{data:a}=await p.get("/api-student/userPaymentOrder/unpaid",{hideLoading:!1,params:{orderNo:e.orderNo,paymentType:e.orderType}}),r=a.paymentConfig;t.push({path:"/orderDetail",query:{config:JSON.stringify(r.paymentConfig),orderNo:r.orderNo}})}catch{}})(e)}},{default:()=>[s("继续支付")]})])})]}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!u(a)?e:{default:()=>[e]}))];var a}}):l(c,{btnStatus:!1,tips:"暂无订单"},null)]),l(h,{show:f.timeShow,"onUpdate:show":e=>f.timeShow=e,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[l(B,{modelValue:f.currentData,"onUpdate:modelValue":e=>f.currentData=e,columnsType:["year"],formatter:d,onConfirm:e=>{f.currentData=e.selectedValues,f.timeShow=!1,S()},onCancel:()=>f.timeShow=!1},null)]}),l(C,{show:f.typeShow,"onUpdate:show":e=>f.typeShow=e,actions:f.typeArray,teleport:"body",onSelect:e=>{f.typeArray.forEach((e=>{e.selected=!1})),e.selected=!0,f.currentType=e.value,f.typeShow=!1,S()}},null)])}}});e("default",t({name:"trade-record",setup(){const e=f(),t=sessionStorage.getItem("tradeRecordTabs"),a=r({tabValue:e.query.tab||t||"wait_pay",height:50,headerHeight:0}),i=y();return n((()=>{const{height:e}=S(i.value);a.height=e})),()=>l("div",{class:D.tradeRecord},[l(w,{onGetHeight:e=>{console.log(e,"height"),a.height=a.height+e,a.headerHeight=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[l(_,null,null)]}),l(j,{lineWidth:20,lineHeight:4,sticky:!0,animated:!0,swipeable:!0,offsetTop:a.headerHeight,active:a.tabValue,"onUpdate:active":e=>a.tabValue=e,onChange:e=>{sessionStorage.setItem("tradeRecordTabs",e)}},{default:()=>[l(N,{title:"待完成",name:"wait_pay"},{default:()=>[l(U,{height:a.height},null)]}),l(N,{title:"已完成",name:"paid"},{default:()=>[l(P,{height:a.height},null)]}),l(N,{title:"退费",name:"refund"},{default:()=>[l(E,{height:a.height},null)]})]})])}}))}}}))}();
|