|
|
@@ -7,7 +7,7 @@
|
|
|
}
|
|
|
}"
|
|
|
class="news-small"
|
|
|
- :class="{ isLight: type === 'light' }"
|
|
|
+ :class="[`news-${theme}`, type === 'light' ? 'isLight' : '']"
|
|
|
>
|
|
|
<van-image :src="getImg(info.pic)" :radius="12" width="120" height="120" fit="cover" />
|
|
|
|
|
|
@@ -16,14 +16,11 @@
|
|
|
<div class="flex1"></div>
|
|
|
<van-button type="primary" round plain size="mini"> 查看</van-button>
|
|
|
</div>
|
|
|
-
|
|
|
- <img class="bg" v-if="type === 'dark'" src="@assets/png-diwen2.png" alt="" />
|
|
|
- <img class="bg" v-else src="@assets/png-diwen3.png" alt="" />
|
|
|
- <!-- <img class="top-bg" v-if="time" src="@assets/collecbg.png" alt="" /> -->
|
|
|
</router-link>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mapState } from 'vuex';
|
|
|
import product from '../../mixins/product';
|
|
|
export default {
|
|
|
mixins: [product],
|
|
|
@@ -40,6 +37,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ ...mapState(['theme']),
|
|
|
time() {
|
|
|
if (this.info.startTime) {
|
|
|
if (this.dayjs().isSameOrBefore(this.info.startTime, 'YYYY-MM-DD HH:mm:ss')) {
|
|
|
@@ -144,8 +142,8 @@ export default {
|
|
|
|
|
|
.van-button {
|
|
|
width: 68px;
|
|
|
- --van-button-plain-background-color: var(--fadePrimlight);
|
|
|
- --van-button-primary-background-color: var(--primlight);
|
|
|
+ --van-button-plain-background-color: var(--fadePrim);
|
|
|
+ --van-button-primary-background-color: var(--prim);
|
|
|
--van-button-mini-font-size: 14px;
|
|
|
}
|
|
|
|
|
|
@@ -237,6 +235,17 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ &.news-theme4 {
|
|
|
+ .content {
|
|
|
+ .van-button {
|
|
|
+ width: 68px;
|
|
|
+ --van-button-plain-background-color: var(--fadePrimlight);
|
|
|
+ --van-button-primary-background-color: var(--primlight);
|
|
|
+ --van-button-mini-font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.status {
|