import{_ as a,aY as e,aa as l,b as n,d as t,p as s,w as u,H as i,i as c,o,f as d,k as f,Y as p,R as h}from"./index-2PZN6pGH.js";const m=a({data:()=>({title:"addPhoneContact",name:"",phone:""}),methods:{nameChange:function(a){this.name=a.detail.value},phoneChange:function(a){this.phone=a.detail.value},async add(){e({firstName:this.name,mobilePhoneNumber:this.phone,success:function(){l({content:"已成功添加联系人！",showCancel:!1})},fail:function(){l({content:"添加联系人失败！",showCancel:!1})}})}}},[["render",function(a,e,l,m,r,_){const b=n(t("page-head"),i),C=c,g=p,v=h;return o(),s(C,null,{default:u((()=>[d(b,{title:r.title},null,8,["title"]),d(C,{class:"uni-common-mt"},{default:u((()=>[d(C,{class:"uni-list"},{default:u((()=>[d(C,{class:"uni-list-cell"},{default:u((()=>[d(C,{class:"uni-list-cell-left"},{default:u((()=>[d(C,{class:"uni-label"},{default:u((()=>[f("名称")])),_:1})])),_:1}),d(C,{class:"uni-list-cell-db"},{default:u((()=>[d(g,{class:"uni-input",type:"text",placeholder:"请输入联系人名称",name:"name",value:r.name,onInput:_.nameChange},null,8,["value","onInput"])])),_:1})])),_:1}),d(C,{class:"uni-list-cell"},{default:u((()=>[d(C,{class:"uni-list-cell-left"},{default:u((()=>[d(C,{class:"uni-label"},{default:u((()=>[f("手机号")])),_:1})])),_:1}),d(C,{class:"uni-list-cell-db"},{default:u((()=>[d(g,{class:"uni-input",type:"text",placeholder:"请输入联系人手机号",name:"phone",value:r.phone,onInput:_.phoneChange},null,8,["value","onInput"])])),_:1})])),_:1})])),_:1}),d(C,{class:"uni-padding-wrap"},{default:u((()=>[d(C,{class:"uni-btn-v"},{default:u((()=>[d(v,{type:"primary",class:"btn-setstorage",onClick:_.add},{default:u((()=>[f("添加联系人")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})])),_:1})}]]);export{m as default};
