This commit is contained in:
liuye
2021-12-22 19:11:23 +08:00
parent 11b73f8514
commit b6fe3d7e8e
11 changed files with 24 additions and 30 deletions

View File

@@ -9,8 +9,8 @@
</template>
<script>
import Detail from './components/detail'
import List from './components/list'
import Detail from './detail'
import List from './list'
export default {
name: 'AppCountryAlbum',

View File

@@ -44,18 +44,19 @@
<script>
import { mapState } from 'vuex'
export default {
props: ['params'],
data() {
return {
list: [],
limit: 9,
size: 10 * 1024 * 1024,
fileList: [],
numInfo: {}
numInfo: {},
params: {}
}
},
computed: { ...mapState(['user']) },
mounted() {
onLoad(option) {
this.params = option
console.log(this.params)
this.getList()
this.getStatistic()

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -57,15 +57,7 @@ export default {
})
},
toDetail(item) {
this.$emit('change', {
type: 'Detail',
params: {
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=${item.url}`})
},
},
onReachBottom() {

View File

@@ -9,9 +9,9 @@
</template>
<script>
import Add from './components/add'
import List from './components/list'
import MyAddList from './components/myAddList'
import Add from './add'
import List from './list'
import MyAddList from './myAddList'
export default {
name: 'AppMailList',

View File

@@ -69,13 +69,12 @@ export default {
}
},
computed: { ...mapState(['user']) },
created() {
onLoad(option) {
this.userInfo.areaId = this.user.areaId
this.userInfo.areaName = this.user.areaName
this.$dict.load('yesOrNo').then(() => {
if(this.params.id) {
console.log(122)
this.userInfo.id = this.params.id
if(option.id) {
this.userInfo.id = option.id
this.getDetail()
}
})

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -64,9 +64,10 @@ export default {
})
},
toAddList() {
this.$emit('change', {
type: 'MyAddList',
})
// this.$emit('change', {
// type: 'MyAddList',
// })
uni.navigateTo({url: `./myAddList`})
},
},
}

View File

@@ -51,12 +51,13 @@ export default {
})
},
edit(id) {
this.$emit('change', {
type: 'Add',
params: {
id: id,
}
})
// this.$emit('change', {
// type: 'Add',
// params: {
// id: id,
// }
// })
uni.navigateTo({url: `./add?id=${id}`})
},
del(item) {
this.$confirm("是否确认删除该发布信息?").then(() => {