Commit 77fc697c by doszhang

dos

parent 16f9b051
...@@ -51,29 +51,29 @@ if ($('div').length > 0) { ...@@ -51,29 +51,29 @@ if ($('div').length > 0) {
$('.loading-page .loading-gif-block').append('<img class="loading-gif" src="' + picUrl + 'loading.gif" />'); $('.loading-page .loading-gif-block').append('<img class="loading-gif" src="' + picUrl + 'loading.gif" />');
$('.loading-page').show(); $('.loading-page').show();
preloadimages(preloadImageList, function () { preloadimages(preloadImageList, function () {
if (browser.versions.weixin) { // if (browser.versions.weixin) {
let musicTime = setInterval(function () { // let musicTime = setInterval(function () {
if ($('#music')[0].currentTime > 0) { // if ($('#music')[0].currentTime > 0) {
$('.loading-page').fadeOut(); // $('.loading-page').fadeOut();
$('.home-page').fadeIn(300); // $('.home-page').fadeIn(300);
$('.home-page .btn-next').addClass('animate'); // $('.home-page .btn-next').addClass('animate');
$('.wrap-inner').prepend($('<div class="font">1</div>')); // $('.wrap-inner').prepend($('<div class="font">1</div>'));
clearInterval(musicTime); // clearInterval(musicTime);
} // }
}, 100); // }, 100);
} else { // } else {
$('.loading-page').fadeOut(); // $('.loading-page').fadeOut();
$('.home-page').fadeIn(300); // $('.home-page').fadeIn(300);
$('.home-page .candle-block').addClass('animate'); // $('.home-page .candle-block').addClass('animate');
$('.home-page .btn-next').addClass('animate'); // $('.home-page .btn-next').addClass('animate');
$('.wrap-inner').prepend($('<div class="font">1</div>')); // $('.wrap-inner').prepend($('<div class="font">1</div>'));
} // }
//海报测试逻辑 //海报测试逻辑
// $('.loading-page').fadeOut(); $('.loading-page').fadeOut();
// $('.wrap-inner').prepend($('<div class="font">1</div>')); $('.wrap-inner').prepend($('<div class="font">1</div>'));
// showPosterPage(); showPosterPage();
// createPoster(); createPoster();
}, function (progress) { }, function (progress) {
$('.loading-page .loading-text').text(Math.floor(progress * 100) + '%'); $('.loading-page .loading-text').text(Math.floor(progress * 100) + '%');
...@@ -243,9 +243,9 @@ countDownCtx = canvasinfo[1]; ...@@ -243,9 +243,9 @@ countDownCtx = canvasinfo[1];
//海报测试变量 //海报测试变量
// flagStack = flag; flagStack = flag;
// checkedDecorate = 'http://ccb-lantern.dev.izhida.cn/Public/static/image2/decorate1.png'; checkedDecorate = 'http://ccb-lantern.dev.izhida.cn/Public/static/image2/decorate1.png';
// signature = "张三"; signature = "张三";
...@@ -525,7 +525,7 @@ function createPoster() { ...@@ -525,7 +525,7 @@ function createPoster() {
//绘制tip //绘制tip
let tip = new Image(); let tip = new Image();
tip.src = "/Public/static/image2/poster-bottomhalf.png"; tip.src = "/Public/static/image2/poster-tip.png";
tip.onload = function () { tip.onload = function () {
posterCtx.drawImage(tip, pxToRem(117 * 2), (bottomHalfTop + pxToRem(153)) * 2, pxToRem(61 * 2), pxToRem(28 * 2)); posterCtx.drawImage(tip, pxToRem(117 * 2), (bottomHalfTop + pxToRem(153)) * 2, pxToRem(61 * 2), pxToRem(28 * 2));
} }
......
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