import{a7 as a,T as e,a6 as l,a as s,i as t,o,j as r,w as u,z as c,B as d,h as n,I as i,l as f,f as _,p,A as m,a5 as v}from"./index-90c12cc1.js";import{H as x}from"./index.0e2fd26a.js";import{u as b}from"./useScroll.50272fa4.js";import{c as j}from"./index.c8c339eb.js";import{u as y}from"./useJump.4fa64b62.js";import{_ as g}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-icon.c815b875.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./utils.80a0ac72.js";const h=g({__name:"index",setup(g){const{goDistributionApplyFor:h}=y(),{scrollTop:V}=b();a((()=>{}));const w=e(),{user:k,areaList:N}=l(w),A=s({});function I(){h({update:!0})}return async function(){A.value=await j()}(),(a,e)=>{const l=d,s=p,b=m,j=v;return t(k)?(o(),r(l,{key:0,class:"apply-for"},{default:u((()=>[n(x,{"scroll-top":t(V),"system-bar-area-bg":"#fff","header-area-bg":"#fff"},{default:u((()=>[i("我的资料 ")])),_:1},8,["scroll-top"]),A.value.realName?(o(),r(l,{key:0,class:"inner"},{default:u((()=>[n(l,{class:"bg"}),n(l,{class:"userinfo flex flex-column flex-ai__center flex-jc__center"},{default:u((()=>[n(s,{src:t(k).avatar},null,8,["src"]),n(b,{class:"username"},{default:u((()=>[i(f(t(k).nickname),1)])),_:1})])),_:1}),n(l,{class:"apply-card"},{default:u((()=>[n(l,{class:"form"},{default:u((()=>[n(l,{class:"row"},{default:u((()=>[n(b,{class:"label"},{default:u((()=>[i(" 真实姓名 ")])),_:1}),_("div",{class:"right"},[n(j,{type:"text",disabled:"",modelValue:A.value.realName,"onUpdate:modelValue":e[0]||(e[0]=a=>A.value.realName=a),placeholder:"请输入真实姓名"},null,8,["modelValue"])])])),_:1}),n(l,{class:"row"},{default:u((()=>[n(b,{class:"label"},{default:u((()=>[i(" 现居城市 ")])),_:1}),_("div",{class:"right flex flex-jc__sb flex-ai__center"},[n(b,{class:"placeholder"},{default:u((()=>[i(f(A.value.address||"-"),1)])),_:1})])])),_:1}),n(l,{class:"row"},{default:u((()=>[n(b,{class:"label"},{default:u((()=>[i(" 申请原因 ")])),_:1}),_("div",{class:"right"},[n(j,{disabled:"",modelValue:A.value.reason,"onUpdate:modelValue":e[1]||(e[1]=a=>A.value.reason=a),type:"text",placeholder:"请输入申请原因"},null,8,["modelValue"])])])),_:1}),n(l,{class:"submit"},{default:u((()=>[n(l,{class:"button animation-button",onClick:I},{default:u((()=>[i("修改信息 ")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):c("",!0)])),_:1})):c("",!0)}}},[["__scopeId","data-v-491c2e6b"]]);export{h as default};
