1 |
- !function(){function e(e,r,t,n,d,o,i){try{var l=e[o](i),a=l.value}catch(_){return void t(_)}l.done?r(a):Promise.resolve(a).then(n,d)}function r(r){return function(){var t=this,n=arguments;return new Promise((function(d,o){var i=r.apply(t,n);function l(r){e(i,d,o,l,a,"next",r)}function a(r){e(i,d,o,l,a,"throw",r)}l(void 0)}))}}System.register(["./index-legacy-a314c7dd.js","./index-legacy-fb49b6ec.js","./api-legacy-cf2a56a7.js","./index-legacy-72dfb7ed.js","./index-legacy-10af6852.js","./index-legacy-dff5e6e7.js","./index-legacy-59282c70.js"],(function(e,t){"use strict";var n,d,o,i,l,a,_,u,s,f,c,m,g,p,y,h,b,T,v,I,N;return{setters:[e=>{n=e.d,d=e.P,o=e.q,i=e.x,l=e.y,a=e.a,_=e.W,u=e.F,s=e.A,f=e.U,c=e.C,m=e.E},e=>{g=e.u,p=e.a},e=>{y=e.g,h=e.a,b=e.h},e=>{T=e.I},e=>{v=e.C},e=>{I=e.C},e=>{N=e.T}],execute:function(){var C=document.createElement("style");C.textContent="._paymentTitle_1eftd_1{min-height:4.72rem;background:linear-gradient(180deg,#5becff 0%,#259cfe 100%);border-radius:0 0 .21333rem .21333rem}._paymentTitle_1eftd_1 .van-nav-bar .van-icon,._paymentTitle_1eftd_1 .van-nav-bar__title{color:#fff}._paymentTitle_1eftd_1 ._orderType_1eftd_10{padding-top:.93333rem;padding-bottom:2.4rem;display:flex;align-items:center;justify-content:center;color:#fff}._paymentTitle_1eftd_1 ._orderType_1eftd_10 ._img_1eftd_18{width:1.38667rem;height:1.38667rem;margin-right:.37333rem}._paymentTitle_1eftd_1 ._orderType_1eftd_10 span{font-size:.58667rem;font-weight:500;line-height:.8rem}._paymentTitle_1eftd_1 ._orderPrice_1eftd_28{padding-top:.05333rem;font-size:.58667rem;text-align:center;font-size:.37333rem}._mTop_1eftd_34{margin-top:-1.38667rem!important}._cellGroup_1eftd_37{margin:.26667rem .34667rem}._cellGroup_1eftd_37 ._brandName_1eftd_40{line-height:.48rem;font-size:.32rem;padding:0 .16rem;background:linear-gradient(180deg,#FFF5E6 0%,#FFF6E7 100%);border-radius:.10667rem;border:.02667rem solid #FFE9D9;color:#be7332}._cellGroup_1eftd_37 .van-cell{padding:.42667rem .45333rem;font-size:.42667rem;color:#333}._cellGroup_1eftd_37 .van-cell__value{flex:0 auto}._cellGroup_1eftd_37 ._buyDetail_1eftd_57{display:flex;align-items:center;justify-content:space-between;padding:.48rem .48rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._cellGroup_1eftd_37 ._buyDetail_1eftd_57 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.37333rem;background:linear-gradient(180deg,#FFB790 0%,#FF8057 100%);border-radius:.05333rem}._cellGroup_1eftd_37 ._buyDetail_1eftd_57 ._buyDetailTitle_1eftd_75{display:flex;align-items:center}._cellGroup_1eftd_37 ._buyDetail_1eftd_57 ._refundBtn_1eftd_79{font-size:.42667rem;color:#777;line-height:.58667rem}._cellGroup_1eftd_37 ._buyImg_1eftd_84{width:1.54667rem;height:1.54667rem;overflow:hidden;border-radius:.13333rem;margin-right:.24rem}._container_1eftd_91 .van-button{font-size:.48rem;font-weight:500}._dialogTitle_1eftd_95{text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding:.53333rem 0 .4rem .66667rem}._dialogTitle_1eftd_95 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._refundContent_1eftd_111{padding:0 .53333rem .66667rem}._refundContent_1eftd_111 ._tips_1eftd_114{font-size:.4rem;color:#333;line-height:.56rem}._refundTitle_1eftd_119{padding-top:.66667rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._refundTitle_1eftd_119 span{color:#f44541}._phoneName_1eftd_129{background:#f2f2f2;border-radius:.16rem}._cancelBtn_1eftd_133{height:1.17333rem;border:none;background:linear-gradient(73deg,#5BECFF 0%,#259CFE 100%);font-size:.42667rem;font-weight:500;margin:.53333rem auto;width:88%}._cancelBtn_1eftd_133._orderNo_1eftd_142{background:#fff;color:#777;border:1Px solid #777}\n",document.head.appendChild(C);const D={paymentTitle:"_paymentTitle_1eftd_1",orderType:"_orderType_1eftd_10",img:"_img_1eftd_18",orderPrice:"_orderPrice_1eftd_28",mTop:"_mTop_1eftd_34",cellGroup:"_cellGroup_1eftd_37",brandName:"_brandName_1eftd_40",buyDetail:"_buyDetail_1eftd_57",buyDetailTitle:"_buyDetailTitle_1eftd_75",refundBtn:"_refundBtn_1eftd_79",buyImg:"_buyImg_1eftd_84",container:"_container_1eftd_91",dialogTitle:"_dialogTitle_1eftd_95",refundContent:"_refundContent_1eftd_111",tips:"_tips_1eftd_114",refundTitle:"_refundTitle_1eftd_119",phoneName:"_phoneName_1eftd_129",cancelBtn:"_cancelBtn_1eftd_133",orderNo:"_orderNo_1eftd_142"},E=""+new URL("icon_refunding-47b787dd.svg",t.meta.url).href,A=""+new URL("icon_success-418d3aaa.svg",t.meta.url).href,F=""+new URL("icon_close-c5194700.svg",t.meta.url).href,P=""+new URL("icon_tradeing-f6dadddb.svg",t.meta.url).href;e("default",n({name:"collection-record-detail",setup(){const e=d();o();const t=!!e.query.userRefundOrderId,n=i({refundAudit:"",refundOrderId:"",orders:{},goodsInfos:[],background:"transparent",color:"#fff",backIconColor:"white",timer:null,timerCount:0}),C=function(){var d=r((function*(){var r;let d=null;try{d=t?yield y(e.query.userRefundOrderId):yield h(e.query.orderNo)}catch(i){}if(200!==(null===(r=d)||void 0===r?void 0:r.code))return;n.orders=d.data||{};const o=(t?d.data.studentRefundOrderDetails:d.data.goodsInfos)||[];o.forEach((e=>{const r=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=r,e.brandName=e.brandName?e.brandName:w[e.goodsType]})),n.goodsInfos=o,t&&(n.refundAudit=d.data.refundAudit||"",n.refundOrderId=d.data.userRefundOrderId||"",n.orders.status=n.refundAudit)}));return function(){return d.apply(this,arguments)}}(),G=function(){var e=r((function*(){["WAIT_PAY","PAYING"].includes(n.orders.status)&&n.timerCount<=10?n.timer=setTimeout(r((function*(){n.timerCount+=1,yield C(),G()})),3e3):clearTimeout(n.timer)}));return function(){return e.apply(this,arguments)}}(),w={VIP:"数字化乐器学练工具",INSTRUMENTS:"乐器购买",TEXTBOOK:"教材"};l(r((function*(){yield C(),yield G(),g(document,"scroll",(()=>{const{y:e}=p();e.value>52?(n.background="#fff",n.color="#323333",n.backIconColor="black"):(n.background="transparent",n.color="#fff",n.backIconColor="white")}))})));const k=function(){var e=r((function*(){yield b(n.refundOrderId),m("撤销退回成功"),yield C()}));return function(){return e.apply(this,arguments)}}();return()=>{return a("div",{class:D.paymentResult},[a("div",{class:[D.paymentTitle]},[a(_,{title:t?"申请退回":"领取详情",background:"transparent"},null),n.orders.id&&a(u,null,[a("div",{class:D.orderType},[a(T,{class:D.img,src:(r=n.orders.status,{WAIT_PAY:P,PAYING:P,PAID:A,TIMEOUT:F,FAIL:F,CLOSED:F,ING:E,REFUNDING:E,REFUNDED:A}[r]||A)},null),a("div",{class:D.orderInfo},[a("span",null,[(e=n.orders.status,{WAIT_PAY:"领取中",PAYING:"领取中",PAID:"领取成功",TIMEOUT:"订单超时",FAIL:"领取失败",CLOSED:"已关闭",ING:"退回申请中",PASS:"已退回",REJECT:"退回失败",REFUNDING:"退款中",REFUNDED:"已退回"}[e])]),"PAID"===n.orders.status?a("div",{class:D.orderPrice},[s("实付金额:¥ "),f(n.orders.paymentCashAmount)]):null,["ING","PASS","REJECT","REFUNDED"].includes(n.orders.status)&&a("div",{class:D.orderPrice},[s("退回金额:¥ "),f(n.orders.paymentCashAmount)]),["CLOSED"].includes(n.orders.status)&&a("div",{class:D.orderPrice},[s("实付金额:¥ "),f(n.orders.paymentCashAmount)])])])])]),a(v,{inset:!0,class:[D.cellGroup,D.mTop]},{default:()=>[a(I,null,{title:()=>"付款时间",value:()=>a("span",null,[n.orders.payTime||n.orders.refundTime||"--"])}),a(I,null,{title:()=>"订单编号",value:()=>a("span",null,[n.orders.orderNo])})]}),a(v,{inset:!0,class:D.cellGroup},{default:()=>[a("div",{class:D.buyDetail},[a("div",{class:D.buyDetailTitle},[a("i",null,null),s(" 购买详情")])]),n.goodsInfos.map((e=>a(I,null,{icon:()=>a(T,{class:D.buyImg,src:e.goodsUrl},null),title:()=>a("div",{class:D.buyContent},[a("p",{class:D.goodsTitle},[e.goodsName]),a(N,{class:D.brandName},{default:()=>["VIP"===n.orders.orderType?"12个月":e.brandName]})]),value:()=>a("span",null,[s("x "),e.goodsNum])})))]}),"ING"===n.refundAudit&&a(c,{class:D.cancelBtn,block:!0,round:!0,type:"primary",onClick:()=>k()},{default:()=>[s("撤销退回")]})]);var e,r}}}))}}}))}();
|