Browse Source

添加工号

remotes/origin/HEAD
songsong428 5 years ago
parent
commit
a24a380c1c
  1. 12
      pages/basic-info/basic-info.vue

12
pages/basic-info/basic-info.vue

@ -63,14 +63,14 @@
v-else
/>
</view>
<view class="cu-form-group flex flex-direction padding-tb" v-show="current === 0">
<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 && userInfo.id)">*</span>学号/工号
</view>
<input
:disabled="userInfo && userInfo.id ? true : false"
name="input"
placeholder="请输入学号"
placeholder="请输入学号/工号"
type="text"
v-model="studentID"
/>
@ -197,7 +197,7 @@ export default {
//
checkRules() {
const { name, idCard, phone, identitys, agree } = this;
const { name, idCard, phone, identitys, studentID, agree } = this;
if (!name) {
showToast('请输入姓名');
return;
@ -214,6 +214,10 @@ export default {
showToast('请选择身份');
return;
}
if (!studentID) {
showToast('请输入学号/工号');
return;
}
if (!agree) {
showToast('请选择是否同意《用户服务协议》和《隐私政策》');
return;

Loading…
Cancel
Save