diff --git a/view/peko/modules/act-wishingStar/css/index.css b/view/peko/modules/act-wishingStar/css/index.css index 8b49ead..4983235 100644 --- a/view/peko/modules/act-wishingStar/css/index.css +++ b/view/peko/modules/act-wishingStar/css/index.css @@ -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; diff --git a/view/peko/modules/act-wishingStar/css/index.scss b/view/peko/modules/act-wishingStar/css/index.scss index f43cbc6..d2f4d36 100644 --- a/view/peko/modules/act-wishingStar/css/index.scss +++ b/view/peko/modules/act-wishingStar/css/index.scss @@ -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%; diff --git a/view/peko/modules/act-wishingStar/images/update.png b/view/peko/modules/act-wishingStar/images/update.png new file mode 100644 index 0000000..d7bf47d Binary files /dev/null and b/view/peko/modules/act-wishingStar/images/update.png differ diff --git a/view/peko/modules/act-wishingStar/index.html b/view/peko/modules/act-wishingStar/index.html index ef7479e..0552e94 100644 --- a/view/peko/modules/act-wishingStar/index.html +++ b/view/peko/modules/act-wishingStar/index.html @@ -60,6 +60,7 @@ +
@@ -229,7 +230,7 @@
- + diff --git a/view/peko/modules/act-wishingStar/js/index.js b/view/peko/modules/act-wishingStar/js/index.js index dfecc7f..c604354 100644 --- a/view/peko/modules/act-wishingStar/js/index.js +++ b/view/peko/modules/act-wishingStar/js/index.js @@ -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()