From 8193864fe5deccea83a941bae2c5fcbb7bd386e5 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 15 Oct 2024 10:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E6=B3=A8=E5=86=8C=E5=8F=8A?= =?UTF-8?q?=E7=90=86=E8=AE=BA=E5=AE=9E=E9=AA=8C=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 1 + src/pages/account/login/accountApply.vue | 12 +++++- src/pages/account/login/accountApplyMatch.vue | 20 +++++++--- src/pages/record/theoryReport/index.vue | 40 ++++++++++++++----- 4 files changed, 56 insertions(+), 17 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 884bcb1..6f4b4bd 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -24,6 +24,7 @@ export default { getCurrentTime: `competition/competition/management/getCurrentTime`, heartbeatDetection: `nakadai/message/heartbeatDetection`, forgotPreVerification: `users/users/user/forgotPreVerification`, + registrationJudgment: `users/users/register/registrationJudgment`, forgotPassword: `users/users/user/forgotPassword`, logout: `users/users/user/logout`, quickRegistration: `users/users/user/quickRegistration`, diff --git a/src/pages/account/login/accountApply.vue b/src/pages/account/login/accountApply.vue index c56bd1a..35d71f1 100644 --- a/src/pages/account/login/accountApply.vue +++ b/src/pages/account/login/accountApply.vue @@ -224,4 +224,14 @@ export default { }; - \ No newline at end of file + \ No newline at end of file diff --git a/src/pages/account/login/accountApplyMatch.vue b/src/pages/account/login/accountApplyMatch.vue index 4ff17cf..e2eeefc 100644 --- a/src/pages/account/login/accountApplyMatch.vue +++ b/src/pages/account/login/accountApplyMatch.vue @@ -93,6 +93,7 @@ export default { watch: { visible () { this.accountVisible = this.visible + if (this.visible) this.exist = true } }, mounted () { @@ -109,11 +110,20 @@ export default { } try { - const { message } = await this.$get(`${this.api.forgotPreVerification}?phoneOrEmail=${val}&platform=${Setting.platformId}`) - const exist = message === 'success' // 用户已存在 - this.exist = exist // 用户已存在 - this.phoneMsg = exist ? '该手机号已注册!' : '' - this.form.workNumber = this.exist ? '' : val + // const { message } = await this.$get(`${this.api.forgotPreVerification}?phoneOrEmail=${val}&platform=${Setting.platformId}`) + try { + await this.$post(this.api.registrationJudgment, { + schoolId: 2886, + phone: val, + }) + this.exist = false + this.phoneMsg = '' + this.form.workNumber = val + } catch (e) { + this.exist = true // 用户已存在 + this.phoneMsg = '该手机号已注册' + this.form.workNumber = '' + } } catch (e) { } }, // 发送验证码 diff --git a/src/pages/record/theoryReport/index.vue b/src/pages/record/theoryReport/index.vue index 92349e6..1b72506 100644 --- a/src/pages/record/theoryReport/index.vue +++ b/src/pages/record/theoryReport/index.vue @@ -63,7 +63,7 @@
{{ info.score }} -

(部分试题待判分,成绩待定)

+

(部分试题待判分,成绩待定)

  • @@ -95,14 +95,16 @@ -
    - 【知识点】 + 【知识点】 {{ kp.name }}
    - 【解析】 + 【解析】
    暂无解析
    -
    +