Commit f87c861e by doszhang

dos

parent 64f32d58
......@@ -298,6 +298,7 @@ function createPoster(callback) {
'width': pxToRem(canvasArr[resultType - 1][2]) / 2 + 'rem',
'height': pxToRem(canvasArr[resultType - 1][3]) / 2 + 'rem',
});
$('.posterImg').attr('src', 'http://maf.dev.izhida.cn/Public/static/image2/poster' + resultType + '.png');
let posterImg = new Image();
posterImg.src = 'http://maf.dev.izhida.cn/Public/static/image2/poster' + resultType + '.png';
posterImg.onload = function () {
......@@ -380,10 +381,10 @@ function submitAnswer() {
my_notify('海报生成中,请稍候', 9999999);
$('.question-page').hide();
$('.poster-page').show();
$('.posterImg').attr('src', 'http://maf.dev.izhida.cn/Public/static/image2/poster' + resultType + '.png');
// createPoster(function () {
// $('#notification_area').remove();
// });
createPoster(function () {
$('#notification_area').remove();
});
}, 1000);
}
}
......
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