import{d as x,f as C,r as P,o as R,U as S,a2 as s,a3 as i,a4 as o,a5 as p,V as w,k as r,a6 as D,u as l,F as E}from"./vue-vendor-CxLCUzY4.js";import{g as U}from"./UserSetting.api-CEhzEVpJ.js";import{C as T,ab as B,a9 as c}from"./index-CLZzJyTP.js";import V from"./UserPhoneModal-BAIn09UI.js";import $ from"./UserEmailModal-D41EMlBQ.js";import N from"./UserPasswordModal-BV-Cdd5N.js";import"./index-XZKTTfG1.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./validator-Dx9kcZ5e.js";import"./user.api-DAu0nuTv.js";const F={class:"account-row-item clearfix"},I={key:0,class:"gray"},W={class:"account-row-item clearfix"},j={class:"gray"},z={class:"account-row-item"},be=x({__name:"AccountSetting",setup(A){const{prefixCls:m}=T("j-user-account-setting-container"),e=C([]),q=B(),[d,{openModal:u}]=c(),[f,{openModal:g}]=c(),[v,{openModal:h}]=c(),G=P({bindWechat:!1,name:"昵称"});function t(){U().then(a=>{a.success&&(e.value=a.result,a.result.phone&&(e.value.phoneText=a.result.phone.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")))})}function _(){u(!0,{record:{phone:e.value.phone,username:e.value.username,id:e.value.id,phoneText:e.value.phoneText}})}function b(){u(!0,{record:{username:e.value.username,id:e.value.id}})}function k(){g(!0,{record:{email:e.value.email,id:e.value.id}})}function y(){h(!0,{record:{username:e.value.username}})}function H(){}function J(){}function K(){}function L(){}function O(){}return R(()=>{t()}),(a,n)=>{const M=S("Icon");return s(),i(E,null,[o("div",{class:D([`${l(m)}`])},[n[3]||(n[3]=o("div",{class:"my-account"},"账户",-1)),o("div",F,[n[0]||(n[0]=o("div",{class:"account-label gray-75"},"手机",-1)),e.value.phoneText?(s(),i("span",I,p(e.value.phoneText),1)):w("",!0),e.value.phone?(s(),i("span",{key:1,class:"pointer blue-e5 phone-margin",onClick:_},"修改")):(s(),i("span",{key:2,class:"pointer blue-e5 phone-margin",onClick:b},"绑定"))]),o("div",W,[n[1]||(n[1]=o("div",{class:"account-label gray-75"},"邮箱",-1)),o("span",j,p(e.value.email?e.value.email:"未填写"),1),o("span",{class:"pointer blue-e5 phone-margin",onClick:k},"修改")]),o("div",z,[n[2]||(n[2]=o("div",{class:"account-label gray-75"},"密码",-1)),r(M,{icon:"ant-design:lock-outlined",style:{color:"#9e9e9e"}}),o("span",{class:"pointer blue-e5",style:{"margin-left":"10px"},onClick:y},"修改")])],2),r(V,{onRegister:l(d),onSuccess:t},null,8,["onRegister"]),r($,{onRegister:l(f),onSuccess:t},null,8,["onRegister"]),r(N,{onRegister:l(v),onSuccess:t},null,8,["onRegister"])],64)}}});export{be as default};
