【GFRS-3645】签字页面初始化时获取本地缓存信息

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-08-09 13:55:12 +08:00
parent 8164ff8fc7
commit 1bd368b684

View File

@@ -49,6 +49,12 @@
},
created(){
this.timeOut()
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
if (signInfo && signInfo.status == '0') {
this.isDisabledComplite = false
}else{
this.isDisabledComplite = true
}
},
mounted() {
let thispolicyUrl = "Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoMO3QJwd%2BpYNd%2BhiCehCCFibahgDp%2FtP6UD%0A6vy8eKAAs4hhrh0dSyUouHrBpcu%2FGM6VGLphInLPv0HGtHpZ3OhD"
@@ -111,48 +117,8 @@
},
},
computed: {
listenChange() {
const { isOver, radio, appntSign } = this
return { isOver, radio, appntSign }
}
},
watch: {
listenChange(val) {
let that = this
if (!that.isWeixin) {
if (that.signVal == '0' || that.signVal == '2') {
if (val.isOver == true && val.radio != '' && val.signStatus !== '3') {
that.isDisable = false
} else {
that.isDisable = true
}
if (that.radio == '1' && val.signStatus == '3') {
that.isDisabledComplite = false
} else {
that.isDisabledComplite = true
}
}
if (val.signStatus == '3') {
that.isDisable = true
}
} else {
if (that.signVal == '0' || that.signVal == '2') {
if (val.isOver == true && val.radio != '') {
that.isDisable = false
} else {
that.isDisable = true
}
if (that.radio == '1' && val.signStatus == '3') {
that.isDisabledComplite = false
} else {
that.isDisabledComplite = true
}
}
}
}
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()