|
|
@@ -14,7 +14,13 @@
|
|
|
<view class="item adfacjb">
|
|
|
<view class="left">用户名</view>
|
|
|
<view class="right">
|
|
|
- <input class="setinp"v-model="userInfo.realName" placeholder="请输入用户名"></input>
|
|
|
+ <input class="setinp" v-model="userInfo.realName" placeholder="请输入用户名"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item adfacjb">
|
|
|
+ <view class="left">身份证号</view>
|
|
|
+ <view class="right">
|
|
|
+ <input class="setinp" v-model="userInfo.idCard" placeholder="请输入身份证号"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class="item adfacjb">
|
|
|
@@ -54,11 +60,12 @@
|
|
|
const qicShow = ref(false)
|
|
|
|
|
|
const save = () => {
|
|
|
- if(!userInfo.value?.avatarPath) return proxy.$showToast('请上传用户头像')
|
|
|
- if(!userInfo.value?.realName) return proxy.$showToast('请输入用户名')
|
|
|
+ // if(!userInfo.value?.avatarPath) return proxy.$showToast('请上传用户头像')
|
|
|
+ // if(!userInfo.value?.realName) return proxy.$showToast('请输入用户名')
|
|
|
// if(!proxy.$reg.mobile(userInfo.value.phone)) return proxy.$showToast('请输入正确的手机号')
|
|
|
- if(!userInfo.value?.welfareName) return proxy.$showToast('请输入家庭公益名称')
|
|
|
- if(!userInfo.value?.welfareSlogan) return proxy.$showToast('请输入家庭公益口号')
|
|
|
+ // if(!userInfo.value?.welfareName) return proxy.$showToast('请输入家庭公益名称')
|
|
|
+ // if(!userInfo.value?.welfareSlogan) return proxy.$showToast('请输入家庭公益口号')
|
|
|
+ if(userInfo.value.idCard&&!proxy.$reg.idCard(userInfo.value.idCard)) return proxy.$showToast('请输入正确的身份证号')
|
|
|
|
|
|
userInfo.value.id = uni.getStorageSync('userInfo')&&JSON.parse(uni.getStorageSync('userInfo')).id;
|
|
|
proxy.$api.put('/wx/update',userInfo.value).then(({data:res})=>{
|