|
@@ -73,7 +73,7 @@
|
|
|
<u-input v-model="nickname" type="nickname" placeholder="请输入昵称" />
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
- <u-modal v-model="id_show" @confirm="confirmId" :show-cancel-button="true" title="修改关联信息">
|
|
|
+ <u-modal v-model="id_show" ref="uModal" :async-close="true" @confirm="confirmId" :show-cancel-button="true" title="修改关联信息">
|
|
|
<view class="slot-content">
|
|
|
<u-input v-model="realname" @input="inputName(realname)" type="nickname" placeholder="请输入真实姓名" />
|
|
|
<u-input v-model="idCard" type="idcard" placeholder="请输入身份证" />
|
|
@@ -309,6 +309,7 @@ export default {
|
|
|
content: '真实姓名不能为空',
|
|
|
showCancel: false
|
|
|
})
|
|
|
+ this.$refs.uModal.clearLoading();
|
|
|
return
|
|
|
}
|
|
|
if(this.idCard==''){
|
|
@@ -319,6 +320,7 @@ export default {
|
|
|
content: '身份证ID不能为空',
|
|
|
showCancel: false
|
|
|
})
|
|
|
+ this.$refs.uModal.clearLoading();
|
|
|
return
|
|
|
}
|
|
|
let idCardRe18 = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
|
|
@@ -330,6 +332,7 @@ export default {
|
|
|
content: '身份证ID不正确',
|
|
|
showCancel: false
|
|
|
})
|
|
|
+ this.$refs.uModal.clearLoading();
|
|
|
return
|
|
|
}
|
|
|
let data = {realname:this.realname,idCard:this.idCard}
|
|
@@ -356,6 +359,7 @@ export default {
|
|
|
this.$api.appuserInfo(data).then(res => {
|
|
|
if (res.data.code === 200) {
|
|
|
setTimeout(()=>{
|
|
|
+ this.id_show = false;
|
|
|
uni.showToast({
|
|
|
title: '提交成功',
|
|
|
icon: 'none'
|
|
@@ -425,6 +429,7 @@ export default {
|
|
|
showCancel:false,
|
|
|
success: function(resst) {
|
|
|
this.showPhoneModal = false;
|
|
|
+ this.$api.refreshUserInfo();
|
|
|
}
|
|
|
});
|
|
|
} else {
|