|
|
@ -31,6 +31,7 @@ |
|
|
|
<view class="title padding-bottom-sm"><span v-show="!userInfo" class="text-red padding-right-xs">*</span>学号</view> |
|
|
|
<input :disabled="userInfo ? true : false" placeholder="请输入学号" name="input" type="text" v-model="studentID" /> |
|
|
|
</view> |
|
|
|
|
|
|
|
</form> |
|
|
|
<user-agreement v-if="!userInfo" @changeIntentions='changeIntentions'></user-agreement> |
|
|
|
<button v-show="!userInfo" class="bg-cyan margin primary-btn" hover-class="cc-active" @tap="handleSubmitUserInfo">确认提交</button> |
|
|
@ -81,7 +82,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
computed: mapState('user', ['userInfo']), |
|
|
|
computed: mapState('user', ['userInfo','pagePath']), |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapMutations('user', ['setUserInfo']), |
|
|
@ -130,18 +131,9 @@ |
|
|
|
data |
|
|
|
} = res.data; |
|
|
|
if (success && code === 200) { |
|
|
|
console.log('data', data) |
|
|
|
this.setUserInfo(data); |
|
|
|
// name = data.name; |
|
|
|
// idCard = data.idCard; |
|
|
|
// phone = data.phone; |
|
|
|
// studentID = data.no; |
|
|
|
// current = data.post; |
|
|
|
this.success = true; |
|
|
|
|
|
|
|
uni.reLaunch({ |
|
|
|
url: `/pages/apply-code/apply-code`, |
|
|
|
}); |
|
|
|
this.setUserInfo(data); |
|
|
|
this.openPage(pagePath) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: msg || '提交基本信息成功', |
|
|
|