master
yixian 6 years ago
parent 78063f28be
commit 9557a11de8

@ -125,7 +125,7 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
background: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .8);
display: block; display: block;
} }
.loading-container.hide{ .loading-container.hide{
@ -135,13 +135,16 @@
.loading-container > .loading-box { .loading-container > .loading-box {
position: relative; position: relative;
margin: auto; margin: auto;
background: #fff; top: 50%;
transform: translateY(-50%);
} }
.loading-container > .loading-box > .loading-text { .loading-container > .loading-box > .loading-text {
display: block; display: block;
text-align: center; text-align: center;
font-size: 2em; font-size: 2em;
color: #aaa;
text-shadow: 2px -1px 4px;
} }
.loading-container .loading { .loading-container .loading {
@ -156,7 +159,7 @@
width: 20px; width: 20px;
height: 20px; height: 20px;
border-radius: 100%; border-radius: 100%;
background-color: #3498db; background-color: #ff6600;
margin: 35px 5px; margin: 35px 5px;
opacity: 0; opacity: 0;
} }

@ -6,7 +6,6 @@ $(function () {
let loading = $('.loading-container'); let loading = $('.loading-container');
cardFrame.onSuccess = function (secretData) { cardFrame.onSuccess = function (secretData) {
ctrl.pending = true; ctrl.pending = true;
loading.find('.loading-text').text('Paying...');
loading.removeClass('hide'); loading.removeClass('hide');
$.ajax({ $.ajax({
url: 'commit', url: 'commit',

Loading…
Cancel
Save