Commit 5396833c by doszhang

dos

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