diff --git a/view/yinmeng/activity/2023-anchorBattle/index.html b/view/yinmeng/activity/2023-anchorBattle/index.html index 02b7040..dadd354 100644 --- a/view/yinmeng/activity/2023-anchorBattle/index.html +++ b/view/yinmeng/activity/2023-anchorBattle/index.html @@ -38,21 +38,21 @@

­1钻=1闪耀值,闪耀榜前三获得本次活动奖励

-
+

闪耀值:0
-
+

闪耀值:0
-
+

diff --git a/view/yinmeng/activity/2023-anchorBattle/js/index.js b/view/yinmeng/activity/2023-anchorBattle/js/index.js index 65b538d..7dd031b 100644 --- a/view/yinmeng/activity/2023-anchorBattle/js/index.js +++ b/view/yinmeng/activity/2023-anchorBattle/js/index.js @@ -77,7 +77,7 @@ function getRank (rankType, date) { return } } - + countup(); dateArr[0] = dateFormat(res.timestamp - 86400000, 'yyyy-MM-dd'); dateArr[1] = dateFormat(res.timestamp, 'yyyy-MM-dd'); @@ -205,4 +205,27 @@ function getzf (num) { num = '0' + num; } return num; -} \ No newline at end of file +} +// 点击前三按钮 +$('.top3 .no1 .ts').on('click', function () { + var uid = $(this).attr('uid'); + if (browser.ios) { + window.webkit.messageHandlers.openRoom.postMessage(uid); + } else if (browser.android) { + if (androidJsObj && typeof androidJsObj === 'object') { + window.androidJsObj.openRoom(uid); + } + } +}) +// 点击非前三按钮 +$('.list').on('click', 'li .tx', function () { + var uid = $(this).attr('uid'); + if (browser.ios) { + window.webkit.messageHandlers.openRoom.postMessage(uid); + } else if (browser.android) { + if (androidJsObj && typeof androidJsObj === 'object') { + window.androidJsObj.openRoom(uid); + } + } + +}) \ No newline at end of file