新增跳转房间

This commit is contained in:
Dragon
2023-11-14 19:03:47 +08:00
parent d163915162
commit 1d2800f798
2 changed files with 28 additions and 5 deletions

View File

@@ -38,21 +38,21 @@
<p class="text">­1钻=1闪耀值闪耀榜前三获得本次活动奖励</p>
<!-- 前三 -->
<div class="top3">
<div class="no1">
<div class="no no1">
<img src="./images/no1.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<p></p>
<span></span>
<b>闪耀值:<i>0</i></b>
</div>
<div class="no2">
<div class="no no2">
<img src="./images/no2.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<p></p>
<span></span>
<b>闪耀值:<i>0</i></b>
</div>
<div class="no3">
<div class="no no3">
<img src="./images/no3.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<p></p>

View File

@@ -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;
}
}
// 点击前三按钮
$('.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);
}
}
})