diff --git a/feat-color.html b/feat-color.html index 063ba7a..e96c6ec 100644 --- a/feat-color.html +++ b/feat-color.html @@ -4,6 +4,7 @@ + 通信行程卡 - 纪念版 @@ -355,7 +356,7 @@ key: "time", name: "时间", type: 'input', - maxlength: 15, + maxlength: 25, more: ["2020.02.13 - 2022.12.13", "2020年 - 2022年", "停止于:2022.12.13 00:00:00", "更新于:2022.12.13 00:00:00"] }, { @@ -415,6 +416,18 @@ } return returnVal } + }, + mounted() { + this.$watch("card.type", (newVal, oldVal) => { + // console.log(oldVal, newVal) + let newColor = '' + switch (newVal) { + case 0: newColor = "#00A961"; break; + case 1: newColor = "#f7ba00"; break; + default: newColor = "#e43b00"; break; + } + document.getElementById('metaThemeColor').content = newColor + }); } }).mount('#app') diff --git a/feat-optimize.html b/feat-optimize.html index 9b51508..fc866fd 100644 --- a/feat-optimize.html +++ b/feat-optimize.html @@ -4,6 +4,7 @@ + 通信行程卡 - 纪念版 @@ -342,7 +343,7 @@ { key: "time", name: "当前时间", - maxlength: 15, + maxlength: 25, more: ["2020.02.13 - 2022.12.13", "2020年 - 2022年", "停止于:2022.12.13 00:00:00", "更新于:2022.12.13 00:00:00"] }, { diff --git a/index.html b/index.html index 1fa0d30..02a5904 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ + 通信行程卡 - 纪念版 @@ -327,7 +328,7 @@ { key: "time", name: "时间", - maxlength: 15, + maxlength: 25, more: ["2020.02.13 - 2022.12.13", "2020年 - 2022年", "停止于:2022.12.13 00:00:00", "更新于:2022.12.13 00:00:00"] }, {