Commit 5396833c by doszhang

dos

parent 2c921e8b
......@@ -216,6 +216,8 @@ let posterCtx;
let homeNext = true;
//page1 next
let page1Next = true;
//suggest next
let suggestNext = true;
let wrapNum = 0;
......@@ -577,32 +579,34 @@ function showPosterPage() {
}
function showCountDownPage() {
// $('.suggest-page input[name=signature]').val('张三');
let val = $('.suggest-page input[name=signature]').val();
if (val.match(/^\s*$/)) {
$('#notification_area').remove();
my_notify('请填写名字');
return false;
}
$('.countdown-page').css('background', bgColor);
createPoster();
if (suggestNext) {
suggestNext = false;
let val = $('.suggest-page input[name=signature]').val();
if (val.match(/^\s*$/)) {
$('#notification_area').remove();
my_notify('请填写名字');
return false;
}
$('.countdown-page').css('background', bgColor);
createPoster();
$('.countdown-page').show();
$('.suggest-page .suggest-wrap').addClass('animate');
signature = val;
$('.countdown-page').show();
$('.suggest-page .suggest-wrap').addClass('animate');
signature = val;
setTimeout(function () {
$('.suggest-page').fadeOut(300);
countDown(function () {
$('.countdown-page').fadeOut(300);
$('.effect-page').css('background', bgColor).show();
setTimeout(function () {
showPosterPage();
$('#notification_area').remove();
my_notify('长按可保存图片哦');
}, 2000);
});
}, 999);
setTimeout(function () {
$('.suggest-page').fadeOut(300);
countDown(function () {
$('.countdown-page').fadeOut(300);
$('.effect-page').css('background', bgColor).show();
setTimeout(function () {
showPosterPage();
$('#notification_area').remove();
my_notify('长按可保存图片哦');
}, 2000);
});
}, 999);
}
}
function countDown(callback) {
......
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