25793
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user