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

Loading…
Cancel
Save