优化加载速度
This commit is contained in:
@@ -4,11 +4,12 @@ html {
|
|||||||
background: #CE3346;
|
background: #CE3346;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-bottom: 2.4rem;
|
padding-bottom: 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rabbit {
|
.rabbit {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
z-index: 99;
|
||||||
width: 1.33333rem;
|
width: 1.33333rem;
|
||||||
height: 1.33333rem;
|
height: 1.33333rem;
|
||||||
}
|
}
|
||||||
@@ -79,7 +80,6 @@ html {
|
|||||||
background: #8B4621;
|
background: #8B4621;
|
||||||
margin: -2.1rem auto 0;
|
margin: -2.1rem auto 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.box .boxTitle {
|
.box .boxTitle {
|
||||||
@@ -154,6 +154,7 @@ html {
|
|||||||
width: 2.24rem;
|
width: 2.24rem;
|
||||||
height: 3.42667rem;
|
height: 3.42667rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box .box_in .sBox .sBox1 {
|
.box .box_in .sBox .sBox1 {
|
||||||
@@ -330,6 +331,7 @@ html {
|
|||||||
height: 0.42667rem;
|
height: 0.42667rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.44rem;
|
top: 0.44rem;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resultOut .sqp_in1 {
|
.resultOut .sqp_in1 {
|
||||||
|
@@ -8,12 +8,12 @@ html {
|
|||||||
background: #CE3346;
|
background: #CE3346;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-bottom: px2rem(180);
|
padding-bottom: px2rem(120);
|
||||||
}
|
}
|
||||||
|
|
||||||
.rabbit {
|
.rabbit {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
// z-index: 99;
|
z-index: 99;
|
||||||
width: px2rem(100);
|
width: px2rem(100);
|
||||||
height: px2rem(100);
|
height: px2rem(100);
|
||||||
}
|
}
|
||||||
@@ -84,7 +84,7 @@ html {
|
|||||||
background: #8B4621;
|
background: #8B4621;
|
||||||
margin: -2.1rem auto 0;
|
margin: -2.1rem auto 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: none;
|
// display: none;
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
|
|
||||||
.boxTitle {
|
.boxTitle {
|
||||||
@@ -158,6 +158,7 @@ html {
|
|||||||
width: px2rem(168);
|
width: px2rem(168);
|
||||||
height: px2rem(257);
|
height: px2rem(257);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: none;
|
||||||
|
|
||||||
.sBox1 {
|
.sBox1 {
|
||||||
width: px2rem(168);
|
width: px2rem(168);
|
||||||
@@ -337,6 +338,7 @@ html {
|
|||||||
height: px2rem(32);
|
height: px2rem(32);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: px2rem(33);
|
top: px2rem(33);
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sqp_in1 {
|
.sqp_in1 {
|
||||||
|
@@ -235,7 +235,7 @@ function listItem (roundId) {
|
|||||||
$(`.box .box_in .item${i + 1} .sBox1 `).removeClass('sBox_active');
|
$(`.box .box_in .item${i + 1} .sBox1 `).removeClass('sBox_active');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$('.box').show();
|
$('.box .box_in .sBox').show();
|
||||||
} else {
|
} else {
|
||||||
toastMsg(res.message)
|
toastMsg(res.message)
|
||||||
}
|
}
|
||||||
@@ -268,6 +268,7 @@ function listLuckySeaActInfo (roundId) {
|
|||||||
$(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawName == '洋蔥' ? './images/1.png' : res.drawItemList[0].drawName == '番茄' ? './images/2.png' : res.drawItemList[0].drawName == '蘑菇' ? './images/3.png' : res.drawItemList[0].drawName == '土豆' ? './images/4.png' : res.drawItemList[0].drawName == '大閘蟹' ? './images/5.png' : res.drawItemList[0].drawName == '魚' ? './images/6.png' : res.drawItemList[0].drawName == '雞肉' ? './images/7.png' : res.drawItemList[0].drawName == '龍蝦' ? './images/8.png' : res.drawItemList[0].drawImageUrl);
|
$(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawName == '洋蔥' ? './images/1.png' : res.drawItemList[0].drawName == '番茄' ? './images/2.png' : res.drawItemList[0].drawName == '蘑菇' ? './images/3.png' : res.drawItemList[0].drawName == '土豆' ? './images/4.png' : res.drawItemList[0].drawName == '大閘蟹' ? './images/5.png' : res.drawItemList[0].drawName == '魚' ? './images/6.png' : res.drawItemList[0].drawName == '雞肉' ? './images/7.png' : res.drawItemList[0].drawName == '龍蝦' ? './images/8.png' : res.drawItemList[0].drawImageUrl);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$('.resultOut .sqp_in').show();
|
||||||
} else {
|
} else {
|
||||||
toastMsg(res.message)
|
toastMsg(res.message)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user