This commit is contained in:
liuye
2021-12-24 17:55:57 +08:00
parent 3317e09dd9
commit 73ba48aa95
5 changed files with 14 additions and 6 deletions

View File

@@ -179,7 +179,8 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast('提交成功') this.$u.toast('提交成功')
setTimeout(() => { setTimeout(() => {
uni.navigateBack({}) uni.navigateBack()
uni.$emit('update')
}, 600) }, 600)
} }
}) })

View File

@@ -168,6 +168,9 @@ export default {
'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => { 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
this.getBuilding() this.getBuilding()
}) })
uni.$on('update', () => {
this.getBuilding()
})
}, },
onShow() { onShow() {
document.title = "以房找人" document.title = "以房找人"

View File

@@ -51,7 +51,7 @@ export default {
size: 10 * 1024 * 1024, size: 10 * 1024 * 1024,
fileList: [], fileList: [],
numInfo: {}, numInfo: {},
params: {} params: {},
} }
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },

View File

@@ -12,7 +12,7 @@
</AiTopFixed> </AiTopFixed>
<div class="album-list"> <div class="album-list">
<div class="item" v-for="(item, index) in list" :key="index" v-if="item.total" @click="toDetail(item)"> <div class="item" v-for="(item, index) in list" :key="index" v-if="item.total" @click="toDetail(item)">
<img :src="item.url" alt=""> <img :src="`${cdn}/dvcp/album/album${item.type}.png`" alt="">
<p class="text">{{item.name}}</p> <p class="text">{{item.name}}</p>
<div class="tips">{{item.total}}</div> <div class="tips">{{item.total}}</div>
</div> </div>
@@ -30,7 +30,8 @@ export default {
return { return {
list: [], list: [],
areaId: '', areaId: '',
areaName: '' areaName: '',
cdn: ''
} }
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
@@ -41,6 +42,7 @@ export default {
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.getList() this.getList()
}) })
this.cdn = this.$cdn.replace("/dvcp/h5","");
}, },
onShow() { onShow() {
document.title = "乡村相册" document.title = "乡村相册"
@@ -64,7 +66,7 @@ export default {
}) })
}, },
toDetail(item) { toDetail(item) {
uni.navigateTo({url: `./detail?type=${item.type}&areaId=${this.areaId}&title=${item.name}&titleImgUrl=${item.url}`}) uni.navigateTo({url: `./detail?type=${item.type}&areaId=${this.areaId}&title=${item.name}&titleImgUrl=${this.cdn}/dvcp/album/album${item.type}.png`})
}, },
}, },
onReachBottom() { onReachBottom() {

View File

@@ -75,7 +75,6 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '居民活动'
this.$dict.load(['villageActivityStatus']).then(() => { this.$dict.load(['villageActivityStatus']).then(() => {
this.getList() this.getList()
}) })
@@ -84,6 +83,9 @@ export default {
this.getList() this.getList()
}) })
}, },
onShow() {
document.title = '居民活动'
},
mounted() {}, mounted() {},
methods: { methods: {
getList() { getList() {