|
@@ -108,7 +108,7 @@
|
|
|
|
|
|
<div slot="repetitive">
|
|
<div slot="repetitive">
|
|
<van-cell-group class="list_box" :border="false">
|
|
<van-cell-group class="list_box" :border="false">
|
|
- <van-cell v-for="(item, index) in list" style="border-bottom: 17px solid #F5F7FA;" :key="index" @click="repetitive_detail(item)">
|
|
|
|
|
|
+ <van-cell v-for="(item, index) in list" style="border-bottom: 17px solid #F5F7FA;" :key="index" @click="repetitive_detail(item)" v-bind:class="scheduleClassName(item)">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
<span class="title_name">{{ item.name }}</span>
|
|
<span class="title_name">{{ item.name }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -194,7 +194,7 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
hasData() {
|
|
hasData() {
|
|
return this.loading || (Array.isArray(this.list) && this.list.length > 0);
|
|
return this.loading || (Array.isArray(this.list) && this.list.length > 0);
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
// 方法
|
|
// 方法
|
|
methods: {
|
|
methods: {
|
|
@@ -321,7 +321,14 @@ export default {
|
|
// 时间对比
|
|
// 时间对比
|
|
date_contrast(date) {
|
|
date_contrast(date) {
|
|
return moment(this.date) > moment(date);
|
|
return moment(this.date) > moment(date);
|
|
|
|
+ },
|
|
|
|
+ scheduleClassName(schedule){
|
|
|
|
+ if (!schedule.schedule_expire_time) return "";
|
|
|
|
+ let now = new Date();
|
|
|
|
+ let expire_date = new Date(schedule.schedule_expire_time);
|
|
|
|
+ return now >= expire_date ? "schedule-expire" : "";
|
|
}
|
|
}
|
|
|
|
+
|
|
},
|
|
},
|
|
// 组件挂载完成
|
|
// 组件挂载完成
|
|
mounted() {
|
|
mounted() {
|
|
@@ -415,4 +422,9 @@ export default {
|
|
padding: 0;
|
|
padding: 0;
|
|
margin-right: 0.1rem;
|
|
margin-right: 0.1rem;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.schedule-expire{
|
|
|
|
+ background-color: oldlace;
|
|
|
|
+}
|
|
|
|
+
|
|
</style>
|
|
</style>
|