Commit 5b0d9df7 by doszhang

dos

parent 3b3c10ce
...@@ -21,6 +21,7 @@ body { ...@@ -21,6 +21,7 @@ body {
.page7 .posterimg { .page7 .posterimg {
position: fixed; position: fixed;
z-index: 2; z-index: 2;
opacity: 0;
} }
.page7 .btn-retry { .page7 .btn-retry {
...@@ -121,6 +122,10 @@ body { ...@@ -121,6 +122,10 @@ body {
top: -100%; top: -100%;
} }
canvas {
display: none;
}
.leaves-1 { .leaves-1 {
background: url('../image2/leaves-1.png') left top no-repeat; background: url('../image2/leaves-1.png') left top no-repeat;
width: 71px; width: 71px;
......
...@@ -229,7 +229,8 @@ function retry() { ...@@ -229,7 +229,8 @@ function retry() {
updateWorld() updateWorld()
showItemStatus = false showItemStatus = false
nowShowIndex = 1 nowShowIndex = 1
$('.title,.toast1,.toast2').hide() $('.title,.toast1,.toast2').hide();
$('.poster-canvas').html('')
} }
function createPoster(resultFlag) { function createPoster(resultFlag) {
...@@ -252,10 +253,15 @@ function createPoster(resultFlag) { ...@@ -252,10 +253,15 @@ function createPoster(resultFlag) {
drawNum(resultFlag); drawNum(resultFlag);
}, 100); }, 100);
setTimeout(function () { setTimeout(function () {
$('.guard').css({
background: `url("/Public/static/image2/result-${resultFlag}.png") left top no-repeat`,
backgroundSize: '100% 100%'
})
$('.poster-canvas').append('<img class="posterimg" />'); $('.poster-canvas').append('<img class="posterimg" />');
$('.posterimg').attr('src', getManBase64(posterCanvas)); $('.posterimg').attr('src', getManBase64(posterCanvas));
$('.page').hide(); $('.page').hide();
$('.page7').show(); $('.page7').show();
`1 `
$('#notification_area').remove(); $('#notification_area').remove();
my_notify('请长按页面保存海报'); my_notify('请长按页面保存海报');
$('#posterCanvas').css({ $('#posterCanvas').css({
......
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