import{a8 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 b}from"./index-d4baa715.js";import{H as v}from"./index.704ebef3.js";import{u as x}from"./useScroll.dcb46f58.js";import{c as j}from"./index.b69e0784.js";import{u as y}from"./useJump.7526f978.js";import{_ as g}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-icon.b5ddbe11.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./utils.052a93d2.js";const h=g({__name:"index",setup(g){const{goDistributionApplyFor:h}=y(),{scrollTop:V}=x();a((()=>{}));const w=e(),{user:k,areaList:N}=l(w),z=s({});function A(){h({update:!0})}return async function(){z.value=await j()}(),(a,e)=>{const l=d,s=p,x=m,j=b;return t(k)?(o(),r(l,{key:0,class:"apply-for"},{default:u((()=>[n(v,{"scroll-top":t(V),"system-bar-area-bg":"#fff","header-area-bg":"#fff"},{default:u((()=>[i("我的资料 ")])),_:1},8,["scroll-top"]),z.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(x,{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(x,{class:"label"},{default:u((()=>[i(" 真实姓名 ")])),_:1}),_("div",{class:"right"},[n(j,{type:"text",disabled:"",modelValue:z.value.realName,"onUpdate:modelValue":e[0]||(e[0]=a=>z.value.realName=a),placeholder:"请输入真实姓名"},null,8,["modelValue"])])])),_:1}),n(l,{class:"row"},{default:u((()=>[n(x,{class:"label"},{default:u((()=>[i(" 现居城市 ")])),_:1}),_("div",{class:"right flex flex-jc__sb flex-ai__center"},[n(x,{class:"placeholder"},{default:u((()=>[i(f(z.value.address||"-"),1)])),_:1})])])),_:1}),n(l,{class:"row"},{default:u((()=>[n(x,{class:"label"},{default:u((()=>[i(" 申请原因 ")])),_:1}),_("div",{class:"right"},[n(j,{disabled:"",modelValue:z.value.reason,"onUpdate:modelValue":e[1]||(e[1]=a=>z.value.reason=a),type:"text",placeholder:"请输入申请原因"},null,8,["modelValue"])])])),_:1}),n(l,{class:"submit"},{default:u((()=>[n(l,{class:"button animation-button",onClick:A},{default:u((()=>[i("修改信息 ")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):c("",!0)])),_:1})):c("",!0)}}},[["__scopeId","data-v-03e11ba7"]]);export{h as default};
