Commit a9c6e11e14237d78809b4b6ea2b8b180622e1a03
1 parent
a5bf3843
Exists in
master
feat: 身份证优先
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
src/views/Home/component/AddChildPopupGroup.vue
@@ -8,11 +8,11 @@ | @@ -8,11 +8,11 @@ | ||
8 | <template v-if="cardAuth"> | 8 | <template v-if="cardAuth"> |
9 | <div class="item"> | 9 | <div class="item"> |
10 | <p class="phone_title">姓名</p> | 10 | <p class="phone_title">姓名</p> |
11 | - <input class="code" type="text" v-model="cardName" placeholder="请输入证件姓名" /> | 11 | + <input class="code" type="text" v-model="cardName" placeholder="请输入学生证件姓名" /> |
12 | </div> | 12 | </div> |
13 | <div class="item"> | 13 | <div class="item"> |
14 | <p class="phone_title">身份证号码</p> | 14 | <p class="phone_title">身份证号码</p> |
15 | - <input class="code" type="text" v-model="cardId" placeholder="请输入身份证号码" /> | 15 | + <input class="code" type="text" v-model="cardId" placeholder="请输入学生身份证号码" /> |
16 | </div> | 16 | </div> |
17 | <button class="submit" @click="checkCard">完成</button> | 17 | <button class="submit" @click="checkCard">完成</button> |
18 | <p class="change-btn" @click="cardAuth = false">使用手机号码认证</p> | 18 | <p class="change-btn" @click="cardAuth = false">使用手机号码认证</p> |
@@ -379,7 +379,7 @@ export default { | @@ -379,7 +379,7 @@ export default { | ||
379 | schoolId: '', | 379 | schoolId: '', |
380 | 380 | ||
381 | chooseSchoolisShow: false, | 381 | chooseSchoolisShow: false, |
382 | - cardAuth: false, //是否身份证认证 | 382 | + cardAuth: true, //是否身份证认证 |
383 | cardName: '', | 383 | cardName: '', |
384 | cardId: '', | 384 | cardId: '', |
385 | } | 385 | } |
@@ -491,11 +491,11 @@ export default { | @@ -491,11 +491,11 @@ export default { | ||
491 | // 获取身份证认证 | 491 | // 获取身份证认证 |
492 | checkCard() { | 492 | checkCard() { |
493 | if (!this.cardName) { | 493 | if (!this.cardName) { |
494 | - this.$toast('请输入证件姓名') | 494 | + this.$toast('请输入学生证件姓名') |
495 | return | 495 | return |
496 | } | 496 | } |
497 | if (!this.cardId) { | 497 | if (!this.cardId) { |
498 | - this.$toast('请输入身份证号') | 498 | + this.$toast('请输入学生身份证号') |
499 | return | 499 | return |
500 | } | 500 | } |
501 | this.$toast.loading({ | 501 | this.$toast.loading({ |