合同制作

master
liuxinxin 5 years ago
parent 67318a4be1
commit 2bc48120f6

@ -1084,25 +1084,23 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload', 'uiBoo
commonDialog.alert({title: 'Commit Fail', content: 'Please confirm signature', type: 'error'});
return;
}
document.getElementById("waiting").src = "static/css/img/loading_contract.gif";
$scope.gray();
document.getElementById("loading_logo").style ="";
$scope.white();
var signFile = dataURLtoFile($scope.signInfo.src, $scope.signInfo.fullName);
$scope.logoProgress = {value: 0};
Upload.upload({
url: '/client/partner_info/clientCompliance/' + $scope.aggregateFileInfo.client_moniker + '/commit_aggregate_file',
data: {file: signFile}
}).then(function (resp) {
document.getElementById("waiting").src = '';
document.getElementById('loading').style.display = "none";
document.getElementById('tip').style.display = "none";
document.getElementById('loading_logo').style.display = "none";
delete $scope.logoProgress;
$state.go('basic.compliance_to_perfect', {reload: true});
window.open(resp.data.file_value, '_blank');
}, function (resp) {
delete $scope.logoProgress;
document.getElementById("waiting").src = '';
document.getElementById('loading').style.display = "none";
document.getElementById('tip').style.display = "none";
document.getElementById('loading_logo').style.display = "none";
commonDialog.alert({title: 'Commit Aggregate File Fail', content: resp.data.message, type: 'error'})
}, function (evt) {
$scope.logoProgress.value = parseInt(100 * evt.loaded / evt.total);
@ -1110,16 +1108,14 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload', 'uiBoo
};
$scope.gray = function () {
$scope.white=function(){
$("#loading").css({
"position": "absolute",    //绝对位置
"display": "block",    //让对象成为块级元素
"background-color": "gray",  //背景灰色
"z-index": "9999",  //最上层显示
"opacity": "0.5"  //背景透明度
"position":"absolute",    //绝对位置
"display":"block",    //让对象成为块级元素
"background-color":"white",  //背景白色
"z-index":"9999",  //最上层显示
"opacity":"0.7"  //背景透明度
});
document.getElementById('tip').style.display = "";
}
function dataURLtoFile(dataurl, filename) {//将base64转换为文件

@ -29,114 +29,92 @@
padding: 10px 50px;
}
#img1,#img2{width: 341px;height: 157px;}
#img2{width: 341px;height: 157px;}
.loading-tip-class{
width: 400px;
}
#img1{width: 341px;height: 85.2px;}
.load-class{
left: 40%;top: 30%;
}
@media (min-width:100px) and (max-width:399px){
#img1,#img2{width: 60px;height: 45px;}
#img2{width: 60px;height: 45px;}
#img1{width: 60px;height: 15px;}
.contract{font-size:1px;}
.return-class {
float: right;
font-size: 17px;
padding: 10px 0px;
}
.loading-class {
width: 60px;
height: 60px;
}
.loading-tip-class{
width: 200px;
}
.load-class{
left: 30%;top: 30%;
}
}
@media (min-width:400px) and (max-width:799px){
#img1,#img2{width: 160px;height: 75px;}
#img2{width: 160px;height: 75px;}
#img1{width: 160px;height: 40px;}
.contract{font-size:5px;}
.return-class {
float: right;
font-size: 17px;
padding: 10px 20px;
}
.loading-class {
width: 70px;
height: 70px;
}
.loading-tip-class{
width: 200px;
}
.load-class{
left: 33%;top: 30%;
}
}
@media (min-width:800px) and (max-width:1024px) {
#img1,#img2{width: 190px;height: 85px;}
#img2{width: 190px;height: 85px;}
#img1{width: 190px;height: 47.5px;}
.contract{font-size:10px;}
.return-class {
float: right;
font-size: 22px;
padding: 10px 20px;
}
.loading-class {
width: 80px;
height: 80px;
}
.loading-tip-class{
width: 200px;
}
.load-class{
left: 36%;top: 30%;
}
}
@media (min-width:1025px) and (max-width:1440px) {
#img1,#img2{width: 260px;height: 105px;}
#img2{width: 260px;height: 105px;}
#img1{width: 260px;height: 65px;}
.contract{font-size:15px;}
.return-class {
float: right;
font-size: 28px;
padding: 10px 30px;
}
.loading-class {
width: 90px;
height: 90px;
}
.loading-tip-class{
width: 300px;
}
.load-class{
left: 38%;top: 30%;
}
}
@media (min-width:1441px) and (max-width:1600px){
#img1,#img2{width: 341px;height: 157px;}
#img2{width: 341px;height: 157px;}
#img2{width: 341px;height: 85.2px;}
.contract{font-size:25px;}
.return-class {
float: right;
font-size: 34px;
padding: 10px 35px;
}
.loading-class {
width: 100px;
height: 100px;
}
.loading-tip-class{
width: 350px;
}
.load-class{
left: 39%;top: 30%;
}
}
div.polaroid {
text-align: center;
}
div.rotate_left {
position: fixed;
width: 200px;
margin: 0 -100px;
top: 20%;
left: 50%;
z-index: 9999999;
}
.dh {
animation: myfirst 1s linear 0s infinite alternate;
}
</style>
<div class="polaroid">
<div class="rotate_left" style="display: none" id="loading_logo">
<img class="dh" src="static/images/r_logo.svg" alt="RoyalPay" style="width:150px;height:150px;margin-top: 10%;margin-bottom: 10%;"/>
<p style="color: black;font-size: 15px;">The Contract Is In The Process Of Being Made</p>
</div>
</div>
<div id="loading" style="width:100%;height:100%;display:none"></div>
<div ui-view autoscroll="true" id = "all" class="contract">
<section class="content" style="background:#4F4F4F;">
@ -149,24 +127,12 @@
Go and sign it.
</button><i class="fa fa-back"></i>
<br/>
<!-- <p style="margin-top: 30px;">
<button class="btn btn-success" type="button" ng-click="submitContract()">Confirm signature</button>
</p>-->
</div>
<div id="back" style="z-index: 9999; position: fixed ! important; left: 0%;top: 40%;">
<button class="btn-warning return-class" ui-sref="basic.compliance_to_perfect"><i class="fa fa-reply"></i> Return</button>
</div>
<div style="z-index: 9999; position: fixed ! important;"class="load-class" >
<div style="text-align:center">
<img id="waiting" class="loading-class" src="" oncontextmenu="return false;" onselectstart="return false;"/>
<p id="tip"style="display:none;color: white;font-size: 150%;" class="loading-tip-class">The contract is in the process of being made</p>
</div>
</div>
<!--Title Start-->
<div>
<p><img class="col-sm-12" ng-src="https://file.royalpay.com.au/open/2019/08/23/1566528847626_ZRvrievyWEayhByRpkCDwV1P0k7FXt.png" style="width:100%; height:100%"></p>

Loading…
Cancel
Save