Commit 4e032635 by doszhang

dos

parent 1951af22
......@@ -379,28 +379,22 @@ function showResult(event) {
success: function (resp) {
if (resp.status == 1) {
resultFlag = 10
setTimeout(function () {
$('.page7 .first-block').show();
createPosterLock = true;
}, 2000);
dialogFlag = 'first'
createPosterLock = true;
window.pt = '1'
} else {
setTimeout(function () {
$('.page7 .second-block').show();
createPosterLock = true;
}, 2000);
dialogFlag = 'second'
createPosterLock = true;
window.pt = '2'
}
createPoster(resultFlag)
createPoster(resultFlag, dialogFlag)
}
})
} else if (window.pt === '2') {
setTimeout(function () {
$('.page7 .second-block').show();
createPosterLock = true;
}, 2000);
createPosterLock = true;
window.pt = '2'
createPoster(resultFlag)
dialogFlag = 'second'
createPoster(resultFlag, dialogFlag)
} else {
createPoster(resultFlag)
......@@ -428,7 +422,7 @@ function retry() {
$('.poster-canvas').html('')
}
function createPoster(resultFlag) {
function createPoster(resultFlag, dialogFlag = false) {
$('#notification_area').remove();
my_notify('正在生成海报,请稍候', 60000);
......@@ -457,8 +451,14 @@ function createPoster(resultFlag) {
$('.posterimg').attr('src', getManBase64(posterCanvas));
$('.page').hide();
$('.page7').show();
$('#notification_area').remove();
if ($('.first-block').css('display') == 'none' && $('.second-block').css('display') == 'none') {
if (dialogFlag) {
setTimeout(function () {
$(`.page7 .${dialogFlag}-block`).show();
createPosterLock = true;
}, 1300);
} else {
$('#notification_area').remove();
my_notify('请长按页面保存海报');
}
$('#posterCanvas').css({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment