1import{i as S}from"./vendor-element-plus-CnrZsLnk.js";import{_ as k,bn as q,r as c,R as f,b,u as w,g as _}from"./services-DMwYBTTp.js";import{m as v}from"./vendor-DZeYsp6R.js";import{U as W}from"./UploadImage-CtKTZMq5.js";import{u as y}from"./wechatPay-CC2OTUPN.js";import{a as E,m as L}from"./vendor-pinia-CkwwAs9v.js";import{t as a,M as t,S as l,K as R,N as u,L as T,au as D,Z as p,ay as V,ae as m,a1 as P,$ as N,q as n}from"./vendor-vue-Cs0jG3vf.js";import"./vendor-lodash-DXGp0yxs.js";const B={components:{UploadImage:W},beforeRouteEnter(r,e,g){y().GetBindingWechatAccountInfo().then(()=>{const s=w(),{weChatPayStatus:i,internalWeChatPayStatus:h}=s.optionStates;!i&&!h&&c.push("/memberCenter/securityCenter"),g()}).catch(s=>{window.layer.alert(s.msg,()=>{c.replace("/memberCenter/manageWeChatPay")}),_().SetTurning(!1)})},data(){return{selectPay:{account:"",realName:""},reqParams:{account:"",realName:""},showDropdown:!1,action:"insert",errorMsg:{realName:{Error:!1,True:!1,Msg:""},account:{Error:!1,True:!1,Msg:""}},isLoading:!1}},computed:{...L(w,y),...E(y,["bankCardNums","bindingWeChatPayList"]),realName(){return b().realName},weChatPayStatus(){return this.siteStore.optionStates.weChatPayStatus}},watch:{weChatPayStatus(r){r===0&&!this.$os.internalWeChatPayStatus&&c.push("/home")},internalWeChatPayStatus(r){r===0&&!this.$os.weChatPayStatus&&c.push("/home")}},created(){this.bindingWeChatPayList.length&&(this.action=this.$route.query.Q||"insert",this.action==="upload"&&this.$route.query.id?this.selectPay=this.bindingWeChatPayList.find(r=>Number(r.id)===Number(this.$route.query.id)):this.selectPay=this.bindingWeChatPayList[0])},methods:{hideAccount:q,toggleDropdown(){this.showDropdown=!this.showDropdown},selectOption(r){this.selectPay=r,this.showDropdown=!1},async checkRealName(){let{realName:r}=this.reqParams;this.errorMsg.realName.Msg="",r?r&&!r.match(f.RealName.Reg4)||!r.match(f.RealName.Reg5)?this.errorMsg.realName.Msg="å¡«åçéªè¯ä¿¡æ¯é误ï¼":r&&(r.length>30||r.length<1)&&(this.errorMsg.realName.Msg="å¡«åçéªè¯ä¿¡æ¯é误ï¼"):this.errorMsg.realName.Msg="éªè¯å§åä¸è½ä¸ºç©º",this.errorMsg.realName.True=!this.errorMsg.realName.Msg,this.errorMsg.realName.Error=!!this.errorMsg.realName.Msg},checkAccount(){const{account:r}=this.reqParams;this.errorMsg.account.Msg="";const e=new RegExp(/^[^\u4e00-\u9fa5]{2,30}$/);r?(!e.test(r)||r.includes("*")||r.length<2)&&(this.errorMsg.account.Msg="å¡«åçéªè¯ä¿¡æ¯é误ï¼"):this.errorMsg.account.Msg="éªè¯è´¦å·ä¸è½ä¸ºç©º",this.errorMsg.account.True=!this.errorMsg.account.Msg,this.errorMsg.account.Error=!!this.errorMsg.account.Msg},async submit(){if(!this.isLoading){if(this.isLoading=!0,this.checkRealName(),this.checkAccount(),!this.errorMsg.realName.True||!this.errorMsg.account.True){window.layer.msgWarn(this.errorMsg.realName.Msg||this.errorMsg.account.Msg),this.isLoading=!1;return}this.wechatPayStore.ChkBindingWechatpayInfo({...this.reqParams,id:this.selectPay.id,account:v(this.reqParams.account)}).then(r=>{this.wechatPayStore.waChatPayVerified=!0,this.alertMessage(r.msg)}).catch(r=>{window.layer.msgWarn(r.msg),this.isLoading=!1})}},alertMessage(r){const e=this;return window.layer.CustomConfirm({content:r,btn:["ç¡®å®"],yes(g){try{c.push({name:"setWeChatPay",query:e.$route.query}),window.layer.close(g)}catch(d){console.error("[verifyWeChatPay] Error:",d)}}})}}},I={class:"userRight"},U={class:"userMain mgb10"},x={class:"submitContent mg30 setBankcard"},A={class:"dropdown_list"}
1,F={key:0},O={key:1,class:"dropdown_container w-250"},z=["src"],G={key:1,class:u(["iconBank qr_selectList wechat"])},K={key:0,class:"dropdown_content"},Q=["onClick"],Z=["id","value"],j=["src"],H={key:1,class:u(["iconBank qr_selectList qrCode_icon wechat"])},J={class:"userTip mg30"},X={key:0},Y={key:1};function $(r,e,g,d,s,i){const h=S;return n(),a("div",I,[e[15]||(e[15]=t("div",{class:"userTitle mgb10"},"微信æ¯ä»éªè¯",-1)),t("div",U,[t("ul",x,[t("li",A,[e[6]||(e[6]=t("span",null,"微信æ¯ä»è´¦å·ï¼",-1)),["upload"].includes(s.action)?(n(),a("em",F,l(i.hideAccount(s.selectPay.account)),1)):(n(),a("div",O,[t("div",{onClick:e[0]||(e[0]=(...o)=>i.toggleDropdown&&i.toggleDropdown(...o)),class:"dropdrown_box USDT_box"},[s.selectPay.qrcodeImg?(n(),a("img",{key:0,src:r.imgFtpUrl+s.selectPay.qrcodeImg,class:u(["iconBank qr_selectList"])},null,8,z)):(n(),a("em",G)),t("ins",null,"å°¾å·ï¼"+l(i.hideAccount(s.selectPay.account,5)),1),e[5]||(e[5]=t("i",null,null,-1))]),s.showDropdown?(n(),a("div",K,[(n(!0),a(T,null,D(r.bindingWeChatPayList,(o,C)=>(n(),a("div",{key:C,class:"list",onClick:M=>i.selectOption(o)},[p(t("input",{type:"radio",name:"USDTId",id:o.id,value:o,"onUpdate:modelValue":e[1]||(e[1]=M=>s.selectPay=M)},null,8,Z),[[V,s.selectPay]]),o.qrcodeImg?(n(),a("img",{key:0,src:r.imgFtpUrl+o.qrcodeImg,class:u(["iconBank qr_selectList qrCode_icon"])},null,8,j)):(n(),a("em",H)),t("span",null,l(i.hideAccount(o.account,5)),1)],8,Q))),128))])):R("",!0)]))]),t("li",null,[e[7]||(e[7]=t("span",null,"微信æ¯ä»å§åï¼",-1)),m(" "+l(i.hideAccount(s.selectPay.realName,2,-1)),1)]),t("li",null,[e[9]||(e[9]=t("span",null,"请è¾å
¥å®æ´è´¦å·ï¼",-1)),P(h,{tag:"è´¦å·",type:"text",placeholder:"请è¾å
¥å®æ´è´¦å·",class:"w-250",maxlength:"30",modelValue:s.reqParams.account,"onUpdate:modelValue":e[2]||(e[2]=o=>s.reqParams.account=o),modelModifiers:{trim:!0}},null,8,["modelValue"]),p(t("em",{class:u(s.errorMsg.account.Error?"verifyWrong":"verifyRight")},[e[8]||(e[8]=t("i",null,null,-1)),m(l(s.errorMsg.account.Error?s.errorMsg.account.Msg:""),1)],2),[[N,s.errorMsg.account.Error||s.errorMsg.account.True]])]),t("li",null,[e[11]||(e[11]=t("span",null,"请è¾å
¥å®æ´å§åï¼",-1)),P(h,{tag:"å§å",type:"text",placeholder:"请è¾å
¥å®æ´å§å",class:"w-250 realName",maxlength:"30",modelValue:s.reqParams.realName,"onUpdate:modelValue":e[3]||(e[3]=o=>s.reqParams.realName=o),modelModifiers:{trim:!0}},null,8,["modelValue"]),p(t("em",{class:u(s.errorMsg.realName.Error?"verifyWrong":"verifyRight")},[e[10]||(e[10]=t("i",null,null,-1)),m(l(s.errorMsg.realName.Error?s.errorMsg.realName.Msg:""),1)],2),[[N,s.errorMsg.realName.Error||s.errorMsg.realName.True]])]),t("li",null,[e[12]||(e[12]=t("span",null,null,-1)),t("a",{class:"submitBtn",onClick:e[4]||(e[4]=(...o)=>i.submit&&i.submit(...o))},"ç¡®å®")])]),t("div",J,[s.action==="insert"?(n(),a("p",X,[...e[13]||(e[13]=[t("i",null,null,-1),m("温馨æç¤ºï¼ä¸ºç¡®å®æ¯æ¬äººæä½ï¼å次添å 微信æ¯ä»æ¶éè¦éªè¯å·²ç»å®ç微信æ¯ä»ä¿¡æ¯ã",-1)])])):(n(),a("p",Y,[...e[14]||(e[14]=[t("i",null,null,-1),m("温馨æç¤ºï¼ä¸ºç¡®å®æ¯æ¬äººæä½ï¼ä¸ä¼ 微信æ¯ä»äºç»´ç æ¶éè¦éªè¯å¾®ä¿¡æ¯ä»ä¿¡æ¯ã",-1)])]))])])])}const le=k(B,[["render",$],["__scopeId","data-v-3488e945"]]);export{le as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.