refactor(测试跟踪): 修改首页tips信息

This commit is contained in:
BugKing 2021-05-27 10:51:43 +08:00
parent c39c59c3c5
commit bf529cc8b5
1 changed files with 11 additions and 2 deletions

View File

@ -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;