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-CrEn9FF2.js";import{C as T,ab as B,a9 as c}from"./index-B_2CoVdl.js";import V from"./UserPhoneModal-CzANkxgp.js";import $ from"./UserEmailModal-G60uFNyd.js";import N from"./UserPasswordModal-D0zTMrZ6.js";import"./index-D2AmS0aU.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./validator-jM63P_3m.js";import"./user.api-BLHI3_6c.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};
