This commit is contained in:
yanran200730
2022-05-27 09:18:51 +08:00
parent 94c725345d
commit f30a3e55f2
2 changed files with 20 additions and 16 deletions

View File

@@ -55,6 +55,7 @@
isShow: false,
list: [],
currIndex: 0,
isAdmin: false,
albumList: []
}
},
@@ -70,6 +71,7 @@
},
onLoad (query) {
this.isAdmin = !!this.$store.state.user.adminAuthType
this.id = query.id
this.getAlbumList()
@@ -80,7 +82,13 @@
methods: {
getList () {
this.$http.post(`/api/appalbumphoto/DetailByAlbumID?albumId=${this.id}&pageSize=100000`).then(res => {
this.$http.post(`/api/appalbumphoto/DetailByAlbumID`, null, {
params: {
albumId: this.id,
pageSize: 100000,
userId: this.isAdmin ? '' : this.$store.state.user.openId
}
}).then(res => {
if (res.code === 0) {
this.list = res.data.records.map(v => {
return {