|
|
@@ -142,7 +142,7 @@ |
|
|
|
<span class="title-reminder">结果解读</span> |
|
|
|
|
|
|
|
<p class="title-emo" :style="{ color: currentColor }"> |
|
|
|
{{ this.$replaceAll(result, '抑郁', '焦虑') }} |
|
|
|
{{ this.$replaceAll(result, '抑郁', '忧郁') }} |
|
|
|
</p> |
|
|
|
|
|
|
|
<span class="font-28"><!-- 继续保持积极乐观,培养健康的生活习惯,预防消极事件对情绪带来的不良影响。 -->{{ |
|
|
@@ -271,7 +271,7 @@ export default { |
|
|
|
psyList: [ |
|
|
|
{ name: "tiredness", text: "疲劳", value: 0 }, |
|
|
|
{ name: "stress", text: "压力", value: 1 }, |
|
|
|
{ name: "depression", text: this.$replaceAll('抑郁', '抑郁', '焦虑'), value: 2 }, |
|
|
|
{ name: "depression", text: this.$replaceAll('抑郁', '抑郁', '忧郁'), value: 2 }, |
|
|
|
], |
|
|
|
// 当前情绪下标 |
|
|
|
psyCurrent: 0, |
|
|
@@ -390,7 +390,7 @@ export default { |
|
|
|
computed: { |
|
|
|
anxietyText() { |
|
|
|
const appTypeList = ['1']; |
|
|
|
return appTypeList.indexOf(this.$store.getters.appType) > -1 ? `焦虑` : `抑郁` |
|
|
|
return appTypeList.indexOf(this.$store.getters.appType) > -1 ? `忧郁` : `抑郁` |
|
|
|
}, |
|
|
|
// 默认折线图配置,echarts 具体配置 见 https://echarts.apache.org/zh/option.html#title |
|
|
|
defaultOptions() { |
|
|
@@ -685,16 +685,16 @@ export default { |
|
|
|
/* return `正常连续佩戴手表,每半小时计算一个${this.emoName}分值,睡眠期间不进行计算。` */ |
|
|
|
}, |
|
|
|
title1() { |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title1, '抑郁', '焦虑') : '' |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title1, '抑郁', '忧郁') : '' |
|
|
|
}, |
|
|
|
article1() { |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article1, '抑郁', '焦虑') : '' |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article1, '抑郁', '忧郁') : '' |
|
|
|
}, |
|
|
|
title2() { |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title2, '抑郁', '焦虑') : '' |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title2, '抑郁', '忧郁') : '' |
|
|
|
}, |
|
|
|
article2() { |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article2, '抑郁', '焦虑') : '' |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article2, '抑郁', '忧郁') : '' |
|
|
|
}, |
|
|
|
// 当前情绪颜色 |
|
|
|
currentColor() { |
|
|
@@ -744,7 +744,7 @@ export default { |
|
|
|
loadParams() { |
|
|
|
let params = this.$route.query; |
|
|
|
if (params) { |
|
|
|
this.emoName = this.$replaceAll(EmotionModel[params.name].name, '抑郁', '焦虑'); |
|
|
|
this.emoName = this.$replaceAll(EmotionModel[params.name].name, '抑郁', '忧郁'); |
|
|
|
this.emoType = EmotionModel[params.name].type; |
|
|
|
this.uid = params.uid; |
|
|
|
this.routeDate = params.date; |
|
|
@@ -1278,7 +1278,7 @@ export default { |
|
|
|
// 点击情绪tab |
|
|
|
onPsyTabClick(name, index) { |
|
|
|
this.psyCurrent = index; |
|
|
|
this.emoName = this.$replaceAll(EmotionModel[name].name, '抑郁', '焦虑'); |
|
|
|
this.emoName = this.$replaceAll(EmotionModel[name].name, '抑郁', '忧郁'); |
|
|
|
this.currentEmoName = name; |
|
|
|
this.emoType = EmotionModel[name].type; |
|
|
|
console.log("this.currentDays", this.currentDays); |
|
|
@@ -1460,7 +1460,7 @@ export default { |
|
|
|
.replace(/-/g, ".") |
|
|
|
.replace(/~/g, "-"), |
|
|
|
recordId: item.RecordId, |
|
|
|
summary: this.$replaceAll(item.Summary, '抑郁', '焦虑'), |
|
|
|
summary: this.$replaceAll(item.Summary, '抑郁', '忧郁'), |
|
|
|
summaryLevel: item.SummaryLevel, |
|
|
|
type: this.emoType, |
|
|
|
}; |
|
|
|