mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 15:56:43 +08:00
【GFRS-3645】修改电子签名页面代码默认执行逻辑
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
</van-radio-group>
|
||||
<div class='pt30 pl30 flex align-items-c'>
|
||||
<span class='mr10'>投保人签名 :</span>
|
||||
<van-button type='danger' size='small' :disabled="signVal == '1' ? true : isDisable" @click="sign" v-no-more-click='1000'>
|
||||
{{signStatus == '1' ? '签名' : '已签名' }}
|
||||
<van-button type='danger' size='small' :disabled="signBtnDisable" @click="sign" v-no-more-click='1000'>
|
||||
{{signInfo.status == '0' ? '签名' : '已签名' }}
|
||||
</van-button>
|
||||
</div>
|
||||
<div class='bg-white bottom-btn'>
|
||||
@@ -35,10 +35,12 @@
|
||||
pdfUrl: '',
|
||||
signVal: '2',
|
||||
base64: '',
|
||||
signStatus: '1',
|
||||
isDisable: true,
|
||||
signBtnDisable: true,
|
||||
isDisabledComplite:true,
|
||||
isOver: false,
|
||||
signInfo: {
|
||||
status: '0'
|
||||
},
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -51,9 +53,8 @@
|
||||
this.timeOut()
|
||||
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
||||
if (signInfo && signInfo.status == '0') {
|
||||
this.isDisabledComplite = false
|
||||
}else{
|
||||
this.isDisabledComplite = true
|
||||
this.base64 = sessionStorage.getItem('twoimgBase64Data')
|
||||
this.$set(this.signInfo, 'status', '1')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -100,24 +101,42 @@
|
||||
|
||||
},
|
||||
toAirSign(status, keyword, offset, originStatus) {
|
||||
localStorage.setItem(
|
||||
'signInfo',
|
||||
JSON.stringify({
|
||||
originStatus: originStatus,
|
||||
idNo: this.$store.getters.getYBidNo,
|
||||
name: this.$store.getters.getYBname,
|
||||
type: '1',
|
||||
keyword: keyword,
|
||||
status: status,
|
||||
offset: offset,
|
||||
originUrl: location.href
|
||||
})
|
||||
)
|
||||
let thisSignInfo = {
|
||||
originStatus: originStatus,
|
||||
idNo: this.$store.getters.getYBidNo,
|
||||
name: this.$store.getters.getYBname,
|
||||
type: '1',
|
||||
keyword: keyword,
|
||||
status: status,
|
||||
offset: offset,
|
||||
originUrl: location.href
|
||||
}
|
||||
localStorage.setItem('signInfo', JSON.stringify(thisSignInfo))
|
||||
window.location.href = this.$mainUrl + '/sign/index.html'
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
|
||||
listenChange() {
|
||||
const { isOver, radio, signInfo } = this
|
||||
return { isOver, radio, signInfo }
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
listenChange(val) {
|
||||
let that = this
|
||||
if (that.signVal == '0' || that.signVal == '2') {
|
||||
if (val.isOver == true && val.radio != '') {
|
||||
that.signBtnDisable = false
|
||||
} else {
|
||||
that.signBtnDisable = true
|
||||
}
|
||||
if (that.radio == '1' && val.signInfo.status == '1') {
|
||||
that.isDisabledComplite = false
|
||||
} else {
|
||||
that.isDisabledComplite = true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
document.body.style.backgroundColor = ''
|
||||
|
||||
Reference in New Issue
Block a user