|
|
@@ -685,16 +685,16 @@ export default { |
|
|
|
/* return `正常连续佩戴手表,每半小时计算一个${this.emoName}分值,睡眠期间不进行计算。` */ |
|
|
|
}, |
|
|
|
title1() { |
|
|
|
return this.params.name ? EmotionModel[this.params.name].title1 : '' |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title1, '抑郁', '焦虑') : '' |
|
|
|
}, |
|
|
|
article1() { |
|
|
|
return this.params.name ? EmotionModel[this.params.name].article1 : '' |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article1, '抑郁', '焦虑') : '' |
|
|
|
}, |
|
|
|
title2() { |
|
|
|
return this.params.name ? EmotionModel[this.params.name].title2 : '' |
|
|
|
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title2, '抑郁', '焦虑') : '' |
|
|
|
}, |
|
|
|
article2() { |
|
|
|
return this.params.name ? 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 = 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; |
|
|
@@ -1274,7 +1274,7 @@ export default { |
|
|
|
// 点击情绪tab |
|
|
|
onPsyTabClick(name, index) { |
|
|
|
this.psyCurrent = index; |
|
|
|
this.emoName = EmotionModel[name].name; |
|
|
|
this.emoName = this.$replaceAll(EmotionModel[name].name, '抑郁', '焦虑'); |
|
|
|
this.currentEmoName = name; |
|
|
|
this.emoType = EmotionModel[name].type; |
|
|
|
console.log("this.currentDays", this.currentDays); |
|
|
|