Commit 51d68ce1 by doszhang

dos

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