特殊调整

This commit is contained in:
aixianling
2021-12-31 17:23:43 +08:00
parent 477705690c
commit 9f12e9ba78
3 changed files with 17 additions and 16 deletions

View File

@@ -1,10 +1,6 @@
<template> <template>
<div class="AppCountryAlbum"> <div class="AppCountryAlbum">
<component <component v-if="refresh" :is="component" @change="onChange" :params="params"/>
:is="component"
@change="onChange"
:params="params">
</component>
</div> </div>
</template> </template>
@@ -19,28 +15,37 @@ export default {
data() { data() {
return { return {
component: 'List', component: 'List',
params: {} params: {},
refresh: true
} }
}, },
components: { Detail, List }, components: {Detail, List},
onShow() { onShow() {
document.title = "乡村相册" document.title = "乡村相册"
this.handleRefresh()
}, },
methods: { methods: {
onChange(e) { onChange(e) {
this.params = e.params this.params = e.params
this.component = e.type this.component = e.type
},
handleRefresh() {
this.refresh = false
this.$nextTick(() => {
this.refresh = true
})
} }
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
uni-page-body{ uni-page-body {
height: 100%; height: 100%;
} }
.AppCountryAlbum{
.AppCountryAlbum {
height: 100%; height: 100%;
} }
</style> </style>

View File

@@ -35,7 +35,7 @@ export default {
} }
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { created() {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getList() this.getList()
@@ -44,10 +44,6 @@ export default {
}) })
this.cdn = this.$cdn.replace("/dvcp/h5",""); this.cdn = this.$cdn.replace("/dvcp/h5","");
}, },
onShow() {
document.title = "乡村相册"
},
methods: { methods: {
areaSelect(e) { areaSelect(e) {
this.areaId = e this.areaId = e

View File

@@ -127,7 +127,7 @@ export default {
} }
return this.fullArea return this.fullArea
} }
}) }) || Promise.reject()
}, },
getChildAreas(id) { getChildAreas(id) {
id && this.$http.post('/admin/area/queryAreaByParentId', null, { id && this.$http.post('/admin/area/queryAreaByParentId', null, {