master
liuxinxin 5 years ago
parent cbcc7f1f07
commit 77a2a01c02

@ -1426,7 +1426,6 @@ var GlobalJSignatureObjectInitializer = function(window){
return answer;
}
, 'getData' : function( formattype ) {
debugger;
var undef, $canvas=this.find('canvas.'+apinamespace).add(this.filter('canvas.'+apinamespace));
if (formattype === undef) {
formattype = 'default';

@ -65,10 +65,6 @@
<p>
<button class="btn btn-success" type="button" ng-click="submitContract()">确认签署</button>
</p>
<p>
<button class="btn btn-success" type="button" ui-sref="testSign">确认签署</button>
</p>
</table>
</div>
@ -80,13 +76,6 @@
<div style="z-index: 9999; position: fixed ! important; right: 85%; top: 20%;">
<table width=""100% style="position: absolute; width:260px; right: 0px; top: 0px;">
<input name="" type="button" ui-sref="testSign" style=" width:81px; height:39px; border:0; background:url(https://file.royalpay.com.au/open/2019/08/23/1566552615778_7vCo6vyDQ8Nf0uVLW9kI9jQSoIZKPK.png) no-repeat left top" />
</table>
</div>
<!--Title Start-->
<div>
<p><img class="col-sm-12" ng-src="https://file.royalpay.com.au/open/2019/08/23/1566528847626_ZRvrievyWEayhByRpkCDwV1P0k7FXt.png"></p>
@ -1132,11 +1121,9 @@
<tr>
<td width="24%">
<p><strong><strong>Signature of Director/Secretary:</strong></strong></p>
<span style="color:blue">(请在此签名 --></span>
</td>
<td width="38%">
<canvas id="myCanvas" width="200" height="100"></canvas>
<p><img id="img1" src="" class="col-sm-12"/></p>
</td>
<td width="38%">
<p></p>
@ -1145,7 +1132,7 @@
<tr>
<td>
<p><strong><strong>Print Full Name:</strong></strong></p>
<span style="color:blue">(请在此输入全名 --></span>
<span style="color:blue">(请在此输入全名)</span>
</td>
<td>
<input ng-bind="aggregateFileInfo.full_name" style="width:100%"/>
@ -1183,17 +1170,14 @@
</div>
</div>
</div>
<div clas="row">
<img id="img1" src="">
<div class="row">
<div class="container-fluid">
<div class="card-boxs widget-box-two widget-two-custom" style="overflow-x: auto;">
<span style="color:blue">(请在此签名)</span>
<div id="signatureparent" class="sign" >
<div id="signature" style="background-color: grey; lineWidth:5; color: black"></div>
</div>
<button onclick="reset()">重置</button><button onclick="ok()">ok</button>
</div>
</div>
</div>
@ -1211,12 +1195,9 @@
}
function ok() {
var x = $("#signature").jSignature('getData','image');
console.log(x);
document.getElementById("img1").src= x;
debugger
var sign = $("#signature").jSignature('getData','image');
document.getElementById("img1").src= 'data:'+sign[0]+','+sign[1];
}
</script>

Loading…
Cancel
Save