1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,a,i,o){try{var u=e[i](o),c=u.value}catch(s){return void n(s)}u.done?t(c):Promise.resolve(c).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function u(e){r(o,a,i,u,c,"next",e)}function c(e){r(o,a,i,u,c,"throw",e)}u(void 0)}))}}var i=document.createElement("style");i.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(i),System.register(["./index-legacy.c1f63540.js","./index-legacy.7e71b67e.js","./index-legacy.ec5d708a.js","./index-legacy.4596d3ae.js","./index-legacy.3a7317ca.js","./index-legacy.3d6462c3.js","./index-legacy.2318e5fa.js","./index-legacy.8a8e9c42.js","./index-legacy.45d07924.js","./index-legacy.908aeecb.js","./index-legacy.aa9b4ef8.js","./index-legacy.ff6bf1d9.js","./use-tab-status-legacy.77a01b2b.js","./utils-legacy.270b3ede.js","./Picker-legacy.5a9c13b9.js","./index-legacy.6aa82d51.js","./index-legacy.49ab1c78.js","./index-legacy.6603017a.js"],(function(e){"use strict";var n,r,i,o,u,c,s,l,h,p,f,d,m,g,y,v,S,w,_,x,b,A,C,k,L,T,j,B,O,P,D;return{setters:[function(e){n=e.d,r=e.ag,i=e.r,o=e.ai,u=e.$,c=e.c,s=e.q,l=e.b6,h=e.ak,p=e.P,f=e.a_,d=e.al,m=e.m,g=e.B,y=e.b9,v=e.ah,S=e.R,w=e.an,_=e.aj},function(e){x=e.O},function(e){b=e.o,A=e.b},function(e){C=e.O},function(e){k=e.O},function(e){L=e.L},function(e){T=e.C},function(e){j=e.C},function(e){B=e.I},function(e){O=e.D},function(e){P=e.T,D=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N={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"},E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACglJREFUeF7tXHtwFdUZ/303AQFFKVJaEFRmULGdQung4HTaaRGn1QqJ6ChgQiEoCIQkIC+JohEEDC8hEIiJhiAJCahAeITSB33g1M7YmhkcpCN0sMhLS4U2tCWQ3K9zsnfvnrt39+6ePbkxDpy/7p79nr9zzrffedxDSFC4rqgPuDkdRA8BPBBEPcB8XSKe1nlHETHcOuJkKUSNYD4H0CEw7wWl1NLPck+6KTItiXnPv1zbG03NBUA4C4zU1rfSLjGJgHgZT9QE0EakphTQT3JOu1kWrec9q9OAc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aYXu4tCWM0q0GjjpzKtlgNS1Ea+anCAPighMBGF2EdCxjc9E+/VTTIDXSYmi+noZiFdNcl8PMg1xG7qCc+x8oFc/vya3Ld3Z48CWpcHXg1r2xVY+pbcvNvg+YNiYeMe/OAu8ux04ETmkIFYCf/AI0N3hPHUL7Q7g7xHa2wZ40JpyCbg1Ae1vq4H6Aw4xyGtlTg7SKwRAZvFidOgAKalARj7w9b7WS+GwaLnG/8YyXNcZeCI/FqQYWkl/py7A2ES0kujO1wOZLwA3drcqP/8U2LIEaG6SCL38i39PvPzJ+AijOlZv6AY8kgf0jIC0sxg4Vu88nPoPBh6WkrfaYuCojdbUL2jTPWhNLXd8D0ifZjwJcLavkTYkFUe25D/x8onBv2Jypi560sAfAXffC7y1ErhyydkqsVKYK2XfRdnA5YC0sv4OnYDHZwMfvQcc+r2t5ygCJA9KXpYVHKDger8ynMSFExIApDrWvPxWladK3/r6BUCXwHBOZALb5zJLjpPnMZv+8vU3Ei8dfxIU+Uum12BzPyViNF2Ck3pebdvyvv3pP0X8yvg68LU/9To2INE+4sXjskFo56tevvpf6xOFQtOJCzP6oJmOG9fgRMaI71jhFkO8EjK7LzY57UN/E1LC/VpM4SXjSsEsXU1hc8ALB7+HI4O28Zehn6iM8jdPNgAqGNMbqSnXLjeJNiA1oEPTAJpXY1xu0gLSokxxsdK163GAMBAaRQsqWy5aivkw86KMHDBbFyz5/q+n37Gjmtio0nvZ4SWPxN1BM2hBVfwFS1ZPGpMGpkowS+f+bQlOVI8tGLsdfrDXu/nhuknQJvobQJxJC2rcr+iKgiRiUgoVIMxZLdfmJKt4JNLJUhuVK/QTxHrIRjAKqKDG+5I32SguyOgDak4HYFwTCPRwnZYk3ZtWUkBoBOMcCIcA2gu+XEsF212vCfw/e8Nub+wsikIAAAAASUVORK5CYII=";var I=n({name:"wait_pay",props:{height:{type:Number,default:50}},setup:function(e){var n=r(),g=i({isClick:!1,timeShow:!1,currentData:[o().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}),y=function(){var e=a(regeneratorRuntime.mark((function e(){var n,r,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.length>0&&void 0!==a[0]&&a[0],e.prev=1,!g.isClick){e.next=4;break}return e.abrupt("return");case 4:return g.isClick=!0,e.next=7,m.post("/api-student/userPaymentOrder/page",{data:t(t({},g.params),{},{orderType:"ALL"===g.currentType?null:g.currentType,paymentYear:g.currentData[0]})});case 7:if(n=e.sent,g.listState.loading=!1,g.listState.refreshing=!1,r=n.data||{},!(g.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:g.list=g.list.concat(r.rows||[]),g.listState.finished=r.current>=r.pages,g.params.page=r.current+1,g.listState.dataShow=g.list.length>0,g.isClick=!1,e.next=26;break;case 20:e.prev=20,e.t0=e.catch(1),g.listState.dataShow=!1,g.listState.finished=!0,g.listState.refreshing=!1,g.isClick=!1;case 26:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];g.params.page=1,g.list=[],g.listState.dataShow=!0,g.listState.loading=!1,g.listState.finished=!1,y(e)},S=function(e){var t={};return g.typeArray.forEach((function(n){n.value===e&&(t=n)})),t.name};return u((function(){y(),Object.keys(b).forEach((function(e){g.typeArray.push({name:b[e],value:e})}))})),function(){var e;return c("div",null,[c("div",{class:"searchGroup"},[c("div",{class:["searchItem",g.timeShow&&"searchItem-active"],onClick:function(){return g.timeShow=!0}},[c("span",null,[g.currentData[0],s("年")]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem",g.typeShow&&"searchItem-active"],onClick:function(){return g.typeShow=!0}},[c("span",null,[S(g.currentType)]),c("i",{class:"arrow"},null)])]),c("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[g.listState.dataShow?c(C,{modelValue:g.listState.refreshing,"onUpdate:modelValue":function(e){return g.listState.refreshing=e},onRefresh:function(){return v(!0)},style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:function(){return[c(L,{finished:g.listState.finished,finishedText:" ",class:[N.liveList],onLoad:y,style:{paddingTop:"12px"},immediateCheck:!1},(t=e=g.list.map((function(e){return c(T,{inset:!0,class:N.cellGroup,onClick:function(){return function(e){n.push({path:"payment-result",query:{orderNo:e.orderNo,refund:"refund"}})}(e)}},{default:function(){return[c(j,{center:!0,titleClass:N.times},{title:function(){return c("span",{class:N.times},[e.createTime])},value:function(){return c("span",{class:N.status},[A[e.status]])}}),c(j,{isLink:!0,center:!0,clickable:!1,titleStyle:{flex:"0 auto"}},{icon:function(){return c(B,{class:N.img,src:E},null)},title:function(){return c("span",{class:N.name},[b[e.orderType]])},value:function(){return c("div",{class:N.price},[c("span",null,[s("¥ ")]),l(e.paymentCashAmount)])}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}}))];var t}}):c(h,{btnStatus:!1,tips:"暂无订单"},null)]),c(p,{show:g.timeShow,"onUpdate:show":function(e){return g.timeShow=e},position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:function(){return[c(O,{modelValue:g.currentData,"onUpdate:modelValue":function(e){return g.currentData=e},columnsType:["year"],formatter:f,onConfirm:function(e){g.currentData=e.selectedValues,g.timeShow=!1,v()},onCancel:function(){return g.timeShow=!1}},null)]}}),c(k,{show:g.typeShow,"onUpdate:show":function(e){return g.typeShow=e},actions:g.typeArray,teleport:"body",onSelect:function(e){g.typeArray.forEach((function(e){e.selected=!1})),e.selected=!0,g.currentType=e.value,g.typeShow=!1,v()}},null)])}}});var U=n({name:"wait_pay",props:{height:{type:Number,default:50}},setup:function(e){var n=r(),g=i({isClick:!1,timeShow:!1,currentData:[o().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}}),y=function(){var e=a(regeneratorRuntime.mark((function e(){var n,r,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.length>0&&void 0!==a[0]&&a[0],e.prev=1,!g.isClick){e.next=4;break}return e.abrupt("return");case 4:return g.isClick=!0,e.next=7,m.post("/api-student/userPaymentOrder/page",{data:t(t({},g.params),{},{orderType:"ALL"===g.currentType?null:g.currentType,paymentYear:g.currentData[0]})});case 7:if(n=e.sent,g.listState.loading=!1,g.listState.refreshing=!1,r=n.data||{},!(g.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:g.list=g.list.concat(r.rows||[]),g.listState.finished=r.current>=r.pages,g.params.page=r.current+1,g.listState.dataShow=g.list.length>0,g.isClick=!1,e.next=26;break;case 20:e.prev=20,e.t0=e.catch(1),g.listState.dataShow=!1,g.listState.refreshing=!1,g.listState.finished=!0,g.isClick=!1;case 26:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];g.params.page=1,g.list=[],g.listState.dataShow=!0,g.listState.loading=!1,g.listState.finished=!1,y(e)},S=function(e){var t={};return g.typeArray.forEach((function(n){n.value===e&&(t=n)})),t.name};return u((function(){y(),Object.keys(b).forEach((function(e){g.typeArray.push({name:b[e],value:e})}))})),function(){var e;return c("div",null,[c("div",{class:"searchGroup"},[c("div",{class:["searchItem",g.timeShow&&"searchItem-active"],onClick:function(){return g.timeShow=!0}},[c("span",null,[g.currentData[0],s("年")]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem",g.typeShow&&"searchItem-active"],onClick:function(){return g.typeShow=!0}},[c("span",null,[S(g.currentType)]),c("i",{class:"arrow"},null)])]),c("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[g.listState.dataShow?c(C,{modelValue:g.listState.refreshing,"onUpdate:modelValue":function(e){return g.listState.refreshing=e},onRefresh:function(){return v(!0)},style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:function(){return[c(L,{finished:g.listState.finished,finishedText:" ",class:[N.liveList],onLoad:y,style:{paddingTop:"12px"},immediateCheck:!1},(t=e=g.list.map((function(e){return c(T,{inset:!0,class:N.cellGroup,onClick:function(){return function(e){n.push({path:"payment-result",query:{orderNo:e.orderNo}})}(e)}},{default:function(){return[c(j,{center:!0,titleClass:N.times},{title:function(){return c("span",{class:N.times},[e.createTime])},value:function(){return c("span",{class:N.status},[A[e.status]])}}),c(j,{isLink:!0,clickable:!1,center:!0,titleStyle:{flex:"0 auto"}},{icon:function(){return c(B,{class:N.img,src:E},null)},title:function(){return c("span",{class:N.name},[b[e.orderType]])},value:function(){return c("div",{class:N.price},[c("span",null,[s("¥ ")]),l(e.paymentCashAmount)])}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}}))];var t}}):c(h,{btnStatus:!1,tips:"暂无订单"},null)]),c(p,{show:g.timeShow,"onUpdate:show":function(e){return g.timeShow=e},position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:function(){return[c(O,{modelValue:g.currentData,"onUpdate:modelValue":function(e){return g.currentData=e},columnsType:["year"],formatter:f,onConfirm:function(e){g.currentData=e.selectedValues,g.timeShow=!1,v()},onCancel:function(){return g.timeShow=!1}},null)]}}),c(k,{show:g.typeShow,"onUpdate:show":function(e){return g.typeShow=e},actions:g.typeArray,teleport:"body",onSelect:function(e){g.typeArray.forEach((function(e){e.selected=!1})),e.selected=!0,g.currentType=e.value,g.typeShow=!1,v()}},null)])}}});var G=n({name:"wait_pay",props:{height:{type:Number,default:50}},setup:function(e){var n=r(),v=i({isClick:!1,timeShow:!1,currentData:[o().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}}),S=function(){var e=a(regeneratorRuntime.mark((function e(){var n,r,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.length>0&&void 0!==a[0]&&a[0],e.prev=1,!v.isClick){e.next=4;break}return e.abrupt("return");case 4:return v.isClick=!0,e.next=7,m.post("/api-student/userPaymentOrder/page",{data:t(t({},v.params),{},{orderType:"ALL"===v.currentType?null:v.currentType,paymentYear:v.currentData[0]})});case 7:if(n=e.sent,v.listState.loading=!1,v.listState.refreshing=!1,r=n.data||{},!(v.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:v.list=v.list.concat(r.rows||[]),v.listState.finished=r.current>=r.pages,v.params.page=r.current+1,v.listState.dataShow=v.list.length>0,v.isClick=!1,e.next=26;break;case 20:e.prev=20,e.t0=e.catch(1),v.listState.dataShow=!1,v.listState.refreshing=!1,v.listState.finished=!0,v.isClick=!1;case 26:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v.params.page=1,v.list=[],v.listState.dataShow=!0,v.listState.loading=!1,v.listState.finished=!1,S(e)},_=function(e){var t={};return v.typeArray.forEach((function(n){n.value===e&&(t=n)})),t.name},x=function(){var e=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y({message:"您是否关闭该订单",cancelButtonText:"取消",confirmButtonText:"确定"}).then(a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("/api-student/userPaymentOrder/cancelPayment/"+t.orderNo,{hideLoading:!1});case 3:w(),e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])}))));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=a(regeneratorRuntime.mark((function e(t){var r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.get("/api-student/userPaymentOrder/unpaid",{hideLoading:!1,params:{orderNo:t.orderNo,paymentType:t.orderType}});case 3:r=e.sent,a=r.data,i=a.paymentConfig,n.push({path:"/orderDetail",query:{config:JSON.stringify(i.paymentConfig),orderNo:i.orderNo}}),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}();return u((function(){S(),Object.keys(b).forEach((function(e){v.typeArray.push({name:b[e],value:e})}))})),function(){var e;return c("div",null,[c("div",{class:"searchGroup"},[c("div",{class:["searchItem",v.timeShow&&"searchItem-active"],onClick:function(){return v.timeShow=!0}},[c("span",null,[v.currentData[0],s("年")]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem",v.typeShow&&"searchItem-active"],onClick:function(){return v.typeShow=!0}},[c("span",null,[_(v.currentType)]),c("i",{class:"arrow"},null)])]),c("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[v.listState.dataShow?c(C,{modelValue:v.listState.refreshing,"onUpdate:modelValue":function(e){return v.listState.refreshing=e},onRefresh:function(){return w(!1)},style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:function(){return[c(L,{finished:v.listState.finished,finishedText:" ",class:[N.liveList],onLoad:S,style:{paddingTop:"12px"},immediateCheck:!1},(t=e=v.list.map((function(e){return c(T,{inset:!0,class:N.cellGroup,onClick:function(){return function(e){n.push({path:"payment-result",query:{orderNo:e.orderNo}})}(e)}},{default:function(){return[c(j,{center:!0,titleClass:N.times},{title:function(){return c("span",{class:N.times},[e.createTime])},value:function(){return c("span",{class:N.status},[A[e.status]])}}),c(j,{isLink:!0,center:!0,clickable:!1,titleStyle:{flex:"0 auto"}},{icon:function(){return c(B,{class:N.img,src:E},null)},title:function(){return c("span",{class:N.name},[b[e.orderType]])},value:function(){return c("div",{class:N.price},[c("span",null,[s("¥ ")]),l(e.paymentCashAmount)])}}),c(j,null,{value:function(){return c("div",{class:N.btnGroup},[c(g,{plain:!0,round:!0,size:"small",color:"#777777",class:N.smallBtn,onClick:function(t){t.stopPropagation(),x(e)}},{default:function(){return[s("取消订单")]}}),c(g,{plain:!0,round:!0,size:"small",type:"primary",class:N.smallBtn,onClick:function(t){t.stopPropagation(),P(e)}},{default:function(){return[s("继续支付")]}})])}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}}))];var t}}):c(h,{btnStatus:!1,tips:"暂无订单"},null)]),c(p,{show:v.timeShow,"onUpdate:show":function(e){return v.timeShow=e},position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:function(){return[c(O,{modelValue:v.currentData,"onUpdate:modelValue":function(e){return v.currentData=e},columnsType:["year"],formatter:f,onConfirm:function(e){v.currentData=e.selectedValues,v.timeShow=!1,w()},onCancel:function(){return v.timeShow=!1}},null)]}}),c(k,{show:v.typeShow,"onUpdate:show":function(e){return v.typeShow=e},actions:v.typeArray,teleport:"body",onSelect:function(e){v.typeArray.forEach((function(e){e.selected=!1})),e.selected=!0,v.currentType=e.value,v.typeShow=!1,w()}},null)])}}});e("default",n({name:"trade-record",setup:function(){var e=v(),t=sessionStorage.getItem("tradeRecordTabs"),n=i({tabValue:e.query.tab||t||"wait_pay",height:50,headerHeight:0}),r=S();return u((function(){var e=w(r.value).height;n.height=e})),function(){return c("div",{class:N.tradeRecord},[c(x,{onGetHeight:function(e){console.log(e,"height"),n.height=n.height+e,n.headerHeight=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[c(_,null,null)]}}),c(P,{lineWidth:20,lineHeight:4,sticky:!0,animated:!0,swipeable:!0,offsetTop:n.headerHeight,active:n.tabValue,"onUpdate:active":function(e){return n.tabValue=e},onChange:function(e){sessionStorage.setItem("tradeRecordTabs",e)}},{default:function(){return[c(D,{title:"待完成",name:"wait_pay"},{default:function(){return[c(G,{height:n.height},null)]}}),c(D,{title:"已完成",name:"paid"},{default:function(){return[c(I,{height:n.height},null)]}}),c(D,{title:"退费",name:"refund"},{default:function(){return[c(U,{height:n.height},null)]}})]}})])}}}))}}}))}();
|