mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 19:46:43 +08:00
GFRS-3645调整与后端交互传递的数据结构
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<van-button type='danger' size='small' :disabled="signBtnDisable" @click="sign" v-no-more-click='1000'>
|
||||
{{signInfo.status == '1' ? '签名' : '已签名' }}
|
||||
</van-button>
|
||||
<img v-if="signH5Val" :src="signImgUrl" style="height: 34px;margin-left: 20px;width: auto;"/>
|
||||
<img v-if="signH5Img" :src="signImgUrl" 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'>提交
|
||||
@@ -39,7 +39,7 @@
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
return {
|
||||
time:'10',
|
||||
time:'2',
|
||||
radio: '',
|
||||
number: '',
|
||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||
@@ -55,6 +55,7 @@
|
||||
signSuccessShow:false,
|
||||
signImgUrl:'data:image/gif;base64,',
|
||||
signH5Val: '',
|
||||
signH5Img: ''
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -84,14 +85,13 @@
|
||||
if(res.result == 0){
|
||||
window.sessionStorage.setItem('signName',this.$store.getters.getYBname)
|
||||
this.pdfUrl = config.assetsUpUrl + res.content.rgssUrl
|
||||
this.signH5Val = sessionStorage.getItem('signH5Val')
|
||||
if(this.signH5Val){
|
||||
this.signH5Img = sessionStorage.getItem('signH5Img')
|
||||
if(this.signH5Img){
|
||||
this.$set(this.signInfo, 'status', '2')
|
||||
this.radio = '1'
|
||||
this.base64 = this.signH5Val
|
||||
this.Time = true
|
||||
this.isOver = true
|
||||
this.signImgUrl = this.signImgUrl + this.signH5Val
|
||||
this.signImgUrl = this.signImgUrl + this.signH5Img
|
||||
}
|
||||
}else{
|
||||
this.$toast(res.resultMessage)
|
||||
@@ -134,20 +134,20 @@
|
||||
window.location.href = 'http://'+window.location.host + '/signH5/1.html'
|
||||
},
|
||||
goNext(){
|
||||
this.signSuccessShow = true
|
||||
window.localStorage.removeItem('signInfo')
|
||||
// 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)
|
||||
// }
|
||||
// })
|
||||
// this.signSuccessShow = true
|
||||
// window.localStorage.removeItem('signInfo')
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user