diff --git a/pages/basic-info/basic-info.vue b/pages/basic-info/basic-info.vue index 5a478a9..2ff4978 100644 --- a/pages/basic-info/basic-info.vue +++ b/pages/basic-info/basic-info.vue @@ -63,14 +63,14 @@ v-else /> - + - 学号 + *学号/工号 @@ -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;