From 28cebc7ac402c2bcf15f48060468386d5eb7e10d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 29 Nov 2024 11:06:19 +0800 Subject: [PATCH] fix --- components/realName/realName.vue | 2 +- config/request.js | 4 +- course/courseDetail/courseDetail.vue | 102 ++++++++++------------- course/practiceDetail/practiceDetail.vue | 5 -- pages.json | 10 +-- pages/achievement/achievement.vue | 44 +++++++++- pages/login/login.vue | 82 ++++++------------ styles/common.scss | 11 ++- user/info/info.vue | 10 ++- user/phone/phone.vue | 6 +- user/reg/reg.vue | 23 ++--- user/selectAccount/selectAccount.vue | 2 - user/switchAccount/switchAccount.vue | 2 +- 13 files changed, 147 insertions(+), 156 deletions(-) diff --git a/components/realName/realName.vue b/components/realName/realName.vue index 835b83e..d8660ae 100644 --- a/components/realName/realName.vue +++ b/components/realName/realName.vue @@ -35,7 +35,7 @@ async handleRealName () { const res = await checkUserNameOrWorkNumber() // 如果没有真实姓名,则弹框提示填写 - if (!res.hasName) this.realNameForm.workNumber = res.workNumber + if (!res.hasName) this.realNameForm.workNumber = res.workNumber || '' this.$refs.alertDialog[res.hasName ? 'close' : 'open']() }, // 真实姓名提交 diff --git a/config/request.js b/config/request.js index 7a81ef9..d2add19 100644 --- a/config/request.js +++ b/config/request.js @@ -6,8 +6,8 @@ export default { // baseURL: 'https://izhixinyun.com/', - baseURL: 'http://192.168.31.51:9000/', - // baseURL: 'http://118.31.167.228/', + // baseURL: 'http://192.168.31.51:9000/', + baseURL: 'http://118.31.167.228/', headers: { 'Content-Type': 'application/json;charset=UTF-8' }, diff --git a/course/courseDetail/courseDetail.vue b/course/courseDetail/courseDetail.vue index 66ce2b5..60fc79b 100644 --- a/course/courseDetail/courseDetail.vue +++ b/course/courseDetail/courseDetail.vue @@ -89,7 +89,7 @@ - + {{ item.experimentalName }} 得分:{{ item.score }}  耗时:{{ item.timeSum }}min 考核开始时间:{{ item.startTime }} @@ -104,7 +104,7 @@ diff --git a/pages/login/login.vue b/pages/login/login.vue index c49fa37..fc3ec47 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -2,8 +2,8 @@ - - + + @@ -15,11 +15,12 @@