修改bug

dev3
wuwx 2024-03-15 17:34:17 +08:00
parent 9250e3592d
commit 0d2f1f8857
3 changed files with 10 additions and 7 deletions

View File

@ -372,14 +372,14 @@
if (this.signImg != "") {
this.baseImg(this.signImg, "1")
}
let hzzsImg = uni.getStorageSync('hzzsImg')
let hzzsImg = uni.getStorageSync('hzzsImg') || ""
if (hzzsImg != "") {
this.hzzsImg = uni.getStorageSync('hzzsImg')
}
if (this.isSign != "") {
this.isSign = uni.getStorageSync('isSign')
}
if (this.hzzsImg != "") {
if (hzzsImg != "") {
if (this.isSign) {
this.baseImg(this.hzzsImg, "2")
} else {
@ -387,7 +387,7 @@
this.initImg(this.zsBase, "6")
}
}
uni.removeStorageSync('hzzsImg')
},
onLoad(options) {
if ('params' in options) {
@ -754,6 +754,7 @@
let obj = {
imgUrl: this.zsBase
}
// console.log('this.zsBase',this.zsBase)
const params = encodeURIComponent(JSON.stringify(obj));
uni.navigateTo({
url: `/pages/quality/zsEdit?params=${params}`
@ -784,6 +785,7 @@
this.signBase = res.data
} else {
this.zsBase = res.data
// console.log('this.zsBase-----',this.zsBase);
}
}
})

View File

@ -50,6 +50,7 @@
// 使decodeURIComponent
this.imgUrl = JSON.parse(decodeURIComponent(options.params)).imgUrl
}
// console.log('this.imgUrl',this.imgUrl);
this.loginObj = uni.getStorageSync('loginObj')
if (this.imgUrl == "") {
this.handleReset()

View File

@ -200,10 +200,10 @@
}
const params = encodeURIComponent(JSON
.stringify(obj));
// uni.navigateTo({
// url: '/pages/receipt/details?params=' +
// params
// })
uni.redirectTo({
url: '/pages/receipt/details?params=' +
params
})
}
})
},