index-legacy-32357a33.js 22 KB

1
  1. !function(){const e=["extra"];function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(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 o=r.call(e,t||"default");if("object"!=typeof o)return o;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 n(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function a(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(o,n)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function s(e){a(i,o,n,s,l,"next",e)}function l(e){a(i,o,n,s,l,"throw",e)}s(void 0)}))}}System.register(["./index-legacy-e6be1dcb.js","./icon-gift-legacy-b71ce427.js","./index-legacy-09a1b1db.js","./student-register-store-legacy-9e94918b.js","./deep-clone-legacy-0f45d9f6.js","./index-legacy-9baea00d.js","./index-legacy-3308108b.js","./user-auth-legacy-2e5db34f.js","./index-legacy-12dd4e63.js","./index-legacy-3fae0ac6.js","./index-legacy-f247d4cb.js","./index-legacy-ab315fa9.js","./index-legacy-92ba0770.js","./index-legacy-b6d273d9.js","./index-legacy-f9bb7174.js","./index-legacy-ff570bc2.js","./index-legacy-4e3eaaa9.js","./index-legacy-d3534fc9.js","./index-legacy-fc299f0c.js","./index-legacy-72ad1f03.js","./index-legacy-2c7b85a2.js","./browser-legacy-cef1ca35.js","./index-legacy-cdd7affc.js","./Checker-legacy-f8a8311d.js"],(function(t,o){"use strict";var a,s,l,u,p,d,c,m,g,f,y,h,_,w,b,v,T,x,S,C,F,I,O,N,A,P,j,E,D,k,M,V,G,R,B,z,U,Y,q,L,$,H;return{setters:[e=>{a=e.d,s=e.r,l=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,h=e.W,_=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=>{O=e.i},e=>{N=e.M},e=>{A=e.u},e=>{P=e.d},e=>{j=e.C,E=e.M},e=>{D=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.M},e=>{U=e.F},e=>{Y=e.F},e=>{q=e.R,L=e.a},e=>{$=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",o.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 W={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"},X=""+new URL("r-title-3544dc16.png",o.meta.url).href,J=""+new URL("gift-tip-43b54b61.png",o.meta.url).href,K=A(),Z=[];for(let e=1;e<=40;e++)Z.push({text:e+"班",value:e});t("default",a({name:"register-modal",setup(){const t=s(),o=l(),a=u(),A=s([]),Q=p({schoolId:o.query.schoolId,countDownStatus:!0,countDownTime:12e4,modelValue:!1,imgCodeStatus:!1,gradeNumText:"",currentClassText:"",gradeStatus:!1,classStatus:!1,loading:!1,details:{},schoolType:"",gradeYear:"",bugGoods:!1,registerType:"",giftVipDay:0,dialogStatus:!1,dialogMessage:"",dialogConfirmStatus:!1,paymentType:"",contract_sign:!1,countDownTimePay:6e4,dialogConfig:{},showMore:!0,showOtherSchool:!1,showOtherMessage:"",showTips:!1,showButton:!1,showMessage:"请使用微信打开"}),ee=p({showQrcode:!1,qrCodeUrl:"",pay_channel:"",orderInfo:{},authShow:!1,orderNo:null,config:{},paymentStatus:!1,orderTimer:null}),te=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:""}),re=d({time:Q.countDownTimePay,onChange(e){Q.dialogMessage=`有待支付订单,请在${Math.ceil(e.total/1e3)}s后重试`},onFinish(){Q.dialogStatus=!1}}),oe=()=>{Q.countDownStatus=!1,v((()=>{t.value.start()}))},ne=()=>{if(!T(te.username))return x("请输入正确的手机号码");Q.imgCodeStatus=!0},ae=c((()=>!!T(te.username))),ie=c((()=>ee.orderInfo.orderType)),se=()=>{Q.countDownStatus=!0,t.value.reset()},le=function(){var t=i((function*(t=!1){try{if(ue())return;Q.loading=!0;const{extra:a}=te,i=n(te,e);if(!t){const e=yield g.get(`/edu-app/open/student/studentSchool?mobile=${te.username}&code=${te.password}&type=REGISTER`);var o;if(e&&e.schoolId!==Q.schoolId)return Q.showOtherSchool=!0,void(Q.showOtherMessage=`您已绑定【${Q.details.schoolName||""}】,提交后将更换到【${null===(o=e.data)||void 0===o?void 0:o.schoolName}】,是否确认提交?`)}const s=yield g.post("/edu-app/userlogin",{requestType:"form",data:r(r({},i),{},{extra:JSON.stringify(r(r({},a),{},{schoolId:Q.schoolId}))})});if(200!==s.code)5436===s.code?(Q.showTips=!0,Q.showMessage="二维码已经失效,详情请咨询学校老师",Q.showButton=!1):5435===s.code&&(Q.showTips=!0,Q.showMessage=s.message,Q.showButton=!0);else{K.setToken(s.data.token_type+" "+s.data.access_token),S();const e=yield g.get("/edu-app/user/getUserInfo",{requestType:"form"});C(e.data),yield ce()}}catch(a){}finally{Q.loading=!1}}));return function(){return t.apply(this,arguments)}}(),ue=()=>T(te.username)?te.password?te.extra.nickname?te.extra.currentGradeNum?!te.extra.currentClass&&(x("请选择所在班级"),!0):(x("请选择所在年级"),!0):(x("请输入学生姓名"),!0):(x("请输入验证码"),!0):(x("请输入正确的手机号码"),!0),pe=function(){var e=i((function*(){try{const{data:e}=yield g.get("/edu-app/open/userOrder/registerGoods/"+Q.schoolId,{noAuthorization:!0});K.setVip(e.details||[]);const t=P(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,te.extra.giftVipDay=Q.giftVipDay,te.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)}}(),de=c((()=>{let e=0,t=0;return K.getVip.forEach((r=>{e+=Number(r.currentPrice),t+=Number(r.originalPrice)})),{amount:e,originAmount:t}})),ce=function(){var e=i((function*(){try{if(yield me())return;const e=yield g.get("/edu-app/userPaymentOrder/registerStatus/"+Q.schoolId),t=K.getVip;if(e.data.hasBuyCourse&&t.length>0)return void(Q.dialogConfirmStatus=!0);yield ge()}catch(e){}}));return function(){return e.apply(this,arguments)}}(),me=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,re.reset(Number(t.cancelTimes)),re.start(),Q.dialogMessage=`有待支付订单,请在${Math.ceil(re.current.value.total/1e3)}s后重试`,Q.dialogStatus=!0,Q.dialogConfig=t,e=!0}catch(t){}return e}));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=i((function*(){try{const e=K.getVip,t=K.getGoods,o=[];e.forEach((e=>{o.push({giftVipDay:e.membershipDays,goodsId:e.goodsId,goodsNum:1,goodsType:e.goodsType,paymentCashAmount:e.currentPrice,paymentCouponAmount:0})})),t.forEach((e=>{o.push({goodsId:e.productId,goodsNum:e.quantity,goodsType:"INSTRUMENTS",paymentCashAmount:e.price,paymentCouponAmount:0,goodsSkuId:e.productSkuId})}));const n=yield g.post("/edu-app/userPaymentOrder/executeOrder",{data:{registerType:Q.registerType,paymentType:Q.paymentType,bizId:Q.schoolId,orderType:"SCHOOL_REGISTER",paymentCashAmount:de.value.amount||0,paymentCouponAmount:0,goodsInfos:o,orderName:"学生登记",orderDesc:"学生登记"}});5436===n.code?(Q.showTips=!0,Q.showMessage="二维码已经失效,详情请咨询学校老师",Q.showButton=!1):5435===n.code?(Q.showTips=!0,Q.showMessage=n.message,Q.showButton=!0):(ee.config=r(r({},n.data.paymentConfig),{},{paymentType:n.data.paymentType}),ee.orderNo=n.data.orderNo,yield fe())}catch(e){console.log(e,"any")}}));return function(){return e.apply(this,arguments)}}(),fe=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(ee.authShow=!0);const{data:t}=yield g.post("/edu-app/userPaymentOrder/updateReceiveAddress",{data:{orderNo:ee.orderNo,orderType:"SCHOOL_REGISTER"}});ee.pay_channel=t.paymentChannel,"WAIT_PAY"!==t.status&&"PAYING"!==t.status?a.replace({path:"/payment-result",query:{orderNo:ee.orderNo}}):ye()}catch(e){}}));return function(){return e.apply(this,arguments)}}(),ye=()=>{const e=ee.pay_channel;if(e){const t=G(ee.pay_channel);he({payCode:t,pay_channel:e})}else"VIP"===ie.value?ee.paymentStatus=!0:he({payCode:"payResult",pay_channel:"wx_pub"})},he=e=>{const t=ee.config;ee.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:(ee.qrCodeUrl=window.location.origin+"/classroom-app/#/payDefine?"+r,ee.showQrcode=!0,ee.paymentStatus=!1,setTimeout((()=>{we()}),300))},_e=function(){var e=i((function*(){try{yield g.post("/edu-app/userPaymentOrder/cancelPayment/"+ee.orderNo)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),we=function(){var e=i((function*(){const e=setInterval(i((function*(){if("student-register-form"==o.name){ee.orderTimer=e;try{const{data:e}=yield g.post("/edu-app/open/userOrder/paymentStatus/"+ee.orderNo,{hideLoading:!0});"WAIT_PAY"!==e.status&&"PAYING"!==e.status&&(ee.showQrcode=!1,clearInterval(ee.orderTimer),setTimeout((()=>{a.replace({path:"/payment-result",query:{orderNo:ee.orderNo}})}),100))}catch(t){clearInterval(ee.orderTimer)}}else clearInterval(e)})),5e3)}));return function(){return e.apply(this,arguments)}}(),be=()=>{ee.authShow=!1,ge()},ve=function(){var e=i((function*(){if(6===te.password.length&&T(te.username))try{const{data:e}=yield g.get(`/edu-app/open/student/studentInfo?mobile=${te.username}&code=${te.password}&type=REGISTER`);if(e){te.extra.nickname||(te.extra.nickname=e.nickname),te.extra.currentGradeNum||(te.extra.currentGradeNum=e.currentGradeNum),te.extra.currentClass||(te.extra.currentClass=e.currentClass),te.extra.gender=te.extra.gender!==e.gender?e.gender:te.extra.gender,Z.forEach((t=>{t.value===e.currentClass&&(Q.currentClassText=t.text)}));const t=A.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 pe()}catch(e){}A.value=(()=>{let e=[];const t=[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],r=[{text:"六年级",value:6}],o=[{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([...o]):"FORE_YEAR_SYSTEM"===Q.gradeYear?e.push([...r,...o]):e.push([...t,...r,...o]),e})()}))),()=>{return f("div",{class:W.registerModal},[f("div",{class:W.registerModalSection},[f("img",{src:X,class:W.infoTitle},null),f(U,{labelAlign:"left",class:W.registerForm},{default:()=>[f(Y,{clearable:!1,label:"联系方式(直接监护人)",placeholder:"请输入手机号码",type:"tel",required:!0,autocomplete:"off",inputAlign:"right",class:W.username,modelValue:te.username,"onUpdate:modelValue":e=>te.username=e,border:!1,maxlength:11},{label:()=>f("div",null,[y("联系方式"),f("p",{class:W.tips},[y("(直接监护人)")])])}),f("div",{class:["van-hairline--bottom",W.fieldTipsGroup]},[f("div",{class:[W.fieldTips]},[y("手机号是音乐数字课堂的唯一登录账户")])]),f(Y,{center:!0,clearable:!1,required:!0,inputAlign:"right",label:"验证码",placeholder:"请输入验证码",autocomplete:"off",type:"number",modelValue:te.password,"onUpdate:modelValue":[e=>te.password=e,e=>{ve()}],maxlength:6},{button:()=>Q.countDownStatus?f("span",{class:[W.codeText,ae.value?"":W.codeTextDisabled],onClick:ne},[y("获取验证码")]):f(j,{ref:e=>t.value=e,"auto-start":!1,class:W.countDown,time:Q.countDownTime,onFinish:se,format:"ss秒后重试"},null)}),f(Y,{clearable:!1,required:!0,inputAlign:"right",label:"学生姓名",placeholder:"请输入学生姓名",autocomplete:"off",maxlength:14,modelValue:te.extra.nickname,"onUpdate:modelValue":e=>te.extra.nickname=e},null),f(Y,{clearable:!1,required:!0,inputAlign:"right",label:"学生性别",placeholder:"请选择性别",autocomplete:"off"},{input:()=>f(q,{"checked-color":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",modelValue:te.extra.gender,"onUpdate:modelValue":e=>te.extra.gender=e,direction:"horizontal"},{default:()=>[f($,{size:"large",type:"primary",color:1!==te.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:1!==te.extra.gender?"#626264":"#fff",class:W.radioSection},{default:()=>[f(L,{class:W.radioItem,name:1},null),y("男")]}),f($,{size:"large",type:"primary",color:0!==te.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:0!==te.extra.gender?"#626264":"#fff",class:W.radioSection},{default:()=>[f(L,{class:W.radioItem,name:0},null),y("女")]})]})}),f(Y,{clearable:!1,required:!0,inputAlign:"right",label:"所在年级",placeholder:"请选择年级",isLink:!0,readonly:!0,clickable:!1,modelValue:Q.gradeNumText,onClick:()=>Q.gradeStatus=!0},null),f(Y,{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:W.memberNumer},[f("img",{src:O,class:W.iconGift},null),f("p",null,[y("注册成功即可获得乐器AI学练工具"),f("span",null,[Q.giftVipDay||0]),y("天有效期")])])]}),f(B,{position:"bottom"},{default:()=>[f("div",{class:W.paymentContainer},[f("div",{class:W.payemntPrice},[f("img",{src:J,class:W.giftTip},null),f("div",null,[f("span",{class:W.needPrice},[f("i",{style:"font-style: normal"},[y("¥ ")]),f("span",null,[h(de.value.amount)]),f("i",{style:"font-style: normal"},[y("/年")])]),de.value.originAmount>de.value.amount?f("del",{class:W.allPrice},[y("¥ "),h(de.value.originAmount)]):""])]),f("div",{class:W.paymentBtn,onClick:()=>le()},[f(_,{round:!0,disabled:Q.loading,loading:Q.loading},{default:()=>[y("立即支付")]})])])]})]),Q.imgCodeStatus?f(N,{value:Q.imgCodeStatus,"onUpdate:value":e=>Q.imgCodeStatus=e,phone:te.username,type:"REGISTER",onClose:()=>{Q.imgCodeStatus=!1},onSendCode:oe},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:A.value,onCancel:()=>Q.gradeStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];te.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:Z,onCancel:()=>Q.classStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];te.extra.currentClass=t.value,Q.currentClassText=t.text,Q.classStatus=!1}},null)]}),f(D,{title:"提示",show:Q.dialogConfirmStatus,"onUpdate:show":e=>Q.dialogConfirmStatus=e,message:"已购买会员,是否确认购买?",primaryColor:"#FF8057",allowHtml:!0,confirmButtonText:"确定",showCancelButton:!0,onConfirm:(r=i((function*(){yield ge()})),function(){return r.apply(this,arguments)})},null),f(D,{title:"提示",show:Q.dialogStatus,"onUpdate:show":e=>Q.dialogStatus=e,message:Q.dialogMessage,allowHtml:!0,primaryColor:"#FF8057",confirmButtonText:"继续支付",onConfirm:(e=i((function*(){re.pause();const e=Q.dialogConfig.paymentConfig;ee.config=null==e?void 0:e.paymentConfig,ee.orderNo=null==e?void 0:e.orderNo,yield fe()})),function(){return e.apply(this,arguments)}),onCancel:e=>{re.pause()}},null),f(w,{show:ee.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[f(k,{paymentConfig:ee.orderInfo,onClose:()=>ee.paymentStatus=!1,onBackOut:_e,onConfirm:e=>he(e)},null)]}),f(w,{show:ee.showQrcode,"onUpdate:show":e=>ee.showQrcode=e,round:!0,onClose:()=>{clearInterval(ee.orderTimer)}},{default:()=>[f(M,{url:ee.qrCodeUrl,pay_channel:ee.pay_channel,orderType:ie.value},null)]}),f(R,{modelValue:ee.authShow,"onUpdate:modelValue":e=>ee.authShow=e},{default:()=>[f(V,{onSuccess:be,hideHeader:!b().isApp},null)]}),f(E,{show:Q.showTips,message:Q.showMessage,showButton:Q.showButton,buttonText:"刷新",onConfirm:()=>window.location.reload()},null),f(z,{show:Q.showOtherSchool,messageAlign:"left",message:Q.showOtherMessage,showCancelButton:!0,onCancel:()=>Q.showOtherSchool=!1,onConfirm:()=>{Q.showOtherSchool=!1,le(!0)}},null)]);var e,r}}}))}}}))}();