Commit 91f31a25 by doszhang

dos

parent 265b076c
...@@ -362,6 +362,7 @@ function createPoster(callback) { ...@@ -362,6 +362,7 @@ function createPoster(callback) {
$('.posterImg').attr('src', 'http://maf.dev.izhida.cn/Public/static/image2/poster' + resultType + '.png'); $('.posterImg').attr('src', 'http://maf.dev.izhida.cn/Public/static/image2/poster' + resultType + '.png');
// if (!browser.versions.weixin) { // if (!browser.versions.weixin) {
if (0) { if (0) {
$('.dialog').hide();
posterStatus = true; posterStatus = true;
callback(); callback();
return false; return false;
...@@ -392,6 +393,7 @@ function createPoster(callback) { ...@@ -392,6 +393,7 @@ function createPoster(callback) {
txtDraw(posterCtx, '@' + window.nickname, designPxToRealPx(canvasArr[resultType - 1][5] + 128), designPxToRealPx(canvasArr[resultType - 1][4] + 84), designPxToRealPx(20), 'normal', canvasArr[resultType - 1][6]); txtDraw(posterCtx, '@' + window.nickname, designPxToRealPx(canvasArr[resultType - 1][5] + 128), designPxToRealPx(canvasArr[resultType - 1][4] + 84), designPxToRealPx(20), 'normal', canvasArr[resultType - 1][6]);
$('.posterImg').attr('src', getManBase64(posterCanvas)); $('.posterImg').attr('src', getManBase64(posterCanvas));
posterStatus = true; posterStatus = true;
$('.dialog').hide();
callback(); callback();
} }
} }
...@@ -457,6 +459,7 @@ function submitAnswer() { ...@@ -457,6 +459,7 @@ function submitAnswer() {
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft'); $('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft');
setTimeout(function () { setTimeout(function () {
$('.dialog').show();
$('.question' + nowQuestionIndex + '-block').removeClass('fadeoutleft').hide(); $('.question' + nowQuestionIndex + '-block').removeClass('fadeoutleft').hide();
$('#notification_area').remove(); $('#notification_area').remove();
my_notify('海报生成中,请稍候', 9999999); my_notify('海报生成中,请稍候', 9999999);
......
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