feature GFRS-3645 一签多用 调整SignRule_KeyWordV2方法的参数结构

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-09-08 14:15:08 +08:00
parent c0d01f9f5a
commit ef3a45c7d1

View File

@@ -1,5 +1,5 @@
<html>
<head>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Access-Control-Allow-Origin" content="*">
@@ -96,8 +96,6 @@
</style>
<script language="JavaScript" type="text/JavaScript" charset="utf-8">
document.onreadystatechange = setAlertTitle;
var thiscasignindex = 0;
var thiscasigninfo = [];
var apiInstance;
var fileData;
var ocrCapture;
@@ -206,7 +204,7 @@
* @constructor
*/
//注SignRule_KeyWord建议客户不要再使用使用SignRule_KeyWordV2
var signerRule = new SignRule_KeyWordV2("乙方(签字):",130,1,1,1);
var signerRule = new SignRule_KeyWordV2("乙方(签字):",130,1,0,0);
var signatureConfig = new SignatureConfig(signer,signerRule);
//1:时间在上、2时间在下、3时间在右
@@ -428,17 +426,8 @@
var res = document.getElementById('result');
try {
res.value = apiInstance.getUploadDataGram();
thiscasigninfo.push(res.value)
sessionStorage.setItem('thiscasigninfo',JSON.stringify(thiscasigninfo))
sessionStorage.setItem('signH5Val',res.value)
if(thiscasignindex < 1){
testAnySign(112321321)
setTimeout(()=>{
show_agreement(21)
},100)
}
thiscasignindex++
// window.history.go(-1)
window.history.go(-1)
// alert("value"+res.value);
}
catch(err) {
@@ -583,9 +572,9 @@
show_agreement(21)
},100)
</script>
</head>
<body>
<div id="agreement_layer" style="width: 100%; height: 100%; z-index: 999; display: none; position: absolute; top: 0px; left: 0px;">
</head>
<body>
<div id="agreement_layer" style="width: 100%; height: 100%; z-index: 999; display: none; position: absolute; top: 0px; left: 0px;">
<div id="agreement_dialog" style="width: 80%; margin: 8% auto; border: 1px solid #666; background-color: #fff;">
<div id="agreement_header" style="height: 40px; border-bottom: 1px solid #666; font-size: 14px; line-height: 40px; padding-left: 5px; font-weight: 500;">
电子签名服务告知及签署多份文件提示
@@ -599,9 +588,9 @@
<input id="agreement_ok" type="button" style="font-size: 12px; line-height: 30px; color: #fff; background-color: #faa51a; border: 1px solid #faa51a; text-align: center; width: 100px; border-radius: 4px;" value="同意并继续" onclick="agreement_ok();">
</div>
</div>
</div>
</div>
<div id="comment_dialog" style=" display:none;position: fixed;">
<div id="comment_dialog" style=" display:none;position: fixed;">
<div id="leftView">
<p id="comment_title"></p>
<div id="signImage" class="signImagecss"></div>
@@ -615,9 +604,9 @@
<input id="comment_back" type="button" class="button orange" value="后退">
<input id="comment_cancel" type="button" class="button orange" value="取 消">
</div>
</div>
<!-- 单字签名 -->
<div id="single_dialog" style=" display:none;margin-top: 10px;">
</div>
<!-- 单字签名 -->
<div id="single_dialog" style=" display:none;margin-top: 10px;">
<div id="leftView">
<p id="anysign_title" style="padding-bottom: 20px;"></p>
<div style="position: relative;">
@@ -639,11 +628,11 @@
<div id="btnClear" class="button_new" >清空</div>
<div id="btnBack" class="button_new" style="float:right;" >后退</div>
</div>
</div>
</div>
<div id="dialog" style=" display:none;">
<div id="dialog" style=" display:none;">
<!-- 显示签名区域-->
<!-- <div id="anysign_title" style="color:#333333;" width="100%" height="10%">请投保人<span style="font-size:20pt;"> 李 明 </span>签名</div>-->
<!-- <div id="anysign_title" style="color:#333333;" width="100%" height="10%">请投保人<span style="font-size:20pt;"> 李 明 </span>签名</div>-->
<div id="container" onmousedown="return false;">
<canvas id="anysignCanvas" width="2"></canvas>
</div>
@@ -661,9 +650,9 @@
<input id="btnCancel" type="button" class="button orange" value="取 消" onclick="cancelSign();">
</div>
</div>
</div>
</div>
<div id="other" style="display: none;">
<div id="other" style="display: none;">
<input type="button" name="初始化接口" value="初始化接口" style="width: 180px" onclick="javascript:testAnySign(112321321);">
<br>
<br>
@@ -724,6 +713,6 @@
<br>
<input type="button" value="拷贝加密包" onclick="CopyText('result')" />
</center>
</div>
</body>
</div>
</body>
</html>