This commit is contained in:
wanglei
2021-12-02 14:15:22 +08:00
parent 100b444bd2
commit 86b55bfe63

View File

@@ -8,7 +8,8 @@
<div class="card" v-for="(item,idx) in dataList" :key="idx" @click="handeClick(item)"> <div class="card" v-for="(item,idx) in dataList" :key="idx" @click="handeClick(item)">
<template v-if="!item.imgUrl"> <template v-if="!item.imgUrl">
<label> <label>
<b v-if="index==0 && item.readStatus==0"></b> <span class="status" v-if="index==0 && item.readStatus==0">未读</span>
<span class="status read" v-if="index==0 && item.readStatus!=0">已读</span>
<div class="tag" v-if="index==1" :style="color(item.status)"> <div class="tag" v-if="index==1" :style="color(item.status)">
{{ $dict.getLabel("announcementStatus", item.status) }} {{ $dict.getLabel("announcementStatus", item.status) }}
</div> </div>
@@ -137,6 +138,7 @@ export default {
methods: { methods: {
emitShow() { emitShow() {
const {id} = this.$route.query const {id} = this.$route.query
console.log(this.$route.query);
if (id) { if (id) {
this.comp = "detail"; this.comp = "detail";
this.params = { this.params = {
@@ -294,14 +296,21 @@ export default {
line-height: 44px; line-height: 44px;
} }
b { .status {
display: inline-block; display: inline-block;
font-style: normal; width: 88px;
width: 16px; height: 36px;
height: 16px; font-size: 26px;
border-radius: 50%; color: #FF8822;
background: #FF4466; background:rgba(255,136,34,.1);
margin-right: 8px; line-height: 36px;
text-align: center;
margin-right: 4px;
}
.read{
background: rgba(102,102,102,.1);
color: #666666;
} }
.tag { .tag {