This commit is contained in:
yanran200730
2022-05-30 17:55:58 +08:00
parent 2243e5b0d6
commit 3fbc6c336f
5 changed files with 74 additions and 53 deletions

View File

@@ -28,7 +28,8 @@
return {
component: 'WorkReport',
configList: [],
currIndex: 0
currIndex: 0,
albumId: ''
}
},
@@ -47,7 +48,8 @@
}
},
onLoad () {
onLoad (query) {
this.albumId = query.id || ''
this.getConfig()
},
@@ -71,7 +73,7 @@
if (res.code === 0) {
const data = this.configList[this.currIndex]
uni.navigateTo({
url: `./ReportImg?img=${res.data.url}&type=${data.watermarkType}&templateId=${data.id}`
url: `./ReportImg?albumId=${this.albumId}&img=${res.data.url}&type=${data.watermarkType}&templateId=${data.id}`
})
}