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 v-else
/> />
</view> </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"> <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"
name="input" name="input"
placeholder="请输入学号" placeholder="请输入学号/工号"
type="text" type="text"
v-model="studentID" v-model="studentID"
/> />
@ -197,7 +197,7 @@ export default {
// //
checkRules() { checkRules() {
const { name, idCard, phone, identitys, agree } = this; const { name, idCard, phone, identitys, studentID, agree } = this;
if (!name) { if (!name) {
showToast('请输入姓名'); showToast('请输入姓名');
return; return;
@ -214,6 +214,10 @@ export default {
showToast('请选择身份'); showToast('请选择身份');
return; return;
} }
if (!studentID) {
showToast('请输入学号/工号');
return;
}
if (!agree) { if (!agree) {
showToast('请选择是否同意《用户服务协议》和《隐私政策》'); showToast('请选择是否同意《用户服务协议》和《隐私政策》');
return; return;

Loading…
Cancel
Save