import{r as e,o as l,c as a,w as t,i as s,a as o,b as n,u as d,h as u,s as r,g as i,I as c}from"./index-115eb096.js";import{_ as p}from"./uni-icons.65aa37b4.js";import{_ as m,M as f,r as _}from"./index.4540eefd.js";const x=m({__name:"user_add",setup(m){let x=e({});return(e,m)=>{const g=s,y=_(i("uni-icons"),p),h=c;return l(),a(g,{class:"UserAdd"},{default:t((()=>[o(g,{class:"top"},{default:t((()=>[o(g,{style:{"font-size":"40rpx",padding:"40rpx"}},{default:t((()=>[n("请输入会员基本信息")])),_:1}),o(g,{style:{"text-align":"center"}},{default:t((()=>[o(y,{type:"personadd",style:{color:"#fff","margin-top":"4rpx","margin-left":"4rpx"},size:"80"})])),_:1})])),_:1}),o(g,{style:{padding:"40rpx","margin-top":"40rpx"}},{default:t((()=>[o(g,{class:"title"},{default:t((()=>[n("姓名")])),_:1}),o(h,{modelValue:d(x).name,"onUpdate:modelValue":m[0]||(m[0]=e=>d(x).name=e),class:"input","placeholder-style":"color:#ccc;",placeholder:"请输入姓名"},null,8,["modelValue"]),o(g,{class:"title"},{default:t((()=>[n("电话")])),_:1}),o(h,{modelValue:d(x).tel,"onUpdate:modelValue":m[1]||(m[1]=e=>d(x).tel=e),class:"input",type:"tel","placeholder-style":"color:#ccc;",placeholder:"请输入电话"},null,8,["modelValue"]),o(g,{onClick:m[2]||(m[2]=e=>null==x.value.name?(u({title:"姓名不能为空",icon:"none"}),!1):null==x.value.tel?(u({title:"电话不能为空",icon:"none"}),!1):(x.value.id=0,void f({info:x.value}).then((e=>{e.status&&(u({title:e.msg}),r({url:"/pages/user/list"}))})))),class:"button"},{default:t((()=>[n("创 建")])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-20a012f1"]]);export{x as default};
