Commit 51d68ce1 by doszhang

dos

parent e1f6ed14
......@@ -138,8 +138,9 @@ function checkInfo() {
}
function createPoster(name, business) {
$('.page1').hide();
$('.poster-page').show();
$('#notification_area').remove();
my_notify('正在生成海报,请稍候', 60000);
let oldPosterIndex = nowPosterIndex;
nowPosterIndex = RandomNumBoth(1, 3, oldPosterIndex);
console.log('nowPosterIndex:', nowPosterIndex);
......@@ -164,8 +165,13 @@ function createPoster(name, business) {
posterCtx.drawImage(headimgObj, 170, 402, 87, 87);
drawUserInfo(name, business, 20, 'bolder');
drawNum();
setTimeout(function () {
$('.posterimg').attr('src', getManBase64(posterCanvas));
$('.page1').hide();
$('.poster-page').show();
$('#notification_area').remove();
}, 500);
}
}
}
......
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