mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 19:16:43 +08:00
信手书插件调整
This commit is contained in:
@@ -14,17 +14,27 @@
|
||||
<van-button type='danger' size='small' :disabled="signBtnDisable" @click="sign" v-no-more-click='1000'>
|
||||
{{signInfo.status == '1' ? '签名' : '已签名' }}
|
||||
</van-button>
|
||||
<img :src="asddsa" style="height: 34px;margin-left: 20px;width: auto;"/>
|
||||
</div>
|
||||
<div class='bg-white bottom-btn'>
|
||||
<van-button type='danger' size='large' :disabled='isDisabledComplite' @click='goNext' v-no-more-click='1000'>提交
|
||||
</van-button>
|
||||
</div>
|
||||
<van-popup v-model="signSuccessShow" :close-on-click-overlay="false" round>
|
||||
<div style="width: 300px;height: 150px;text-align: center;">
|
||||
<div style="margin-top: 30px;font-size: 20px;">提交结果</div>
|
||||
<div style="margin-top: 30px;font-size: 16px;display: flex;justify-content: center;align-items: center;">
|
||||
<img src="@/assets/images/ebiz/radio-active.png" style="width: 25px;height: 25px;"/>
|
||||
<span style="margin-left: 15px;">签署成功</span>
|
||||
</div>
|
||||
</div>
|
||||
</van-popup>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
||||
import config from '@/config'
|
||||
import { generateAgreementYB } from '@/api/ebiz/YB_agentSign/YB_agentSign'
|
||||
import { generateAgreementYB, putContractInfo } from '@/api/ebiz/YB_agentSign/YB_agentSign'
|
||||
export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
@@ -42,6 +52,8 @@
|
||||
signInfo: {
|
||||
status: '1'
|
||||
},
|
||||
signSuccessShow:false,
|
||||
asddsa:'data:image/gif;base64,'
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -70,17 +82,14 @@
|
||||
this.$toast.clear()
|
||||
if(res.result == 0){
|
||||
this.pdfUrl = config.assetsUpUrl + res.content.rgssUrl
|
||||
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
||||
let wxSigned = JSON.parse(sessionStorage.getItem('twowxSigned'))
|
||||
let twoimgBase64Data = JSON.parse(sessionStorage.getItem('twowxSigned'))
|
||||
if (signInfo && signInfo.status == '0') {
|
||||
if(wxSigned){
|
||||
this.$set(this.signInfo, 'status', '2')
|
||||
this.radio = '1'
|
||||
if(twoimgBase64Data){
|
||||
this.base64 = twoimgBase64Data
|
||||
}
|
||||
}
|
||||
let signH5Val = sessionStorage.getItem('signH5Val')
|
||||
if(signH5Val){
|
||||
this.$set(this.signInfo, 'status', '2')
|
||||
this.radio = '1'
|
||||
this.base64 = signH5Val
|
||||
this.Time = true
|
||||
this.isOver = true
|
||||
this.asddsa = this.asddsa + signH5Val
|
||||
}
|
||||
}else{
|
||||
this.$toast(res.resultMessage)
|
||||
@@ -120,25 +129,24 @@
|
||||
}, 1000)
|
||||
},
|
||||
sign() {
|
||||
this.toAirSign('0', '签字日期', '-150', '2')
|
||||
window.location.href = 'http://'+window.location.host + '/signH5/1.html'
|
||||
},
|
||||
goNext(){
|
||||
this.signSuccessShow = true
|
||||
window.localStorage.removeItem('signInfo')
|
||||
},
|
||||
toAirSign(status, keyword, offset, originStatus) {
|
||||
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'
|
||||
},
|
||||
// let params = {
|
||||
// uuid:this.$store.getters.getYBuuid,
|
||||
// signInfo: window.sessionStorage.getItem('signH5Val')
|
||||
// }
|
||||
// putContractInfo(params).then(res=>{
|
||||
// if(res.result == 0){
|
||||
// this.signSuccessShow = true
|
||||
// window.localStorage.removeItem('signInfo')
|
||||
// }else{
|
||||
// this.$toast(res.resultMessage)
|
||||
// }
|
||||
// })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listenChange() {
|
||||
@@ -146,6 +154,11 @@
|
||||
return { isOver, radio, signInfo }
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
window.sessionStorage.removeItem('signH5Val')
|
||||
document.body.style.backgroundColor = ''
|
||||
next()
|
||||
},
|
||||
watch: {
|
||||
listenChange(val) {
|
||||
let that = this
|
||||
@@ -162,10 +175,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
document.body.style.backgroundColor = ''
|
||||
next()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user