This commit is contained in:
花有清香月有阴
2021-12-23 17:08:22 +08:00
parent 9450e3457a
commit 10082b6be1
3 changed files with 17 additions and 5 deletions

View File

@@ -33,6 +33,8 @@
</div>
<img :src="item.url[0].url" alt="" />
<div class="hints" :style="{ background: item.status == 0 ? '#000000' : item.status == 1 ? '#42D784' : '#E4E4E4' }">{{ $dict.getLabel('villageActivityStatus', item.status) }}</div>
</template>
</AiCard>
</template>
@@ -73,7 +75,9 @@ export default {
},
watch: {},
onLoad() {
this.getList()
this.$dict.load(['villageActivityStatus']).then(() => {
this.getList()
})
},
mounted() {},
methods: {
@@ -96,7 +100,6 @@ export default {
this.datas.map((item) => {
if (item.url) {
item.url = JSON.parse(item.url || '[]')
console.log(item.url)
}
return item
})
@@ -199,9 +202,21 @@ uni-page-body {
}
}
img {
position: relative;
width: 182px;
height: 182px;
}
.hints {
position: absolute;
right: 52px;
width: 96px;
height: 44px;
font-size: 26px;
color: #ffffff;
line-height: 44px;
text-align: center;
}
}
}
}