diff --git a/components/IndexCard.vue b/components/IndexCard.vue index 176fc6a..8bd62df 100644 --- a/components/IndexCard.vue +++ b/components/IndexCard.vue @@ -18,9 +18,8 @@ - - - + + @@ -97,10 +96,14 @@ const priceColor = computed(() => { return props.isRising ? "#00C853" : "#FF1744"; }); -// 计算图表背景色 -const chartBgColor = computed(() => { - return props.isRising ? "#E8F5E8" : "#FFEBEE"; +const timeChart = computed(() => { + return props.isRising ? "/static/marketSituation-image/upTimeChart.png" : "/static/marketSituation-image/downTimeChart.png"; }); + +// 计算图表背景色 +// const chartBgColor = computed(() => { +// return props.isRising ? "#E8F5E8" : "#FFEBEE"; +// }); diff --git a/static/marketSituation-image/downTimeChart.png b/static/marketSituation-image/downTimeChart.png new file mode 100644 index 0000000..52c7277 Binary files /dev/null and b/static/marketSituation-image/downTimeChart.png differ diff --git a/static/marketSituation-image/upTimeChart.png b/static/marketSituation-image/upTimeChart.png new file mode 100644 index 0000000..fdeed6c Binary files /dev/null and b/static/marketSituation-image/upTimeChart.png differ