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-CGfUrWue.js";import{C as T,ab as B,a9 as c}from"./index-CYriLmQo.js";import V from"./UserPhoneModal-4NITfeJF.js";import $ from"./UserEmailModal-BBD2U2U6.js";import N from"./UserPasswordModal-BnhOqYRn.js";import"./index-CF_FJn6P.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./validator-0TDlyteC.js";import"./user.api-BUwWVSBN.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};
