Compare commits

...

2 Commits

Author SHA1 Message Date
dragon
e1e9f97ae1 替换logo暂存 2024-06-24 16:11:55 +08:00
dragon
03dd7e47a6 修复榜单异常问题 2024-06-21 17:07:23 +08:00
8 changed files with 12 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 KiB

After

Width:  |  Height:  |  Size: 255 KiB

View File

@@ -178,7 +178,7 @@ function getRecord() {
success(res) {
if (res.code === 200) {
var str = '';
if (res.data.length == 0 && pageNumPk == 1) {
if (res.data.length == 0) {
lockPk = false;
} else {
res.data.forEach((res, i) => {

View File

@@ -59,5 +59,5 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./js/hourRankLicense.js"></script>
<script src="./js/hourRankLicense.js?v=1.0"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -88,9 +88,6 @@ const renderLastHourThree = () => {
}
let str = ''
lastHourRank.map((item, index) => {
if (item.score > 10000) {
item.score = (Math.floor(item.score / 1000)) / 10 + 'W'
}
str += `
<div class="top_three_item">
<div class="avatar" data-uid=${item.uid}>
@@ -101,7 +98,7 @@ const renderLastHourThree = () => {
<div class="num" style="display:${item.score === '' ? 'none' : 'block'}">
${index == 0 ?
'<img src="./images/single/first-icon.png" alt=""></img>' :
`<span>${item.score}</span><br>${langReplace(localLang.demoModule.hour_text8)}`
`<span>${unitProcessingAr(item.score,1)}</span><br>${langReplace(localLang.demoModule.hour_text8)}`
}
</div>
</div>
@@ -156,9 +153,6 @@ const renderCurrentList = () => {
}
let str = ''
currHourRank.map((item, index) => {
if (item.score > 10000) {
item.score = (Math.floor(item.score / 1000)) / 10 + 'W'
}
str += `
<li>
<div class="index">${index + 1}</div>
@@ -169,7 +163,7 @@ const renderCurrentList = () => {
<div class="others_num" style="display:${item.score === '' ? 'none' : 'block'}">
${index === 0 ?
`${langReplace(localLang.demoModule.hour_text10)}` :
`${langReplace(localLang.demoModule.hour_text8)}<br><span>${item.score}</span>`
`${langReplace(localLang.demoModule.hour_text8)}<br><span>${unitProcessingAr(item.score,1)}</span>`
}
</div>
</li>
@@ -184,11 +178,12 @@ const renderCurrentRoomInfo = () => {
currHourRank.forEach((item, index) => {
if (item.uid == currRoomInfo.uid) {
rank = index + 1
if (item.score > 10000) {
score = (Math.floor(item.score / 1000)) / 10 + 'W'
} else {
score = item.score
}
// if (item.score > 10000) {
// score = (Math.floor(item.score / 1000)) / 10 + 'W'
// } else {
// score = item.score
// }
score = unitProcessingAr(item.score,1)
}
})
$('.mine_index').html(rank ? rank : `${langReplace(localLang.demoModule.hour_text11)}`)

View File

@@ -26,8 +26,8 @@ langAr = {
// =============================房间榜==============================
roomImg1: './images/title-ar.png',
room_title: 'قائمة الغرفة',
room_text1: 'قائمة الحب',
room_text2: 'قائمة السحر',
room_text1: 'قائمة الأغنياء',
room_text2: 'قائمة الجاذبية',
room_text3: 'القائمة اليومية',
room_text4: 'القائمة الأسبوعية',
room_text5: 'القائمة الشهرية',