From 5c26420d8f341ae6b01053d6db8570906c608e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Sun, 18 Dec 2022 16:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E8=89=B2=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E7=A7=BB=E5=8A=A8=E7=AB=AFChrome=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A0=8F=E9=A2=9C=E8=89=B2=E8=B7=9F=E9=9A=8F=E5=8F=98?= =?UTF-8?q?=E5=8C=96=EF=BC=9BFix=20:=20=E6=97=B6=E9=97=B4=E8=B6=85?= =?UTF-8?q?=E8=BF=8715=E4=B8=AA=E5=AD=97=E7=AC=A6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 01746a1..94b7713 100644 --- a/index.html +++ b/index.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')