|
|
@@ -63,7 +63,7 @@ |
|
|
|
}}</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="status"> |
|
|
|
<div class="status" v-if="isShowCompare"> |
|
|
|
<img :src="calcImg(item.percentage, item.lastPercentage)" alt="" /> |
|
|
|
<span :style="{ |
|
|
|
color: |
|
|
@@ -126,8 +126,8 @@ |
|
|
|
item.days |
|
|
|
}}</span> |
|
|
|
<span class="day-text">天</span> |
|
|
|
<img :src="calcWeekImg(item.days, item.lastDay)" alt="" /> |
|
|
|
<span class="day-text status">{{ |
|
|
|
<img :src="calcWeekImg(item.days, item.lastDay)" alt="" v-if="isShowCompare" /> |
|
|
|
<span class="day-text status" v-if="isShowCompare">{{ |
|
|
|
calcWeekImg(item.days, item.lastDay, true) |
|
|
|
}}</span> |
|
|
|
</p> |
|
|
@@ -250,7 +250,7 @@ export default { |
|
|
|
weekResult: {}, |
|
|
|
upImg: require("@/assets/img/psychological/up.png"), |
|
|
|
downImg: require("@/assets/img/psychological/down.png"), |
|
|
|
|
|
|
|
isShowCompare: null, //是否显示周对比 |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
@@ -695,6 +695,7 @@ export default { |
|
|
|
this.weekResult.Summary = this.$replaceAll(data.Summary, '抑郁', '忧郁') |
|
|
|
this.weekResult.Advice = this.$replaceAll(data.Advice, '抑郁', '忧郁') |
|
|
|
this.emoName = this.calcTitle(data.Type); |
|
|
|
this.isShowCompare = data.LastweekData; |
|
|
|
} |
|
|
|
let None = { |
|
|
|
count: data.None, |
|
|
|