3ds 流程优化

master
yixian 3 years ago
parent 9c0b95796d
commit 1d006ee9d8

@ -212,8 +212,18 @@
overflow: auto; overflow: auto;
} }
.threeds-container .dialog>.title{
width: 100%;
display: block;
padding: 5px;
background: #ff6633;
color: white;
font-size: 1.2em;
}
.threeds-container .dialog>iframe{ .threeds-container .dialog>iframe{
border: none; border: none;
width: 100%; width: 100%;
height: 400px;
} }

@ -16,7 +16,7 @@ $(function () {
$('<input>').attr('name', 'TermUrl').val(threeDsParams.term_url).attr('type', 'hidden').appendTo(form); $('<input>').attr('name', 'TermUrl').val(threeDsParams.term_url).attr('type', 'hidden').appendTo(form);
$('body').append(form); $('body').append(form);
window.threeds_success = function (success, errorCode, errorMsg) { window.threeds_success = function (success, errorCode, errorMsg) {
$('#threeds-frame').addClass('hide'); $('.threeds-container').addClass('hide');
if (success) { if (success) {
location.href = './result' location.href = './result'
} else { } else {
@ -24,7 +24,7 @@ $(function () {
} }
} }
form.submit(); form.submit();
$('#threeds-frame').removeClass('hide') $('.threeds-container').removeClass('hide')
} }
cardFrame.onSuccess = function (secretData) { cardFrame.onSuccess = function (secretData) {

Loading…
Cancel
Save