order-detail-legacy-5cf43588.js 22 KB

1
  1. !function(){function e(e,t,r,o,n,a,i){try{var c=e[a](i),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(o,n)}function t(t){return function(){var r=this,o=arguments;return new Promise((function(n,a){var i=t.apply(r,o);function c(t){e(i,n,a,c,l,"next",t)}function l(t){e(i,n,a,c,l,"throw",t)}c(void 0)}))}}System.register(["./index-legacy-e6be1dcb.js","./index-legacy-72ad1f03.js","./index-legacy-f9bb7174.js","./index-legacy-3fae0ac6.js","./user-auth-legacy-2e5db34f.js","./index-legacy-12dd4e63.js","./index-legacy-3308108b.js","./index-legacy-fc299f0c.js","./index-legacy-d3534fc9.js","./index-legacy-cdd7affc.js","./index-legacy-b6d273d9.js","./Checker-legacy-f8a8311d.js","./index-legacy-2c7b85a2.js","./browser-legacy-cef1ca35.js","./index-legacy-ab315fa9.js","./index-legacy-92ba0770.js"],(function(e,r){"use strict";var o,n,a,i,c,l,s,d,u,_,m,g,f,p,h,A,y,b,I,w,C,v,T,N,P,x,k,S,D,E,z;return{setters:[e=>{o=e.d,n=e.q,a=e.e,i=e.a,c=e.A,l=e.I,s=e.F,d=e.P,u=e.x,_=e.r,m=e.y,g=e.S,f=e.V,p=e.W,h=e.C,A=e.R,y=e.D,b=e.X,I=e.N,w=e.K},e=>{C=e.C},e=>{v=e.T},e=>{T=e.M},e=>{N=e.P,P=e.Q,x=e.U,k=e.b},e=>{S=e.O},e=>{D=e.O},e=>{E=e.C},e=>{z=e.I},null,null,null,null,null,null,null],execute:function(){var r=document.createElement("style");r.textContent='._cartConfirm_1c37u_1{padding:.26667rem .37333rem 2.66667rem}._cartConfirm_1c37u_1 .van-cell-group{border-radius:.16rem;overflow:hidden}._cartConfirmBox_1c37u_9{padding:0;margin-bottom:.32rem;border-radius:.26667rem;overflow:hidden}._cartConfirmBox_1c37u_9 ._cartItem_1c37u_15{margin:0;border-radius:0;padding:0}._cartConfirmBox_1c37u_9 .van-cell__value{color:#666;font-weight:500}._mlr13_1c37u_24{margin-right:.34667rem;margin-left:.34667rem}._protocol_1c37u_28{box-shadow:none!important;padding:.21333rem 0!important;background:#fff4e9}._protocol_1c37u_28 .van-checkbox__label{color:#777}._paymentContainer_1c37u_36{display:flex;align-items:center;justify-content:space-between;font-size:.37333rem;padding-left:.32rem;padding-right:.32rem;padding-bottom:calc(.53333rem + env(safe-area-inset-bottom));box-shadow:none!important;background:#fff;padding-top:.32rem}._paymentContainer_1c37u_36 ._needPrice_1c37u_48{display:flex;align-items:center;color:#333;font-family:DINAlternate-Bold,DINAlternate}._paymentContainer_1c37u_36 ._needPrice_1c37u_48 span{font-size:.58667rem;font-weight:700;color:#fc1a19}._paymentContainer_1c37u_36 ._needPrice_1c37u_48 span i{font-style:normal;font-size:.48rem;margin-right:.08rem}._paymentContainer_1c37u_36 ._allPrice_1c37u_64{color:#aaa}._paymentContainer_1c37u_36 .van-button{height:1.06667rem;line-height:1.06667rem;min-width:2.98667rem}._cellItem_1c37u_72{padding:.4rem .32rem;border-radius:.26667rem;overflow:hidden}._cellItem_1c37u_72 ._img_1c37u_77{width:1.86667rem;height:1.86667rem;border-radius:.16rem;flex-shrink:0;overflow:hidden;margin-right:.4rem}._cellItem_1c37u_72 ._cellPrice_1c37u_85{font-size:.53333rem;font-weight:700;color:#333;line-height:.64rem}._cellItem_1c37u_72 ._numFont_1c37u_91{font-family:DINA}._cellItem_1c37u_72 ._numFont_1c37u_91 ._numPrefix_1c37u_94{font-size:.37333rem!important;margin-right:.05333rem}._cellItem_1c37u_72 ._goodsContent_1c37u_98 ._goodsNum_1c37u_98{font-size:.48rem;color:#777;line-height:.53333rem;flex-shrink:0}._cellItem_1c37u_72 ._goodsContent_1c37u_98 ._goodsPrice_1c37u_104{padding-top:.10667rem;display:flex;align-items:center;justify-content:space-between}._cellItem_1c37u_72 ._goodsContent_1c37u_98 ._goodsPrice_1c37u_104 ._free_1c37u_110{font-size:.37333rem}._cellItem_1c37u_72 ._goodsContent_1c37u_98 ._goodsNums_1c37u_113{font-size:.48rem;font-weight:700;color:#fc1a19;font-family:DINAlternate-Bold,DINAlternate}._cellItem_1c37u_72 ._goodsContent_1c37u_98 h2{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;display:flex;align-items:center;justify-content:space-between}._cellItem_1c37u_72 ._goodsContent_1c37u_98 ._brandName_1c37u_128{line-height:.48rem;font-size:.32rem;padding:0 .16rem;color:#be7332;background-color:#fff5e6;border-radius:.10667rem;border:.02667rem solid #FFE9D9}._cellItem_1c37u_72 ._goodsContent_1c37u_98 ._model_1c37u_137{padding-top:.08rem;font-size:.34667rem;color:#777;line-height:.48rem}._popupCode_1c37u_143 .van-popup__close-icon{color:#fff;right:.64rem}._codeContainer_1c37u_147{position:relative}._codeContainer_1c37u_147 ._codeClose_1c37u_150{display:inline-block;position:absolute;top:-1.46667rem;right:0;background:url(./images/icon-close.png) no-repeat center center;background-size:contain;width:.93333rem;height:.93333rem}._codeContainer_1c37u_147 ._codeImg_1c37u_160{width:8.82667rem;height:14.85333rem;background:url(./images/download.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_1c37u_147 ._codeImg_1c37u_160 ._codeTitle_1c37u_167{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a}._codeContainer_1c37u_147 ._codeImg_1c37u_160 ._codeName_1c37u_175{padding:1.01333rem .32rem 0;font-size:.42667rem;font-weight:600;color:#fff;text-align:center}._codeContainer_1c37u_147 ._codeImg_1c37u_160 ._codeQr_1c37u_182{margin:.61333rem auto 0;width:5.89333rem;height:5.89333rem;padding:.26667rem;background:linear-gradient(180deg,#ffffff 0%,#ffffff 100%);border-radius:.29333rem;overflow:hidden}._codeContainer_1c37u_147 ._codeImg_1c37u_160 ._codeQr_1c37u_182 img{width:100%;height:100%}._codeContainer_1c37u_147 ._codeImg_1c37u_160 ._codeBtnText_1c37u_195{min-width:6.4rem;margin:.4rem auto 0;display:inline-block;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;padding:.16rem 0;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_1c37u_147 ._codeImg_1c37u_160 ._codeTips_1c37u_206{width:7.6rem;box-sizing:border-box;font-size:.32rem;font-weight:500;color:#333;line-height:.45333rem;background:#ffffff;overflow:hidden;border:.05333rem solid #ff8c57;border-radius:.26667rem;margin:.4rem auto 0;padding:.26667rem 0 .26667rem .21333rem}._codeContainer_1c37u_147 ._codeImg_1c37u_160 ._codeTips_1c37u_206 ._tipsTitle_1c37u_220{font-size:.34667rem;font-weight:500;color:#f16437;padding-bottom:.05333rem}._codeContainer_1c37u_147 ._close_1c37u_226{position:absolute;top:.32rem;right:.4rem}._codeContainer_1c37u_147 ._codeBottom_1c37u_231{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_1c37u_147 ._title_1c37u_238{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_1c37u_147 ._title_1c37u_238 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_1c37u_147 ._shareImg_1c37u_253{width:1.25333rem;height:1.25333rem}._codeContainer_1c37u_147 ._shareText_1c37u_257{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}._freight_1c37u_263{margin-top:.32rem;background:#ffffff;border-radius:.26667rem;overflow:hidden;padding:.4rem .32rem;font-size:.42667rem;color:#333}._freight_1c37u_263 .van-cell__value{color:#ff4e19}._submitBtn_1c37u_275{height:1.06667rem;border-radius:.32rem;border:0;padding:0 1.06667rem;font-size:.42667rem;font-weight:600;background:linear-gradient(121deg,#FFD892 0%,#FFCB75 100%);color:#5b2c03}._cellEntry_1kuxn_1{align-items:center}._cellEntry_1kuxn_1 .van-badge__wrapper{margin:0}._cellEntry_1kuxn_1 .van-cell__title{display:flex;align-items:center;margin-left:.37333rem}._cell_1kuxn_1{position:relative;align-items:center;padding:.34667rem .32rem .48rem}._cell_1kuxn_1:before{position:absolute;bottom:0;left:0;right:0;content:" ";display:block;height:.08rem;width:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAAAICAYAAAAFtxy6AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACsqADAAQAAAABAAAACAAAAAAhAq/nAAALn0lEQVR4Ac2cCXSU1RXH7/0yMxEIyNKyCq072Fo99Xi6oLGxkBBANmEgi4AVxQVEiClbZmJmshABI2hUSlugMgkGZRGQsplKbDltqdWW1mCLVVAwyGIjIWSb1/+bkBqPJt815PH5zpkzk/l+c9/7bt533333vvdYBYOZFA4/RherML9IAwemsNdba1dlSYmKeruOVpGiu+xYo9eZlvmTaTYzK7t61IoVHamiYjMpNcSONXZdt5M5jX2+AkkdizeonmeraRf0/D0Jb4Rh0v0hNTOF10vko99eDR3vwau/hDfCMP8Xcu9gv79MIj9QpH4EHW9Xii6V8IaYDywXxfsm8dsS+dDzGNiHF8B6JLwh5gC5XPG8cOExifxASM0Atxx6ZglvgmGm0ugYGj13NH8qka8CgcXoy49KWGMMcxH16jWVp0+vs6ujtFS59h6ltejPE+1Yk9fZosf9yTxXUocqLIyhEye2gY2V8EaYRts8E7a5UCI/5yXVp76adoO9TsKbYNCXa/Ca5EvmTRL5sBmDztvmPhLeCMN8GnJHwDbvk8jPDqnYsKKtGOA7S3gTDHT8PgzWUF8K/0siHzbDCz2HwLokvBGG+a/UocMwTk8/LpEfXKvSwkRLJKyUsZgeY6UUUyCgB6oJ0h9eALeS/P774RDiXlovK/Yr90cHKQRDeTHa1WJjoCQ/OlawRaDZBZWf35lqarahc93a7OuL+5G5gSzrHs7IWCOpOL9Y9T0XJjiENFDCm2Dw8Faxi8bBudopkY8H+DvQsTbuvSW8IeY4nKsEOFdvSuTDib0NjtV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OWdHfT0i+LXn+pI9tUsVq8uCdVV8+EAsfgO3lqhrFTV68HyswsbZLV2nvuBtWj7iweYKLvt8aZvAZFHIP8BKy7+rukHpWXdwXV1urZ/rclvBGGsfM8Ojqe5879QCIfTuzNcGJ3YEDqJuFNMNBzmcdDd8zzRnb821YBQzkCkVA98DuWmkcj19OgQamSkzb0DWFAug9vz0HPrT5fmjVWmAqwCD6tKfViVw8MZQ50vMCOM3Zdp7mJ5sCJfVJShzaUWKu5Gj9KlfBGGJy0gexNii8JJ7EICuxpJ9hTfaLJTwW4GUSftGFZIxGJfV1SgT7RpBq75tGXr5fwhpivdtJGbu41VFenbfNlhtpjL5YxjjSmufW4YlvgXDl+ogkCOa/ipI0x4pM2srLG4sb08juP7Q2aA0JIc0+VprmxGXQm+vIyh21zPtYdz5OqBGPgErBpUt4AF4bNmAEnVkdXbYs+0aTsQwrBNnttYXvgAEbRjdjf8XT6OD7eEi4eaDHDvVI7pxCkZ+V98blv5P2LEdsTeIATYSj3t1Rp8+9zilSv+nAklSJ3lJsLaIfPeIAPsRvHXnj5PxJx0MW1uH8923duDRMjMuFyJSISe1LSZqSsBqNjObqGCXreGuMm7xwvIkKCggf4TjixOgXr2Bom1P8L8vkekKS59S0FQ2oWjnEROWMCFbQJgXOVgaUxOdIfQ89PgJ0t5Q1w9dDzPXBifyORrU80qSiPrG0bL+FNMDCcVcqisZnJiNQLilq+vAudPq0joLcIcDMIRzIgCdDzW5IKviYnmhzExDceE9/DkjZjQvZ1ONHkD9SlywiePfsTSZuxVvMn2Ni1BZHYGAlvgkF/3ti1OyVJNinq+pGNTKKGBv28uky0RyjzKaS5Z0kn6xgDf44xMF8o2wiGMTAde2+0Y2pbIvuWgsGnMf49aAubAvRJG0STYTNE+4XafKKJXjZE2DOj6CgcV/36C5ZrbcYm8EOSW/sfcx9G2MfnCeoAAAAASUVORK5CYII=) repeat center left;background-size:90%}._cell_1kuxn_1 .van-cell__title{margin-left:.37333rem}._cell_1kuxn_1 .van-cell__right-icon{font-size:.53333rem;color:#d8d8d8}._userName_1kuxn_36{color:#333;font-size:.42667rem;font-weight:500}._phone_1kuxn_41{font-size:.42667rem;color:#777;margin-left:.37333rem}._addressInfo_1kuxn_46{font-size:.37333rem;color:#777;line-height:.53333rem}._emtry_1kuxn_51{font-size:.37333rem;color:#333}\n',document.head.appendChild(r);const j={cartConfirm:"_cartConfirm_1c37u_1",cartConfirmBox:"_cartConfirmBox_1c37u_9",cartItem:"_cartItem_1c37u_15",mlr13:"_mlr13_1c37u_24",protocol:"_protocol_1c37u_28",paymentContainer:"_paymentContainer_1c37u_36",needPrice:"_needPrice_1c37u_48",allPrice:"_allPrice_1c37u_64",cellItem:"_cellItem_1c37u_72",img:"_img_1c37u_77",cellPrice:"_cellPrice_1c37u_85",numFont:"_numFont_1c37u_91",numPrefix:"_numPrefix_1c37u_94",goodsContent:"_goodsContent_1c37u_98",goodsNum:"_goodsNum_1c37u_98",goodsPrice:"_goodsPrice_1c37u_104",free:"_free_1c37u_110",goodsNums:"_goodsNums_1c37u_113",brandName:"_brandName_1c37u_128",model:"_model_1c37u_137",popupCode:"_popupCode_1c37u_143",codeContainer:"_codeContainer_1c37u_147",codeClose:"_codeClose_1c37u_150",codeImg:"_codeImg_1c37u_160",codeTitle:"_codeTitle_1c37u_167",codeName:"_codeName_1c37u_175",codeQr:"_codeQr_1c37u_182",codeBtnText:"_codeBtnText_1c37u_195",codeTips:"_codeTips_1c37u_206",tipsTitle:"_tipsTitle_1c37u_220",close:"_close_1c37u_226",codeBottom:"_codeBottom_1c37u_231",title:"_title_1c37u_238",shareImg:"_shareImg_1c37u_253",shareText:"_shareText_1c37u_257",freight:"_freight_1c37u_263",submitBtn:"_submitBtn_1c37u_275"},G="_cell_1kuxn_1",B="_userName_1kuxn_36",U="_phone_1kuxn_41",q="_addressInfo_1kuxn_46",R="_emtry_1kuxn_51",V=o({name:"cart-address",props:{item:{type:Object,default:()=>({})},isLink:{type:Boolean,default:!0},setAddress:{type:Function,default:e=>{}}},setup(e){const t=n(),r=a((()=>[e.item.provinceName,e.item.cityName,e.item.regionName,e.item.detailAddress].join(""))),o=()=>{e.isLink&&t.push("/shopAddress")};return()=>i(s,null,[e.item&&e.item.phoneNumber?i(C,{class:G,"is-link":e.isLink,onClick:()=>o(),titleStyle:{marginLeft:"0"}},{title:()=>i("div",null,[i("span",{class:B},[e.item.name]),i("span",{class:U},[e.item&&e.item.phoneNumber&&e.item.phoneNumber.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2")]),e.item.defaultStatus&&i(v,{type:"primary",color:"linear-gradient(90deg, #FF8633 0%, #FFB047 100%)",round:!0,style:{"vertical-align":"text-top",marginLeft:"10px",padding:"1px 8px"}},{default:()=>[c("默认")]})]),label:()=>i("span",{class:q},[r.value])}):i(C,{class:G,"is-link":e.isLink,onClick:()=>o()},{icon:()=>i(l,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABiVBMVEUAAAD/qDn/oED/pDf/iTT/jjf/sEf/sEf/rEb/rkb/oED/qEL/sEf/oD//oD//sEf/kDf/jzf/ljr/ijX/kDb/oUH/rkr/kTb/sUX/kTP/jTb/sEf/iDP/r0b/qkT/lTr/izb/mT3/lzv/sEf/jzf/sEf/rEX/kzn/sEf/o0H/nT7/iDT/sEf/p0P/mTz/iTT/pEH/nD3/iDP/sEf/pUL/nD3/ijT/skf/jjX/skj/jDX/rkP/oUP/r0f/r0b/iDP/iDT/skj/sEj/mD3/mDr/////r0b/kDf/kzn/jjb/rUX/nD3/o0D/q0T/oT//nT7/qUP/rkb/pUH/p0L/lzv/jDX/lTn/mjz/ljr/nz7/iDT/mTv/ijT/1Kr/+vX/8eP/7dr/zJX/+PL/7t7/6NP/q07/oUv//fz//Pr/8+b/3Lj/2rD/xo3/um//9uz/5cr/3sH/wob/vn//wnn/tHP/tGz/s17/6M7/x5X/yo7/uGH/qFr/qFj/sFT/pVL/p0f/1bH/0pv/rGQBKLmeAAAARXRSTl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g2r3NrnADhoa8s8eLF5wHbF2udgu4INUmufYx9r15Ip2JLxJtDa52ATiG2nlc+ZdFoa3WanCka3lbXmFcFaW4b4sx0z3/7fh//zfdvlEDfKRQAAAABJRU5ErkJggg==",size:28},null),title:()=>i("div",{class:R},[c("去填写收货地址")])})])}}),X={WAIT_PAY:"待支付",PAYING:"支付中",PAID:"已付款",TIMEOUT:"已关闭",FAIL:"支付失败",CLOSED:"已关闭",REFUNDING:"退款中",REFUNDED:"已退款"};e("default",o({name:"order-detail",setup(){const e=d(),r=n(),o=u({paymentType:"adapay",orderTimer:null,paymentStatus:!1,showQrcode:!1,qrCodeUrl:"",pay_channel:"",orderNo:e.query.orderNo,orderInfo:{},goodsInfos:[],config:e.query.config?JSON.parse(e.query.config):{},hasFreight:!e.query.hf,freight:"",agreeStatus:!0,showHeader:!1,authShow:!1,selectGoodsId:null,currentPrice:0,hasInstrument:!1,dialogStatus:!1,dialogMessage:"",submitStatus:!1}),l=a((()=>o.orderInfo.orderType)),G=_({}),B=function(){var e=t((function*(){try{const{data:e}=yield y.get("/edu-app/userPaymentOrder/detail/"+o.orderNo),t=e.goodsInfos||[];o.orderInfo=e;let r=!1;t.forEach((e=>{const t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=t,"INSTRUMENTS"===e.goodsType&&(r=!0)})),o.goodsInfos=t,G.value.id||(G.value=e.addresses||{}),o.hasInstrument=r,o.freight=r?"到付":"免运费","WAIT_PAY"!==e.status&&"PAYING"!==e.status&&(o.dialogStatus=!0,o.dialogMessage="订单"+X[e.status])}catch(e){}}));return function(){return e.apply(this,arguments)}}(),U=e=>{const t=o.config;o.pay_channel=e.pay_channel;const r=b.stringify({pay_channel:e.pay_channel,wxAppId:t.wxAppId,alipayAppId:t.alipayAppId,paymentType:o.paymentType,body:t.body,price:t.price,orderNo:t.merOrderNo,userId:t.userId});"payResult"===e.payCode?window.location.href=window.location.origin+"/classroom-app/#/payResult?"+r:(o.qrCodeUrl=window.location.origin+"/classroom-app/#/payDefine?"+r,o.showQrcode=!0,o.paymentStatus=!1,setTimeout((()=>{q()}),300))},q=function(){var r=t((function*(){const r=setInterval(t((function*(){if("order-detail"==e.name){o.orderTimer=r;try{const{data:e}=yield y.post("/edu-app/open/userOrder/paymentStatus/"+o.orderNo,{hideLoading:!0});"WAIT_PAY"!==e.status&&"PAYING"!==e.status&&(o.showQrcode=!1,clearInterval(o.orderTimer),setTimeout((()=>{Q()}),100))}catch(t){clearInterval(o.orderTimer)}}else clearInterval(r)})),5e3)}));return function(){return r.apply(this,arguments)}}(),R=function(){var e=t((function*(){clearInterval(o.orderTimer),"VIP"===l.value?O(F):L(F)}));return function(){return e.apply(this,arguments)}}(),F=()=>{const e=o.pay_channel;if(e){const t=k(o.pay_channel);U({payCode:t,pay_channel:e})}else"VIP"===l.value?o.paymentStatus=!0:U({payCode:"payResult",pay_channel:"wx_pub"})},O=function(){var e=t((function*(e){try{if(!o.agreeStatus)return void I("请先阅读并同意《音乐数字课堂服务协议》");const t=w.user.data;if(null==t||!t.account.realName||null==t||!t.account.idCardNo)return void(o.authShow=!0);o.submitStatus=!0;const{data:n}=yield y.post("/edu-app/userPaymentOrder/updateReceiveAddress",{hideLoading:!1,data:{orderNo:o.orderNo,orderType:"VIP"}});o.pay_channel=n.paymentChannel,"WAIT_PAY"!==n.status&&"PAYING"!==n.status?r.replace({path:"/payment-result",query:{orderNo:o.orderNo}}):(e&&e(),o.submitStatus=!1)}catch(t){o.submitStatus=!1}}));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=t((function*(e){if(!G.value.id&&o.hasInstrument)return void I("请选择收货地址");if(!o.agreeStatus)return void I("请先阅读并同意《音乐数字课堂服务协议》");const t=w.user.data;if(null!=t&&t.account.realName&&null!=t&&t.account.idCardNo){o.submitStatus=!0;try{const{data:t}=yield y.post("/edu-app/userPaymentOrder/updateReceiveAddress",{hideLoading:!1,data:{orderNo:o.orderNo,orderType:"SCHOOL_REGISTER",receiveAddress:G.value.id||""}});o.pay_channel=t.paymentChannel,"WAIT_PAY"!==t.status&&"PAYING"!==t.status?Q():(e&&e(),o.submitStatus=!1)}catch(r){o.submitStatus=!1}}else o.authShow=!0}));return function(t){return e.apply(this,arguments)}}(),Q=()=>{r.replace({path:"/payment-result",query:{orderNo:o.orderNo}})},Y=function(){var e=t((function*(){try{yield y.post("/edu-app/userPaymentOrder/cancelPayment/"+o.orderNo),r.back()}catch(e){}}));return function(){return e.apply(this,arguments)}}(),J=()=>{o.authShow=!1,R()};return m((()=>{g().isApp?o.showHeader=!0:o.showHeader=!1;let e=sessionStorage.getItem("addressDetails");e=e?JSON.parse(e):{},G.value=e,sessionStorage.removeItem("addressDetails"),B()})),()=>i(s,null,[g().isApp&&i(f,{border:!1},null),i("div",{class:j.cartConfirm},[o.hasInstrument&&i("div",{class:j.cartConfirmBox},[i(V,{item:G.value},null)]),i(E,{style:{margin:0},border:!1},{default:()=>[o.goodsInfos&&o.goodsInfos.map((e=>i(C,{class:j.cellItem},{icon:()=>i(z,{class:j.img,src:e.goodsUrl},null),title:()=>i("div",{class:j.goodsContent},[i("h2",null,[i("span",null,[e.goodsName]),i("span",{class:j.goodsNum},[c("x "),e.goodsNum])]),i("div",{class:j.goodsPrice},[i(v,{class:j.brandName},{default:()=>["VIP"===e.goodsType?"12个月":e.brandName]}),i("span",{class:[j.goodsNums,e.paymentCashAmount>0?j.numFont:j.free]},[e.paymentCashAmount>0?i(s,null,[i("span",{class:j.numPrefix},[c("¥ ")]),p(e.paymentCashAmount)]):"免费"])]),i("p",{class:j.model},[e.description])])})))]}),o.hasInstrument&&i(C,{class:j.freight,title:"运费",value:o.freight},null)]),i(T,{position:"bottom"},{default:()=>[i("div",{class:j.paymentContainer},[i("div",{class:j.payemntPrice},[i("p",{class:j.needPrice},[c("支付金额:"),i("span",null,[i("i",null,[c("¥")]),p(o.orderInfo.currentPrice)])])]),i("div",{class:j.paymentBtn},[i(h,{round:!0,class:[j.submitBtn],onClick:R,loading:o.submitStatus,disabled:o.submitStatus},{default:()=>[c("提交")]})])])]}),i(A,{show:o.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[i(N,{paymentConfig:o.orderInfo,onClose:()=>o.paymentStatus=!1,onBackOut:Y,onConfirm:e=>U(e)},null)]}),i(A,{show:o.showQrcode,"onUpdate:show":e=>o.showQrcode=e,round:!0,onClose:()=>{clearInterval(o.orderTimer)}},{default:()=>[i(P,{url:o.qrCodeUrl,pay_channel:o.pay_channel,orderType:l.value},null)]}),i(S,{modelValue:o.authShow,"onUpdate:modelValue":e=>o.authShow=e},{default:()=>[i(x,{onSuccess:J,hideHeader:!g().isApp},null)]}),i(D,{title:"提示",show:o.dialogStatus,"onUpdate:show":e=>o.dialogStatus=e,message:o.dialogMessage,confirmButtonText:"确定",onConfirm:()=>{Q()}},null)])}}))}}}))}();