diff --git a/frontend/src/business/components/track/home/TrackHome.vue b/frontend/src/business/components/track/home/TrackHome.vue index 39c2a35143..a6f8b0f7e6 100644 --- a/frontend/src/business/components/track/home/TrackHome.vue +++ b/frontend/src/business/components/track/home/TrackHome.vue @@ -3,7 +3,7 @@
- 🤔️ 天凉了,保温杯买了吗? + {{ seasonTips }}
😔 觉得MeterSphere不好用就来 @@ -101,7 +101,8 @@ export default { result: {}, trackCountData: {}, relevanceCountData: {}, - caseOption: {} + caseOption: {}, + seasonTips: "😊 MeterSphere温馨提醒 —— 多喝热水哟!", } }, activated() { @@ -117,6 +118,14 @@ export default { checkTipsType() { let random = Math.floor(Math.random() * (4 - 1 + 1)) + 1; this.tipsType = random + ""; + + let today = new Date(); + let month = today.getMonth(); + if (9 > month > 4) { + this.seasonTips = "🤔️ 天凉了,保温杯买了吗?"; + } else { + this.seasonTips = "🤔️天热了,小风扇买了吗?"; + } }, init() { let selectProjectId = this.projectId;