Browse Source

修改学号必填性

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

10
pages/basic-info/basic-info.vue

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

Loading…
Cancel
Save