bug
@@ -9,8 +9,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Detail from './components/detail'
|
import Detail from './detail'
|
||||||
import List from './components/list'
|
import List from './list'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppCountryAlbum',
|
name: 'AppCountryAlbum',
|
||||||
|
|||||||
@@ -44,18 +44,19 @@
|
|||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
props: ['params'],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [],
|
list: [],
|
||||||
limit: 9,
|
limit: 9,
|
||||||
size: 10 * 1024 * 1024,
|
size: 10 * 1024 * 1024,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
numInfo: {}
|
numInfo: {},
|
||||||
|
params: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
mounted() {
|
onLoad(option) {
|
||||||
|
this.params = option
|
||||||
console.log(this.params)
|
console.log(this.params)
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getStatistic()
|
this.getStatistic()
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -57,15 +57,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toDetail(item) {
|
toDetail(item) {
|
||||||
this.$emit('change', {
|
uni.navigateTo({url: `./detail?type=${item.type}&areaId=${this.areaId}&title=${item.name}&titleImgUrl=${item.url}`})
|
||||||
type: 'Detail',
|
|
||||||
params: {
|
|
||||||
type: item.type,
|
|
||||||
areaId: this.areaId,
|
|
||||||
title: item.name,
|
|
||||||
titleImgUrl: item.url
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
@@ -9,9 +9,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Add from './components/add'
|
import Add from './add'
|
||||||
import List from './components/list'
|
import List from './list'
|
||||||
import MyAddList from './components/myAddList'
|
import MyAddList from './myAddList'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppMailList',
|
name: 'AppMailList',
|
||||||
|
|||||||
@@ -69,13 +69,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
created() {
|
onLoad(option) {
|
||||||
this.userInfo.areaId = this.user.areaId
|
this.userInfo.areaId = this.user.areaId
|
||||||
this.userInfo.areaName = this.user.areaName
|
this.userInfo.areaName = this.user.areaName
|
||||||
this.$dict.load('yesOrNo').then(() => {
|
this.$dict.load('yesOrNo').then(() => {
|
||||||
if(this.params.id) {
|
if(option.id) {
|
||||||
console.log(122)
|
this.userInfo.id = option.id
|
||||||
this.userInfo.id = this.params.id
|
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
@@ -64,9 +64,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toAddList() {
|
toAddList() {
|
||||||
this.$emit('change', {
|
// this.$emit('change', {
|
||||||
type: 'MyAddList',
|
// type: 'MyAddList',
|
||||||
})
|
// })
|
||||||
|
uni.navigateTo({url: `./myAddList`})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -51,12 +51,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
edit(id) {
|
edit(id) {
|
||||||
this.$emit('change', {
|
// this.$emit('change', {
|
||||||
type: 'Add',
|
// type: 'Add',
|
||||||
params: {
|
// params: {
|
||||||
id: id,
|
// id: id,
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
|
uni.navigateTo({url: `./add?id=${id}`})
|
||||||
},
|
},
|
||||||
del(item) {
|
del(item) {
|
||||||
this.$confirm("是否确认删除该发布信息?").then(() => {
|
this.$confirm("是否确认删除该发布信息?").then(() => {
|
||||||