diff --git a/public/signH5/1.html b/public/signH5/1.html index 2039a17c9..7ec8de376 100644 --- a/public/signH5/1.html +++ b/public/signH5/1.html @@ -204,7 +204,7 @@ * @constructor */ //注:SignRule_KeyWord建议客户不要再使用,使用SignRule_KeyWordV2 - var signerRule = new SignRule_KeyWordV2("甲方签字",130,1,1,1); + var signerRule = new SignRule_KeyWordV2("乙方(签字):",130,1,1,1); var signatureConfig = new SignatureConfig(signer,signerRule); //1:时间在上、2:时间在下、3:时间在右 @@ -212,7 +212,7 @@ signatureConfig.timeTag = timeTag; signatureConfig.singleWidth = 50; signatureConfig.singleHeight = 50; - signatureConfig.title = "请代理人"+window.sessionStorage.getItem('signName')+"签字"; + signatureConfig.title = "请"+window.sessionStorage.getItem('signName')+"签字"; signatureConfig.penColor = "#FF0000"; signatureConfig.signature_stroke_width = 12;//签名笔划粗细 signatureConfig.isTSS = true;//是否开始时间戳服务 @@ -317,8 +317,8 @@ } } setAlertTitle(); - sessionStorage.setItem('signH5Val',val) - window.history.go(-1) + testGenData() + sessionStorage.setItem('signH5Img',val) // alert("收到浏览器回调:" + "context_id:" + context_id + " context_type:" + context_type + " value:" + val); };//测试回调,将回调数据显示 @@ -426,7 +426,9 @@ var res = document.getElementById('result'); try { res.value = apiInstance.getUploadDataGram(); - alert("value"+res.value); + sessionStorage.setItem('signH5Val',res.value) + window.history.go(-1) + // alert("value"+res.value); } catch(err) { alert(err); diff --git a/src/views/ebiz/YB_agentSign/step2.vue b/src/views/ebiz/YB_agentSign/step2.vue index d6c9784c1..c7a0bb155 100644 --- a/src/views/ebiz/YB_agentSign/step2.vue +++ b/src/views/ebiz/YB_agentSign/step2.vue @@ -14,7 +14,7 @@ {{signInfo.status == '1' ? '签名' : '已签名' }} - +
提交 @@ -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: {