refactor(测试跟踪): 修改首页tips信息
This commit is contained in:
parent
c39c59c3c5
commit
bf529cc8b5
|
@ -3,7 +3,7 @@
|
|||
<el-header height="0">
|
||||
<div style="float: right">
|
||||
<div v-if="tipsType==='1'">
|
||||
🤔️ 天凉了,保温杯买了吗?
|
||||
{{ seasonTips }}
|
||||
</div>
|
||||
<div v-else-if="tipsType==='2'">
|
||||
😔 觉得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;
|
||||
|
|
Loading…
Reference in New Issue