修改bug
parent
9250e3592d
commit
0d2f1f8857
|
@ -372,14 +372,14 @@
|
||||||
if (this.signImg != "") {
|
if (this.signImg != "") {
|
||||||
this.baseImg(this.signImg, "1")
|
this.baseImg(this.signImg, "1")
|
||||||
}
|
}
|
||||||
let hzzsImg = uni.getStorageSync('hzzsImg')
|
let hzzsImg = uni.getStorageSync('hzzsImg') || ""
|
||||||
if (hzzsImg != "") {
|
if (hzzsImg != "") {
|
||||||
this.hzzsImg = uni.getStorageSync('hzzsImg')
|
this.hzzsImg = uni.getStorageSync('hzzsImg')
|
||||||
}
|
}
|
||||||
if (this.isSign != "") {
|
if (this.isSign != "") {
|
||||||
this.isSign = uni.getStorageSync('isSign')
|
this.isSign = uni.getStorageSync('isSign')
|
||||||
}
|
}
|
||||||
if (this.hzzsImg != "") {
|
if (hzzsImg != "") {
|
||||||
if (this.isSign) {
|
if (this.isSign) {
|
||||||
this.baseImg(this.hzzsImg, "2")
|
this.baseImg(this.hzzsImg, "2")
|
||||||
} else {
|
} else {
|
||||||
|
@ -387,7 +387,7 @@
|
||||||
this.initImg(this.zsBase, "6")
|
this.initImg(this.zsBase, "6")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
uni.removeStorageSync('hzzsImg')
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if ('params' in options) {
|
if ('params' in options) {
|
||||||
|
@ -754,6 +754,7 @@
|
||||||
let obj = {
|
let obj = {
|
||||||
imgUrl: this.zsBase
|
imgUrl: this.zsBase
|
||||||
}
|
}
|
||||||
|
// console.log('this.zsBase',this.zsBase)
|
||||||
const params = encodeURIComponent(JSON.stringify(obj));
|
const params = encodeURIComponent(JSON.stringify(obj));
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/quality/zsEdit?params=${params}`
|
url: `/pages/quality/zsEdit?params=${params}`
|
||||||
|
@ -784,6 +785,7 @@
|
||||||
this.signBase = res.data
|
this.signBase = res.data
|
||||||
} else {
|
} else {
|
||||||
this.zsBase = res.data
|
this.zsBase = res.data
|
||||||
|
// console.log('this.zsBase-----',this.zsBase);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
// 获取传递的对象参数,使用decodeURIComponent解码,并转为对象
|
// 获取传递的对象参数,使用decodeURIComponent解码,并转为对象
|
||||||
this.imgUrl = JSON.parse(decodeURIComponent(options.params)).imgUrl
|
this.imgUrl = JSON.parse(decodeURIComponent(options.params)).imgUrl
|
||||||
}
|
}
|
||||||
|
// console.log('this.imgUrl',this.imgUrl);
|
||||||
this.loginObj = uni.getStorageSync('loginObj')
|
this.loginObj = uni.getStorageSync('loginObj')
|
||||||
if (this.imgUrl == "") {
|
if (this.imgUrl == "") {
|
||||||
this.handleReset()
|
this.handleReset()
|
||||||
|
|
|
@ -200,10 +200,10 @@
|
||||||
}
|
}
|
||||||
const params = encodeURIComponent(JSON
|
const params = encodeURIComponent(JSON
|
||||||
.stringify(obj));
|
.stringify(obj));
|
||||||
// uni.navigateTo({
|
uni.redirectTo({
|
||||||
// url: '/pages/receipt/details?params=' +
|
url: '/pages/receipt/details?params=' +
|
||||||
// params
|
params
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue