index-legacy-40ef563a.js 21 KB

1
  1. !function(){const e=["extra"];function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function a(e,t,r,n,o,a,i){try{var l=e[a](i),s=l.value}catch(u){return void r(u)}l.done?t(s):Promise.resolve(s).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){a(i,n,o,l,s,"next",e)}function s(e){a(i,n,o,l,s,"throw",e)}l(void 0)}))}}System.register(["./index-legacy-7aaf3ce7.js","./icon-gift-legacy-b71ce427.js","./index-legacy-b1a1b2fb.js","./student-register-store-legacy-675e102f.js","./deep-clone-legacy-0f45d9f6.js","./index-legacy-9d6287f3.js","./index-legacy-d6529f11.js","./user-auth-legacy-d8634f8d.js","./index-legacy-3756625b.js","./index-legacy-90c7e011.js","./index-legacy-13764b00.js","./index-legacy-3df53755.js","./index-legacy-7a66f931.js","./index-legacy-2c305999.js","./index-legacy-491cf438.js","./index-legacy-fbf6af50.js","./index-legacy-fa974de3.js","./index-legacy-44842ec0.js","./index-legacy-665a9989.js","./index-legacy-31660d90.js","./browser-legacy-cef1ca35.js","./index-legacy-3cbcf632.js","./Checker-legacy-02060853.js"],(function(t,n){"use strict";var a,l,s,u,p,d,c,m,g,f,y,_,h,w,b,v,T,x,S,C,F,I,N,O,P,A,j,D,E,k,M,V,G,R,B,z,U,Y,q,L,H;return{setters:[e=>{a=e.d,l=e.r,s=e.P,u=e.q,p=e.x,d=e.ag,c=e.e,m=e.y,g=e.D,f=e.a,y=e.A,_=e.W,h=e.C,w=e.R,b=e.S,v=e.z,T=e.M,x=e.N,S=e.bj,C=e.J,F=e.K,I=e.X},e=>{N=e.i},e=>{O=e.M},e=>{P=e.u},e=>{A=e.d},e=>{j=e.C,D=e.M},e=>{E=e.O},e=>{k=e.P,M=e.Q,V=e.U,G=e.b},e=>{R=e.O},e=>{B=e.M},e=>{z=e.F},e=>{U=e.F},e=>{Y=e.R,q=e.a},e=>{L=e.T},e=>{H=e.P},null,null,null,null,null,null,null,null],execute:function(){var Q=document.createElement("style");Q.textContent="._registerModal_81pmp_1{background:linear-gradient(180deg,#D0EFFD 0%,#DBF4FF 100%);overflow:hidden;min-height:100vh}._registerModal_81pmp_1 ._registerModalSection_81pmp_6{background:url("+new URL("banner2-98036f01.png",n.meta.url).href+") no-repeat top center;background-size:contain;overflow:hidden}._infoTitle_81pmp_11{width:8.61333rem;height:.50667rem;display:block;margin:.53333rem auto}._registerForm_81pmp_17{background:#FFFFFF;border-radius:.42667rem;border-radius:.48rem;margin:0 .32rem;overflow:hidden}._registerForm_81pmp_17 ._fieldTipsGroup_81pmp_24{margin:0 .37333rem;padding-bottom:.24rem}._registerForm_81pmp_17 ._fieldTips_81pmp_24{font-size:.34667rem;color:#ec763b;line-height:.48rem;background:#FFF8EB;border-radius:.21333rem;padding:.10667rem .26667rem}._registerForm_81pmp_17 ._tips_81pmp_36{display:inline-block;font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}._registerForm_81pmp_17 ._username_81pmp_43{padding-bottom:.21333rem!important}._registerForm_81pmp_17 ._username_81pmp_43 .van-field__label{display:flex;align-items:center;width:4.53333rem}._registerForm_81pmp_17 ._countDown_81pmp_51{min-width:2.13333rem;text-align:center;font-size:.37333rem;color:#a0d0ff}._registerForm_81pmp_17 .van-cell{padding:.48rem .37333rem}._registerForm_81pmp_17 .van-field__label{font-size:.42667rem;color:#666;line-height:.58667rem}._registerForm_81pmp_17 .van-field__control{font-size:.42667rem}._registerForm_81pmp_17 ._codeText_81pmp_68{color:#1189ff;font-size:.37333rem}._registerForm_81pmp_17 ._memberNumer_81pmp_72{margin:.37333rem .32rem .42667rem;background:#E8F8FF;border-radius:.21333rem;padding:.21333rem 0 .21333rem .26667rem;display:flex;align-items:center;font-weight:600;font-size:.34667rem;color:#2b85ff;line-height:.48rem}._registerForm_81pmp_17 ._memberNumer_81pmp_72 ._iconGift_81pmp_85{width:.48rem;height:.48rem;margin-right:.16rem}._registerForm_81pmp_17 ._memberNumer_81pmp_72 span{font-size:.4rem;color:#f62c2c;padding:0 .13333rem}._paymentContainer_81pmp_95{display:flex;align-items:center;justify-content:space-between;font-size:.37333rem;padding:.32rem .37333rem calc(.4rem + env(safe-area-inset-bottom)) .32rem;background:#FFFFFF;box-shadow:0 -.02667rem #f2f2f2,inset 0 .02667rem .08rem #fff;border-radius:.48rem .48rem 0 0}._paymentContainer_81pmp_95 ._giftTip_81pmp_105{width:2.34667rem;height:.48rem}._paymentContainer_81pmp_95 ._needPrice_81pmp_109{padding-bottom:.18667rem;font-size:.37333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#fc1a19;padding-right:.16rem}._paymentContainer_81pmp_95 ._needPrice_81pmp_109 span{font-size:.74667rem;margin-right:.05333rem}._paymentContainer_81pmp_95 ._needPrice_81pmp_109 i{vertical-align:text-bottom}._paymentContainer_81pmp_95 ._allPrice_81pmp_124{display:inline-block;font-size:.37333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#aaa;line-height:.42667rem;vertical-align:text-top}._paymentContainer_81pmp_95 .van-button{height:1.06667rem;line-height:1.06667rem;width:3.94667rem;background:linear-gradient(135deg,#31C7FF 0%,#007AFE 100%);font-size:.42667rem;color:#fff;font-weight:500;border:0}._radioSection_81pmp_143{position:relative;min-width:.85333rem;justify-content:center;padding-left:.50667rem;padding-right:.50667rem;font-size:.4rem;font-weight:500}._radioItem_81pmp_152{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_81pmp_143+._radioSection_81pmp_143{margin-left:.32rem}\n",document.head.appendChild(Q);const $={registerModal:"_registerModal_81pmp_1",registerModalSection:"_registerModalSection_81pmp_6",infoTitle:"_infoTitle_81pmp_11",registerForm:"_registerForm_81pmp_17",fieldTipsGroup:"_fieldTipsGroup_81pmp_24",fieldTips:"_fieldTips_81pmp_24",tips:"_tips_81pmp_36",username:"_username_81pmp_43",countDown:"_countDown_81pmp_51",codeText:"_codeText_81pmp_68",memberNumer:"_memberNumer_81pmp_72",iconGift:"_iconGift_81pmp_85",paymentContainer:"_paymentContainer_81pmp_95",giftTip:"_giftTip_81pmp_105",needPrice:"_needPrice_81pmp_109",allPrice:"_allPrice_81pmp_124",radioSection:"_radioSection_81pmp_143",radioItem:"_radioItem_81pmp_152"},W=""+new URL("r-title-3544dc16.png",n.meta.url).href,J=""+new URL("gift-tip-43b54b61.png",n.meta.url).href,X=P(),K=[];for(let e=1;e<=40;e++)K.push({text:e+"班",value:e});t("default",a({name:"register-modal",setup(){const t=l(),n=s(),a=u(),P=l([]),Q=p({schoolId:n.query.schoolId,countDownStatus:!0,countDownTime:12e4,modelValue:!1,imgCodeStatus:!1,gradeNumText:"",currentClassText:"",gradeStatus:!1,classStatus:!1,loading:!1,schoolType:"",gradeYear:"",bugGoods:!1,registerType:"",giftVipDay:0,dialogStatus:!1,dialogMessage:"",dialogConfirmStatus:!1,paymentType:"",contract_sign:!1,countDownTimePay:6e4,dialogConfig:{},showMore:!0,showTips:!1,showButton:!1,showMessage:"请使用微信打开"}),Z=p({showQrcode:!1,qrCodeUrl:"",pay_channel:"",orderInfo:{},authShow:!1,orderNo:null,config:{},paymentStatus:!1,orderTimer:null}),ee=p({autoRegister:!0,client_id:"cooleshow-student",client_secret:"cooleshow-student",extra:{nickname:"",currentGradeNum:"",currentClass:"",gender:1,registerType:null,giftVipDay:0},grant_type:"password",loginType:"SMS",password:"",username:""}),te=d({time:Q.countDownTimePay,onChange(e){Q.dialogMessage=`有待支付订单,请在${Math.ceil(e.total/1e3)}s后重试`},onFinish(){Q.dialogStatus=!1}}),re=()=>{Q.countDownStatus=!1,v((()=>{t.value.start()}))},ne=()=>{if(!T(ee.username))return x("请输入正确的手机号码");Q.imgCodeStatus=!0},oe=c((()=>!!T(ee.username))),ae=c((()=>Z.orderInfo.orderType)),ie=()=>{Q.countDownStatus=!0,t.value.reset()},le=function(){var t=i((function*(){try{if(se())return;Q.loading=!0;const{extra:t}=ee,n=o(ee,e),a=yield g.post("/edu-app/userlogin",{requestType:"form",data:r(r({},n),{},{extra:JSON.stringify(r(r({},t),{},{schoolId:Q.schoolId}))})});if(200!==a.code)5436===a.code?(Q.showTips=!0,Q.showMessage="二维码已经失效,详情请咨询学校老师",Q.showButton=!1):5435===a.code&&(Q.showTips=!0,Q.showMessage=a.message,Q.showButton=!0);else{X.setToken(a.data.token_type+" "+a.data.access_token),S();const e=yield g.get("/edu-app/user/getUserInfo",{requestType:"form"});C(e.data),yield de()}}catch(t){}finally{Q.loading=!1}}));return function(){return t.apply(this,arguments)}}(),se=()=>T(ee.username)?ee.password?ee.extra.nickname?ee.extra.currentGradeNum?!ee.extra.currentClass&&(x("请选择所在班级"),!0):(x("请选择所在年级"),!0):(x("请输入学生姓名"),!0):(x("请输入验证码"),!0):(x("请输入正确的手机号码"),!0),ue=function(){var e=i((function*(){try{const{data:e}=yield g.get("/edu-app/open/userOrder/registerGoods/"+Q.schoolId,{noAuthorization:!0});X.setVip(e.details||[]);const t=A(e.details||[]);if(t.length>0&&(Q.giftVipDay=t[0].membershipDays),Q.bugGoods=e.bugGoods,Q.schoolType=e.schoolType,Q.gradeYear=e.gradeYear,Q.registerType=e.registerType,ee.extra.giftVipDay=Q.giftVipDay,ee.extra.registerType=Q.registerType,b().weixin){if(0===e.schoolStatus&&"1770035687490105346"==Q.schoolId)return Q.showTips=!0,Q.showMessage="团购时间已截止,感谢您的参与",void(Q.showButton=!1);if("BUG_GOODS"!==e.registerType||0===e.schoolStatus)return Q.showTips=!0,Q.showMessage="二维码已经失效,详情请咨询学校老师",void(Q.showButton=!1)}else Q.showTips=!0}catch(e){}}));return function(){return e.apply(this,arguments)}}(),pe=c((()=>{let e=0,t=0;return X.getVip.forEach((r=>{e+=Number(r.currentPrice),t+=Number(r.originalPrice)})),console.log(X.getVip),{amount:e,originAmount:t}})),de=function(){var e=i((function*(){try{if(yield ce())return;const e=yield g.get("/edu-app/userPaymentOrder/registerStatus/"+Q.schoolId),t=X.getVip;if(e.data.hasBuyCourse&&t.length>0)return void(Q.dialogConfirmStatus=!0);yield me()}catch(e){}}));return function(){return e.apply(this,arguments)}}(),ce=function(){var e=i((function*(){let e=!1;try{const{data:t}=yield g.get("/edu-app/userPaymentOrder/unpaid");if(!t.id)return!1;if(t.cancelPayment)return yield g.post("/edu-app/userPaymentOrder/cancelPayment/"+t.orderNo),!1;Q.countDownTime=t.cancelTimes,te.reset(Number(t.cancelTimes)),te.start(),Q.dialogMessage=`有待支付订单,请在${Math.ceil(te.current.value.total/1e3)}s后重试`,Q.dialogStatus=!0,Q.dialogConfig=t,e=!0}catch(t){}return e}));return function(){return e.apply(this,arguments)}}(),me=function(){var e=i((function*(){try{const e=X.getVip,t=X.getGoods,n=[];e.forEach((e=>{n.push({giftVipDay:e.membershipDays,goodsId:e.goodsId,goodsNum:1,goodsType:e.goodsType,paymentCashAmount:e.currentPrice,paymentCouponAmount:0})})),t.forEach((e=>{n.push({goodsId:e.productId,goodsNum:e.quantity,goodsType:"INSTRUMENTS",paymentCashAmount:e.price,paymentCouponAmount:0,goodsSkuId:e.productSkuId})}));const o=yield g.post("/edu-app/userPaymentOrder/executeOrder",{data:{registerType:Q.registerType,paymentType:Q.paymentType,bizId:Q.schoolId,orderType:"SCHOOL_REGISTER",paymentCashAmount:pe.value.amount||0,paymentCouponAmount:0,goodsInfos:n,orderName:"学生登记",orderDesc:"学生登记"}});5436===o.code?(Q.showTips=!0,Q.showMessage="二维码已经失效,详情请咨询学校老师",Q.showButton=!1):5435===o.code?(Q.showTips=!0,Q.showMessage=o.message,Q.showButton=!0):(Z.config=r(r({},o.data.paymentConfig),{},{paymentType:o.data.paymentType}),Z.orderNo=o.data.orderNo,yield ge())}catch(e){console.log(e,"any")}}));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=i((function*(){try{const e=F.user.data;if(Q.contract_sign&&(null==e||!e.account.realName||null==e||!e.account.idCardNo))return void(Z.authShow=!0);const{data:t}=yield g.post("/edu-app/userPaymentOrder/updateReceiveAddress",{data:{orderNo:Z.orderNo,orderType:"SCHOOL_REGISTER"}});Z.pay_channel=t.paymentChannel,"WAIT_PAY"!==t.status&&"PAYING"!==t.status?a.replace({path:"/payment-result",query:{orderNo:Z.orderNo}}):fe()}catch(e){}}));return function(){return e.apply(this,arguments)}}(),fe=()=>{const e=Z.pay_channel;if(e){const t=G(Z.pay_channel);ye({payCode:t,pay_channel:e})}else"VIP"===ae.value?Z.paymentStatus=!0:ye({payCode:"payResult",pay_channel:"wx_pub"})},ye=e=>{const t=Z.config;Z.pay_channel=e.pay_channel;const r=I.stringify({pay_channel:e.pay_channel,wxAppId:t.wxAppId,alipayAppId:t.alipayAppId,paymentType:Q.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:(Z.qrCodeUrl=window.location.origin+"/classroom-app/#/payDefine?"+r,Z.showQrcode=!0,Z.paymentStatus=!1,setTimeout((()=>{he()}),300))},_e=function(){var e=i((function*(){try{yield g.post("/edu-app/userPaymentOrder/cancelPayment/"+Z.orderNo)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),he=function(){var e=i((function*(){const e=setInterval(i((function*(){if("student-register-form"==n.name){Z.orderTimer=e;try{const{data:e}=yield g.post("/edu-app/open/userOrder/paymentStatus/"+Z.orderNo,{hideLoading:!0});"WAIT_PAY"!==e.status&&"PAYING"!==e.status&&(Z.showQrcode=!1,clearInterval(Z.orderTimer),setTimeout((()=>{a.replace({path:"/payment-result",query:{orderNo:Z.orderNo}})}),100))}catch(t){clearInterval(Z.orderTimer)}}else clearInterval(e)})),5e3)}));return function(){return e.apply(this,arguments)}}(),we=()=>{Z.authShow=!1,me()},be=function(){var e=i((function*(){if(6===ee.password.length&&T(ee.username))try{const{data:e}=yield g.get(`/edu-app/open/student/studentInfo?mobile=${ee.username}&code=${ee.password}&type=REGISTER`);if(e){ee.extra.nickname||(ee.extra.nickname=e.nickname),ee.extra.currentGradeNum||(ee.extra.currentGradeNum=e.currentGradeNum),ee.extra.currentClass||(ee.extra.currentClass=e.currentClass),ee.extra.gender=ee.extra.gender!==e.gender?e.gender:ee.extra.gender,K.forEach((t=>{t.value===e.currentClass&&(Q.currentClassText=t.text)}));const t=P.value[0]||[];null==t||t.forEach((t=>{t.value===e.currentGradeNum&&(Q.gradeNumText=t.text)}))}}catch(e){}}));return function(){return e.apply(this,arguments)}}();return m(i((function*(){try{const{data:e}=yield g.get("/edu-app/open/paramConfig/queryByParamNameList",{requestType:"form",params:{paramNames:"payment_service_provider,contract_sign"}});e&&Array.isArray(e)&&e.forEach((e=>{"contract_sign"===e.paramName?Q.contract_sign="1"===e.paramValue:"payment_service_provider"===e.paramName&&(Q.paymentType=e.paramValue||"")})),yield ue()}catch(e){}P.value=(()=>{let e=[];const t=[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],r=[{text:"六年级",value:6}],n=[{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}];return"FIVE_YEAR_SYSTEM"===Q.gradeYear?e.push([...t]):"SIX_YEAR_SYSTEM"===Q.gradeYear?e.push([...t,...r]):"THREE_YEAR_SYSTEM"===Q.gradeYear?e.push([...n]):"FORE_YEAR_SYSTEM"===Q.gradeYear?e.push([...r,...n]):e.push([...t,...r,...n]),e})()}))),()=>{return f("div",{class:$.registerModal},[f("div",{class:$.registerModalSection},[f("img",{src:W,class:$.infoTitle},null),f(z,{labelAlign:"left",class:$.registerForm},{default:()=>[f(U,{clearable:!1,label:"联系方式(直接监护人)",placeholder:"请输入手机号码",type:"tel",required:!0,autocomplete:"off",inputAlign:"right",class:$.username,modelValue:ee.username,"onUpdate:modelValue":e=>ee.username=e,border:!1,maxlength:11},{label:()=>f("div",null,[y("联系方式"),f("p",{class:$.tips},[y("(直接监护人)")])])}),f("div",{class:["van-hairline--bottom",$.fieldTipsGroup]},[f("div",{class:[$.fieldTips]},[y("手机号是音乐数字课堂的唯一登录账户")])]),f(U,{center:!0,clearable:!1,required:!0,inputAlign:"right",label:"验证码",placeholder:"请输入验证码",autocomplete:"off",type:"number",modelValue:ee.password,"onUpdate:modelValue":[e=>ee.password=e,e=>{console.log(e,"val"),be()}],maxlength:6},{button:()=>Q.countDownStatus?f("span",{class:[$.codeText,oe.value?"":$.codeTextDisabled],onClick:ne},[y("获取验证码")]):f(j,{ref:e=>t.value=e,"auto-start":!1,class:$.countDown,time:Q.countDownTime,onFinish:ie,format:"ss秒后重试"},null)}),f(U,{clearable:!1,required:!0,inputAlign:"right",label:"学生姓名",placeholder:"请输入学生姓名",autocomplete:"off",maxlength:14,modelValue:ee.extra.nickname,"onUpdate:modelValue":e=>ee.extra.nickname=e},null),f(U,{clearable:!1,required:!0,inputAlign:"right",label:"学生性别",placeholder:"请选择性别",autocomplete:"off"},{input:()=>f(Y,{"checked-color":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",modelValue:ee.extra.gender,"onUpdate:modelValue":e=>ee.extra.gender=e,direction:"horizontal"},{default:()=>[f(L,{size:"large",type:"primary",color:1!==ee.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:1!==ee.extra.gender?"#626264":"#fff",class:$.radioSection},{default:()=>[f(q,{class:$.radioItem,name:1},null),y("男")]}),f(L,{size:"large",type:"primary",color:0!==ee.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:0!==ee.extra.gender?"#626264":"#fff",class:$.radioSection},{default:()=>[f(q,{class:$.radioItem,name:0},null),y("女")]})]})}),f(U,{clearable:!1,required:!0,inputAlign:"right",label:"所在年级",placeholder:"请选择年级",isLink:!0,readonly:!0,clickable:!1,modelValue:Q.gradeNumText,onClick:()=>Q.gradeStatus=!0},null),f(U,{clearable:!1,required:!0,inputAlign:"right",label:"所在班级",placeholder:"请选择班级",isLink:!0,readonly:!0,clickable:!1,modelValue:Q.currentClassText,onClick:()=>Q.classStatus=!0},null),Q.giftVipDay>0&&f("div",{class:$.memberNumer},[f("img",{src:N,class:$.iconGift},null),f("p",null,[y("注册成功即可获得乐器AI学练工具"),f("span",null,[Q.giftVipDay||0]),y("天有效期")])])]}),f(B,{position:"bottom"},{default:()=>[f("div",{class:$.paymentContainer},[f("div",{class:$.payemntPrice},[f("img",{src:J,class:$.giftTip},null),f("div",null,[f("span",{class:$.needPrice},[f("i",{style:"font-style: normal"},[y("¥ ")]),f("span",null,[_(pe.value.amount)]),f("i",{style:"font-style: normal"},[y("/年")])]),pe.value.originAmount>pe.value.amount?f("del",{class:$.allPrice},[y("¥ "),_(pe.value.originAmount)]):""])]),f("div",{class:$.paymentBtn,onClick:le},[f(h,{round:!0,disabled:Q.loading,loading:Q.loading},{default:()=>[y("立即支付")]})])])]})]),Q.imgCodeStatus?f(O,{value:Q.imgCodeStatus,"onUpdate:value":e=>Q.imgCodeStatus=e,phone:ee.username,type:"REGISTER",onClose:()=>{Q.imgCodeStatus=!1},onSendCode:re},null):null,f(w,{show:Q.gradeStatus,"onUpdate:show":e=>Q.gradeStatus=e,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:()=>[f(H,{showToolbar:!0,columns:P.value,onCancel:()=>Q.gradeStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];ee.extra.currentGradeNum=t.value,Q.gradeNumText=t.text,Q.gradeStatus=!1}},null)]}),f(w,{show:Q.classStatus,"onUpdate:show":e=>Q.classStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[f(H,{showToolbar:!0,columns:K,onCancel:()=>Q.classStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];ee.extra.currentClass=t.value,Q.currentClassText=t.text,Q.classStatus=!1}},null)]}),f(E,{title:"提示",show:Q.dialogConfirmStatus,"onUpdate:show":e=>Q.dialogConfirmStatus=e,message:"已购买会员,是否确认购买?",primaryColor:"#FF8057",allowHtml:!0,confirmButtonText:"确定",showCancelButton:!0,onConfirm:(r=i((function*(){yield me()})),function(){return r.apply(this,arguments)})},null),f(E,{title:"提示",show:Q.dialogStatus,"onUpdate:show":e=>Q.dialogStatus=e,message:Q.dialogMessage,allowHtml:!0,primaryColor:"#FF8057",confirmButtonText:"继续支付",onConfirm:(e=i((function*(){console.log(Q.dialogConfig,"dialogConfig"),te.pause();const e=Q.dialogConfig.paymentConfig;Z.config=null==e?void 0:e.paymentConfig,Z.orderNo=null==e?void 0:e.orderNo,yield ge()})),function(){return e.apply(this,arguments)}),onCancel:e=>{te.pause()}},null),f(w,{show:Z.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[f(k,{paymentConfig:Z.orderInfo,onClose:()=>Z.paymentStatus=!1,onBackOut:_e,onConfirm:e=>ye(e)},null)]}),f(w,{show:Z.showQrcode,"onUpdate:show":e=>Z.showQrcode=e,round:!0,onClose:()=>{clearInterval(Z.orderTimer)}},{default:()=>[f(M,{url:Z.qrCodeUrl,pay_channel:Z.pay_channel,orderType:ae.value},null)]}),f(R,{modelValue:Z.authShow,"onUpdate:modelValue":e=>Z.authShow=e},{default:()=>[f(V,{onSuccess:we,hideHeader:!b().isApp},null)]}),f(D,{show:Q.showTips,message:Q.showMessage,showButton:Q.showButton,buttonText:"刷新",onConfirm:()=>window.location.reload()},null)]);var e,r}}}))}}}))}();