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