diff --git a/src/views/zhongchou/index.vue b/src/views/zhongchou/index.vue
index cb7e551..a813dee 100644
--- a/src/views/zhongchou/index.vue
+++ b/src/views/zhongchou/index.vue
@@ -40,7 +40,7 @@
-
+
距美股实时数据
还剩{{ numberToChinese(usDisplayTime) }}分钟
@@ -272,6 +272,11 @@ const usDisplayTime = computed(() => {
return Math.max(0, usRemainingTime.value)
})
+// 计算属性:判断剩余时间是否小于等于3分钟
+const isTimeAlmostUp = computed(() => {
+ return usRemainingTime.value <= 3
+})
+
// const hkDisplayTime = computed(() => {
// return Math.max(0, hkRemainingTime.value)
// })
@@ -679,6 +684,11 @@ const hideRules = () => {
flex-direction: column;
}
+/* 剩余时间小于等于3分钟时的样式 */
+.time-almost-up h3 {
+ color: #ff0000;
+}
+
/* 股票信息标题样式 */
.stock-info h3 {
margin: 5px 0;