mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 23:16:43 +08:00
GFRS-3645调整与后端交互传递的数据结构
This commit is contained in:
@@ -204,7 +204,7 @@
|
|||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
//注:SignRule_KeyWord建议客户不要再使用,使用SignRule_KeyWordV2
|
//注: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);
|
var signatureConfig = new SignatureConfig(signer,signerRule);
|
||||||
//1:时间在上、2:时间在下、3:时间在右
|
//1:时间在上、2:时间在下、3:时间在右
|
||||||
@@ -212,7 +212,7 @@
|
|||||||
signatureConfig.timeTag = timeTag;
|
signatureConfig.timeTag = timeTag;
|
||||||
signatureConfig.singleWidth = 50;
|
signatureConfig.singleWidth = 50;
|
||||||
signatureConfig.singleHeight = 50;
|
signatureConfig.singleHeight = 50;
|
||||||
signatureConfig.title = "请代理人"+window.sessionStorage.getItem('signName')+"签字";
|
signatureConfig.title = "请"+window.sessionStorage.getItem('signName')+"签字";
|
||||||
signatureConfig.penColor = "#FF0000";
|
signatureConfig.penColor = "#FF0000";
|
||||||
signatureConfig.signature_stroke_width = 12;//签名笔划粗细
|
signatureConfig.signature_stroke_width = 12;//签名笔划粗细
|
||||||
signatureConfig.isTSS = true;//是否开始时间戳服务
|
signatureConfig.isTSS = true;//是否开始时间戳服务
|
||||||
@@ -317,8 +317,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
setAlertTitle();
|
setAlertTitle();
|
||||||
sessionStorage.setItem('signH5Val',val)
|
testGenData()
|
||||||
window.history.go(-1)
|
sessionStorage.setItem('signH5Img',val)
|
||||||
// alert("收到浏览器回调:" + "context_id:" + context_id + " context_type:" + context_type + " value:" + val);
|
// alert("收到浏览器回调:" + "context_id:" + context_id + " context_type:" + context_type + " value:" + val);
|
||||||
};//测试回调,将回调数据显示
|
};//测试回调,将回调数据显示
|
||||||
|
|
||||||
@@ -426,7 +426,9 @@
|
|||||||
var res = document.getElementById('result');
|
var res = document.getElementById('result');
|
||||||
try {
|
try {
|
||||||
res.value = apiInstance.getUploadDataGram();
|
res.value = apiInstance.getUploadDataGram();
|
||||||
alert("value"+res.value);
|
sessionStorage.setItem('signH5Val',res.value)
|
||||||
|
window.history.go(-1)
|
||||||
|
// alert("value"+res.value);
|
||||||
}
|
}
|
||||||
catch(err) {
|
catch(err) {
|
||||||
alert(err);
|
alert(err);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<van-button type='danger' size='small' :disabled="signBtnDisable" @click="sign" v-no-more-click='1000'>
|
<van-button type='danger' size='small' :disabled="signBtnDisable" @click="sign" v-no-more-click='1000'>
|
||||||
{{signInfo.status == '1' ? '签名' : '已签名' }}
|
{{signInfo.status == '1' ? '签名' : '已签名' }}
|
||||||
</van-button>
|
</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>
|
||||||
<div class='bg-white bottom-btn'>
|
<div class='bg-white bottom-btn'>
|
||||||
<van-button type='danger' size='large' :disabled='isDisabledComplite' @click='goNext' v-no-more-click='1000'>提交
|
<van-button type='danger' size='large' :disabled='isDisabledComplite' @click='goNext' v-no-more-click='1000'>提交
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
data() {
|
data() {
|
||||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||||
return {
|
return {
|
||||||
time:'10',
|
time:'2',
|
||||||
radio: '',
|
radio: '',
|
||||||
number: '',
|
number: '',
|
||||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||||
@@ -55,6 +55,7 @@
|
|||||||
signSuccessShow:false,
|
signSuccessShow:false,
|
||||||
signImgUrl:'data:image/gif;base64,',
|
signImgUrl:'data:image/gif;base64,',
|
||||||
signH5Val: '',
|
signH5Val: '',
|
||||||
|
signH5Img: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -84,14 +85,13 @@
|
|||||||
if(res.result == 0){
|
if(res.result == 0){
|
||||||
window.sessionStorage.setItem('signName',this.$store.getters.getYBname)
|
window.sessionStorage.setItem('signName',this.$store.getters.getYBname)
|
||||||
this.pdfUrl = config.assetsUpUrl + res.content.rgssUrl
|
this.pdfUrl = config.assetsUpUrl + res.content.rgssUrl
|
||||||
this.signH5Val = sessionStorage.getItem('signH5Val')
|
this.signH5Img = sessionStorage.getItem('signH5Img')
|
||||||
if(this.signH5Val){
|
if(this.signH5Img){
|
||||||
this.$set(this.signInfo, 'status', '2')
|
this.$set(this.signInfo, 'status', '2')
|
||||||
this.radio = '1'
|
this.radio = '1'
|
||||||
this.base64 = this.signH5Val
|
|
||||||
this.Time = true
|
this.Time = true
|
||||||
this.isOver = true
|
this.isOver = true
|
||||||
this.signImgUrl = this.signImgUrl + this.signH5Val
|
this.signImgUrl = this.signImgUrl + this.signH5Img
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
@@ -134,20 +134,20 @@
|
|||||||
window.location.href = 'http://'+window.location.host + '/signH5/1.html'
|
window.location.href = 'http://'+window.location.host + '/signH5/1.html'
|
||||||
},
|
},
|
||||||
goNext(){
|
goNext(){
|
||||||
this.signSuccessShow = true
|
// this.signSuccessShow = true
|
||||||
window.localStorage.removeItem('signInfo')
|
// window.localStorage.removeItem('signInfo')
|
||||||
// let params = {
|
let params = {
|
||||||
// uuid:this.$store.getters.getYBuuid,
|
uuid:this.$store.getters.getYBuuid,
|
||||||
// signInfo: window.sessionStorage.getItem('signH5Val')
|
signInfo: window.sessionStorage.getItem('signH5Val')
|
||||||
// }
|
}
|
||||||
// putContractInfo(params).then(res=>{
|
putContractInfo(params).then(res=>{
|
||||||
// if(res.result == 0){
|
if(res.result == 0){
|
||||||
// this.signSuccessShow = true
|
this.signSuccessShow = true
|
||||||
// window.localStorage.removeItem('signInfo')
|
window.localStorage.removeItem('signInfo')
|
||||||
// }else{
|
}else{
|
||||||
// this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user