From 95c79d46f35ebc54e36f08334dd25d45c267ea80 Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Tue, 5 Dec 2023 14:19:26 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E5=BF=83=E7=90=86=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E9=A6=96=E9=A1=B5=20=20=20=20=20-=20=E5=8C=BA?= =?UTF-8?q?=E5=88=86=20=E6=B5=8B=E8=AF=95=E5=92=8C=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++++- src/config/models.js | 2 +- src/views/health/psychological/index.vue | 3 ++- src/views/health/psychological/report/index.vue | 3 ++- src/views/health/psychological/report/report-entry.vue | 3 ++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b41cb4f..241c1fc 100644 --- a/README.md +++ b/README.md @@ -831,4 +831,10 @@ fix `2023.12.5` update - 心理监测首页 - - 修改 菜单顺序 \ No newline at end of file + - 修改 菜单顺序 + +## v1.0.105 +`2023.12.5` +update +- 心理监测首页 + - 区分 测试和正式环境接口地址 \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index 997267c..d88e5af 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -5,7 +5,7 @@ * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.104F'; //版本号 +export const VERSION_MODEL = '1.0.105F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue index af422bb..a7d08e1 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -1306,7 +1306,8 @@ export default { }, getWeekResult() { this.$toast.loading('数据加载中'); - let reqUrl = 'https://dbmq.rzliot.com/heart/api/Data/GetWeekResult'; + let baseUrl = process.env.NODE_ENV === 'production' ? 'https://dbmq.rzliot.com/auth_heart' : 'https://dbmq.rzliot.com/heart'; + let reqUrl = `${baseUrl}/api/Data/GetWeekResult`; let reqParams = { uid: this.uid/* '2023101521270090082 */, type: this.emoType diff --git a/src/views/health/psychological/report/index.vue b/src/views/health/psychological/report/index.vue index 45f6fb2..ec7ce43 100644 --- a/src/views/health/psychological/report/index.vue +++ b/src/views/health/psychological/report/index.vue @@ -632,7 +632,8 @@ export default { }, getWeekResultDetail() { this.$toast.loading('数据加载中'); - let reqUrl = 'https://dbmq.rzliot.com/heart/api/Data/GetWeekResultDetail'; + let baseUrl = process.env.NODE_ENV === 'production' ? 'https://dbmq.rzliot.com/auth_heart' : 'https://dbmq.rzliot.com/heart'; + let reqUrl = `${baseUrl}/api/Data/GetWeekResultDetail`; let reqParams = { recordId: this.params.recordId, }; diff --git a/src/views/health/psychological/report/report-entry.vue b/src/views/health/psychological/report/report-entry.vue index c383915..e84b579 100644 --- a/src/views/health/psychological/report/report-entry.vue +++ b/src/views/health/psychological/report/report-entry.vue @@ -94,7 +94,8 @@ export default { }, getWeekResult() { this.$toast.loading('数据加载中'); - let reqUrl = 'https://dbmq.rzliot.com/heart/api/Data/GetWeekResult'; + let baseUrl = process.env.NODE_ENV === 'production' ? 'https://dbmq.rzliot.com/auth_heart' : 'https://dbmq.rzliot.com/heart'; + let reqUrl = `${baseUrl}/api/Data/GetWeekResult`; let reqParams = { uid: /* this.uid */'2023101521270090082', type: this.emoType