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-B2NdllNJ.js";import{C as T,ab as B,a9 as c}from"./index-Cy4uayzW.js";import V from"./UserPhoneModal-t5Q8GFIH.js";import $ from"./UserEmailModal-BPX9z9j7.js";import N from"./UserPasswordModal-0GtmxuZB.js";import"./index-zKZnG1QC.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./validator-CyHCj96y.js";import"./user.api-CoaMxYm2.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};
