|
|
@ -3,7 +3,7 @@ |
|
|
|
<form class="padding-lr cu-form-group flex-direction"> |
|
|
|
<view class="cu-form-group flex flex-direction padding-tb"> |
|
|
|
<view class="title padding-bottom-sm"> |
|
|
|
<span class="text-red padding-right-xs" v-show="!userInfo">*</span>姓名 |
|
|
|
<span class="text-red padding-right-xs" v-show="!(userInfo && userInfo.id)">*</span>姓名 |
|
|
|
</view> |
|
|
|
<input |
|
|
|
:disabled="(userinfo && userInfo.id) ? true : false" |
|
|
@ -76,7 +76,7 @@ |
|
|
|
/> |
|
|
|
</view> |
|
|
|
</form> |
|
|
|
<user-agreement @changeIntentions="changeIntentions"></user-agreement> |
|
|
|
<user-agreement v-if="!(userinfo && userInfo.id)" @changeIntentions="changeIntentions"></user-agreement> |
|
|
|
<button |
|
|
|
@tap="handleSubmitUserInfo" |
|
|
|
class="bg-cyan margin primary-btn" |
|
|
@ -143,6 +143,16 @@ export default { |
|
|
|
changeIntentions(data) { |
|
|
|
this.agree = data; |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
ceshi(){ |
|
|
|
uni.showToast({ |
|
|
|
title: '信息提交成功', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
const ggg = this.pagePath; |
|
|
|
this.openPage(ggg); |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 提交基本信息 |
|
|
@ -151,7 +161,7 @@ export default { |
|
|
|
try { |
|
|
|
if (!this.checkRules()) return; |
|
|
|
|
|
|
|
const { name, idCard, phone, studentID, current } = this; |
|
|
|
const { name, idCard, phone, studentID, current, pagePath } = this; |
|
|
|
const params = { |
|
|
|
param: { |
|
|
|
idCard, |
|
|
@ -167,7 +177,12 @@ export default { |
|
|
|
if (success && code === 200) { |
|
|
|
this.success = true; |
|
|
|
this.setUserInfo(data); |
|
|
|
uni.showToast({ |
|
|
|
title: '信息提交成功', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
this.openPage(pagePath); |
|
|
|
console.log('跳转路径',pagePath) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: msg || '提交基本信息成功', |
|
|
|