新增刷新按钮
This commit is contained in:
@@ -101,6 +101,14 @@ body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.page1 .update {
|
||||
width: 0.86667rem;
|
||||
height: 0.86667rem;
|
||||
position: fixed;
|
||||
right: 0.45rem;
|
||||
bottom: 0.45rem;
|
||||
}
|
||||
|
||||
.page1 .top {
|
||||
width: 100%;
|
||||
height: 1.2rem;
|
||||
|
@@ -108,6 +108,14 @@ body {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
.update {
|
||||
width: px2rem(65);
|
||||
height: px2rem(65);
|
||||
position: fixed;
|
||||
right: 0.45rem;
|
||||
bottom: 0.45rem;
|
||||
}
|
||||
|
||||
.top {
|
||||
// width: 8rem;
|
||||
width: 100%;
|
||||
|
BIN
view/peko/modules/act-wishingStar/images/update.png
Normal file
BIN
view/peko/modules/act-wishingStar/images/update.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1001 B |
@@ -60,6 +60,7 @@
|
||||
<img src="./images/wishIngBut.png" alt="" class="wishIngBut">
|
||||
</li>
|
||||
</ul>
|
||||
<img src="./images/update.png" alt="" class="update">
|
||||
</div>
|
||||
<!-- 页面2 -->
|
||||
<div class="page2">
|
||||
@@ -229,7 +230,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@@ -98,6 +98,10 @@ function getConfig () {
|
||||
}
|
||||
})
|
||||
}
|
||||
// 刷新接口
|
||||
$('.page1 .update').click(function(){
|
||||
getConfig();
|
||||
})
|
||||
// 购买魔法棒接口
|
||||
function getRank (type) {
|
||||
$('.page2 .listBox li').remove()
|
||||
@@ -163,15 +167,6 @@ $('.rule').click(function () {
|
||||
$('.rule').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 切换参与记录按钮
|
||||
$('.record .record_in .recordtab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.record .record_in .recordtab div').removeClass('act1').removeClass('act2');
|
||||
$(this).addClass(`act${i}`);
|
||||
$('.record .record_in .ul2,.record .record_in .ul1').hide();
|
||||
$(`.record .record_in .ul${i}`).show();
|
||||
return false;
|
||||
})
|
||||
var page = 1;
|
||||
var isLock = true;
|
||||
// 中奖记录接口
|
||||
@@ -269,6 +264,21 @@ $('.header .record_icon').click(function () {
|
||||
$('.record').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
// 切换参与记录按钮
|
||||
$('.record .record_in .recordtab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.record .record_in .recordtab div').removeClass('act1').removeClass('act2');
|
||||
$(this).addClass(`act${i}`);
|
||||
$('.record .record_in .ul2,.record .record_in .ul1').hide();
|
||||
console.log(i);
|
||||
if (i == 1) {
|
||||
listLuckyRecord(page)
|
||||
} else {
|
||||
listRoundRecord(page)
|
||||
}
|
||||
$(`.record .record_in .ul${i}`).show();
|
||||
return false;
|
||||
})
|
||||
// 监听滚动1
|
||||
$('.record .record_in .ul1').scroll(function () {
|
||||
let scrollTop = $(this).scrollTop()
|
||||
|
Reference in New Issue
Block a user