|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
<div class="SilkRoadData">
|
|
|
- <van-image v-if="width" :width="width" :height="height" @load="load" :src="isOnlyDay" />
|
|
|
+ <div class="topImg" v-if="width">
|
|
|
+ <van-image :width="width" :height="height" @load="load" :src="isOnlyDay" />
|
|
|
+ <span class="days">{{ times.join(" 到 ") }}</span>
|
|
|
+ </div>
|
|
|
|
|
|
<van-cell-group inset>
|
|
|
<template #title> </template>
|
|
@@ -102,6 +105,7 @@ export default {
|
|
|
let times = (this.$route.params.time || '').split('+');
|
|
|
if(times.length > 1 && times[0] === times[1]) times = [times[0]];
|
|
|
this.times = times;
|
|
|
+ console.log(window.matchMedia('(prefers-color-scheme: dark)'))
|
|
|
if (this.times.length > 1)
|
|
|
this.isOnlyDay = require('@/assets/image/2023slcw.jpg');
|
|
|
else this.isOnlyDay = require('@/assets/image/2023slcw-day.jpg');
|
|
@@ -163,4 +167,15 @@ export default {
|
|
|
width: calc(100% - 56px);
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
+
|
|
|
+.SilkRoadData .topImg{
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.SilkRoadData .days{
|
|
|
+ position: absolute;
|
|
|
+ left: 5%;
|
|
|
+ top: 72%;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
</style>
|