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

@@ -187,11 +187,9 @@ export default {
confirm(e) {
if (this.showStartTime == true) {
console.log(1, e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00')
this.forms.beginTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
}
if (this.showEndTime == true) {
console.log(2, e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00')
this.forms.endTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
}
},

View File

@@ -39,7 +39,6 @@ export default {
}
},
onLoad(o) {
console.log(o)
this.id = o.id || ''
},
methods: {

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.$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;
}
}
}
}