1 |
- import{d as y,x as E,a as e,I as p,A as t,W as w,C,a4 as x,S as c,K as m,D,V as S}from"./index-869d77fb.js";import{R as T,a as _}from"./index-62365511.js";import{C as F}from"./index-cff93552.js";import{C as h}from"./index-1c6c2ec0.js";import{M as q}from"./index-32adfdfb.js";import{F as A}from"./index-988f61a4.js";import{F as f}from"./index-0153d173.js";const N="_payment_1ot0l_1",k="_title_1ot0l_13",z="_payAmount_1ot0l_21",G="_amount_1ot0l_31",I="_blank_1ot0l_38",V="_payTypeRe_1ot0l_41",R="_recommend_1ot0l_45",P="_payBtn_1ot0l_54",l={payment:N,title:k,payAmount:z,amount:G,blank:I,payTypeRe:V,recommend:R,payBtn:P},ce=y({name:"payment",props:{paymentConfig:{type:Object,default:{}}},emits:["backOut","close","confirm"],setup(a,{slots:n,attrs:ae,emit:i}){const o=E({payType:"wx",pay_channel:""}),B=()=>{x({message:"是否放弃本次付款",confirmButtonText:"继续付款",cancelButtonText:"放弃",showCancelButton:!0}).catch(async()=>{await b(),i("backOut"),i("close")})},b=async u=>{},v=async()=>{const u=o.payType;c().weixin?u=="zfb"?(o.pay_channel="alipay_qr",r("qrCode")):u=="wx"&&(o.pay_channel="wx_pub",r("pay")):c().alipay?u=="zfb"?(o.pay_channel="alipay_wap",r("pay")):u=="wx"&&(o.pay_channel="wx_pub",r("qrCode")):(u=="zfb"?o.pay_channel="alipay_qr":u=="wx"&&(o.pay_channel="wx_pub"),r("qrCode"))},r=u=>{const g=u=="qrCode"?"payCenter":"payResult";i("confirm",{payCode:g,pay_channel:o.pay_channel})};return()=>e("div",{class:l.payment},[e(p,{onClick:B,name:"cross",size:20},null),e("div",{class:[l.title]},[t("选择支付方式")]),e("div",{class:l.payAmount},[e("p",null,[t("应付金额")]),e("div",{class:l.amount},[e("span",null,[t("¥ ")]),w(a.paymentConfig.currentPrice)])]),e(T,{modelValue:o.payType,"onUpdate:modelValue":u=>o.payType=u},{default:()=>[e(F,{border:!1},{default:()=>[e(h,{border:!0,center:!0,onClick:()=>{o.payType="wx"}},{icon:()=>e(p,{name:"wechat-pay",color:"#15c434",size:22},null),"right-icon":()=>e(_,{name:"wx"},null),title:()=>e("div",{class:l.payTypeRe},[t("微信支付 "),e("span",{class:l.recommend},[t("推荐")])])}),e(h,{title:"支付宝支付",border:!0,center:!0,onClick:()=>{o.payType="zfb"}},{icon:()=>e(p,{name:"alipay",color:"#009fe9",size:22},null),"right-icon":()=>e(_,{name:"zfb"},null)})]})]}),e("div",{class:l.blank},null),e(C,{type:"primary",class:l.payBtn,block:!0,round:!0,onClick:v},{default:()=>[t("确认支付")]})])}}),U="_saveShareImage_1vhog_1",j="_tips_1vhog_5",H="_tipsTitle_1vhog_11",M="_tipsContent_1vhog_17",O="_previewSection_1vhog_23",Q="_topImage_1vhog_30",$="_shareContaienr_1vhog_37",K="_schoolName_1vhog_45",W="_shareType_1vhog_51",X="_qrcodeSection_1vhog_60",J="_memo_1vhog_68",s={saveShareImage:U,tips:j,tipsTitle:H,tipsContent:M,previewSection:O,topImage:Q,shareContaienr:$,schoolName:K,shareType:W,qrcodeSection:X,memo:J},ie=y({name:"qrcode-payment",props:{url:{type:String,default:""},pay_channel:{type:String,default:"wx_pub"},orderType:{type:String,default:""}},setup(a){return()=>e("div",{class:[s.saveShareImage]},[e("div",{class:[s.shareContaienr]},[e("div",{class:s.schoolName},[a.orderType==="VIP"?"会员购买":"报名缴费"]),e("div",{class:s.shareType},[t("请截图下方二维码"),e("span",null,[t("登录"),a.pay_channel==="wx_pub"?"微信":"支付宝",t("扫码支付")])]),e("div",{class:s.qrcodeSection},[e(q,{text:a.url,logoSize:"small",size:"100%"},null)]),e("div",{class:s.memo},[t("请在30分钟内扫码支付")])]),e("div",{class:[s.tips]},[e("div",{class:s.tipsTitle},[t("使用说明:")]),e("div",{class:s.tipsContent},[t("1.打开"),a.pay_channel==="wx_pub"?"微信":"支付宝",t("扫一扫"),e("br",null,null),t("2.选择相册中的二维码"),e("br",null,null),t("3.请在30分钟内扫码支付")])])])}}),pe=a=>{let n="qrCode";return c().weixin?a=="alipay_qr"||a=="alipay_wap"?n="qrCode":a=="wx_pub"&&(n="pay"):c().alipay&&a=="alipay_wap"?n="pay":n="qrCode",n=="qrCode"?"payDefine":"payResult"},L="_userAuth_1wdij_1",Y="_cellGroup_1wdij_6",Z="_btnGroup_1wdij_38",ee="_otherBtn_1wdij_42",d={userAuth:L,cellGroup:Y,btnGroup:Z,otherBtn:ee},me=y({name:"UserAuth",props:{onSuccess:{type:Function,default:()=>{}},hideHeader:{type:Boolean,default:!1}},data(){return{form:{realName:"",idCardNo:""}}},mounted(){var n;const a=m.user.data;console.log(a,"users"),this.form.realName=(n=a==null?void 0:a.account)==null?void 0:n.realName},methods:{async onSubmit(){try{const a="/edu-app/sysAccount/realNameAuth";await D.post(a,{data:{...this.form,contract:!0,save:!0}}),m.user.data.account.realName=this.form.realName,m.user.data.account.idCardNo=this.form.idCardNo,this.onSuccess()}catch(a){}}},render(){return e(A,{class:d.userAuth,onSubmit:this.onSubmit},{default:()=>[!this.hideHeader&&e(S,{title:"实名认证"},null),e(F,{inset:!0,class:d.cellGroup},{default:()=>[e(f,{required:!0,label:"真实姓名",modelValue:this.form.realName,"onUpdate:modelValue":a=>this.form.realName=a,rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",autocomplete:"off",maxlength:"50"},null),e(f,{required:!0,label:"身份证号",modelValue:this.form.idCardNo,"onUpdate:modelValue":a=>this.form.idCardNo=a,maxlength:18,autocomplete:"off",rules:[{required:!0,message:"请输入身份证号"},{pattern:/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,message:"请输入正确的身份证号"}],placeholder:"请输入身份证号"},null)]}),e("div",{class:["btnGroup"]},[e(C,{block:!0,round:!0,type:"primary","native-type":"submit",class:d.otherBtn},{default:()=>[t("确定")]})])]})}});export{ce as P,ie as Q,me as U,pe as b};
|