From f891723dabe06523aaac241090c51cabcb2b2926 Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Mon, 13 May 2024 10:44:44 +0800 Subject: [PATCH] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ‘7天’,‘30天’文字 改成 ‘前7天’,‘前30天’, --- README.md | 7 +++++ src/config/models.js | 2 +- src/views/health/psychological/index.vue | 39 ++++++++++++------------ 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index afd41da..4f2a4cd 100644 --- a/README.md +++ b/README.md @@ -1145,3 +1145,10 @@ fix update - ‘忧郁’文字 改成‘抑郁’, + +## v1.0.124 + +`2024.5.13` +update + +- ‘7天’,‘30天’文字 改成 ‘前7天’,‘前30天’, diff --git a/src/config/models.js b/src/config/models.js index 316d282..1d95514 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -8,7 +8,7 @@ import store from "@/store"; // 情绪模型 const appTypeList = ['1']; -export const VERSION_MODEL = '1.0.123F'; //版本号 +export const VERSION_MODEL = '1.0.124F'; //版本号 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 bc291b7..a67b981 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -10,9 +10,9 @@
{{ - item.days - }} + item.days + }} 天
@@ -263,8 +263,8 @@ export default { // 日期选择标签 dateList: [ { name: "today", text: "今天", value: 0 }, - { name: "week", text: "7天", value: 7 }, - { name: "month", text: "30天", value: 30 }, + { name: "week", text: "前7天", value: 7 }, + { name: "month", text: "前30天", value: 30 }, { name: "weekReport", text: "周报", value: 49 }, ], // 情绪tab @@ -1239,8 +1239,7 @@ export default { this.current = index; this.currentDays = value; this.$store.commit("tabClick", index); - let currentDate = new Date(); - let leftText = value === 0 ? "今天" : value === 7 ? "7天" : "30天"; + let currentDate = value === 0 ? new Date() : new Date(this.$dayjs().subtract(1, 'days')) this.surveyTitle = value === 7 ? "7天概览" : "30天概览"; if (value === 7) { let dateList = this.getPostDate(currentDate, 6, true);