mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 02:46:45 +08:00
GFRS-3645调整与后端交互传递的数据结构
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
// }
|
||||
// })
|
||||
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