女王争夺战 - 修改规则文字加粗,更换奖励图
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 593 KiB After Width: | Height: | Size: 584 KiB |
@@ -139,7 +139,7 @@ function getConfig() {
|
||||
$(`.page1 .top .top${i + 1} .name b`).text(res.name);
|
||||
$(`.page1 .top .top${i + 1} .name img`).attr('src', res.userLevelVo ? res.userLevelVo.experUrl : './images/logo.png');
|
||||
$(`.page1 .top .top${i + 1} .id`).text('ID:' + res.erbanNo);
|
||||
$(`.page1 .top .top${i + 1} .score b`).text(unitProcessingAr(res.totalNum, 2));
|
||||
$(`.page1 .top .top${i + 1} .score b`).text(unitPro(res.totalNum, 2));
|
||||
if (res.erbanNo == null) {
|
||||
$(`.page1 .top .top${i + 1} .name img`).hide();
|
||||
$(`.page1 .top .top${i + 1} .id`).hide();
|
||||
@@ -155,7 +155,7 @@ function getConfig() {
|
||||
$('.page1 .my .info p b').text(my.name);
|
||||
$('.page1 .my .info p img').attr('src', res.data.myRank.userLevelVo.experUrl);
|
||||
$('.page1 .my .info span').text(`ID:${my.erbanNo}`);
|
||||
$('.page1 .my .score b').text(unitProcessingAr(my.totalNum, 2));
|
||||
$('.page1 .my .score b').text(unitPro(my.totalNum, 2));
|
||||
// 初始化设置
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
} else {
|
||||
@@ -191,7 +191,7 @@ function loadMore() {
|
||||
</div>
|
||||
<div class="score">
|
||||
<img src="./images/box.png" alt="">
|
||||
<b>${unitProcessingAr(res.totalNum, 2)}</b>
|
||||
<b>${unitPro(res.totalNum, 2)}</b>
|
||||
</div>
|
||||
</li>
|
||||
`
|
||||
@@ -289,4 +289,19 @@ $('.video .close').click(function () {
|
||||
video1.pause();
|
||||
bodyScroolFun(false);
|
||||
$('.video').hide();
|
||||
})
|
||||
})
|
||||
function unitPro(val, toFixeds) { //值 保留几位小数
|
||||
if (val < 1000) {
|
||||
return val;
|
||||
} else if (val >= 1000 && val < 1000000) {
|
||||
var num = val / 1000;
|
||||
// 截断而不是四舍五入
|
||||
var multiplier = Math.pow(10, toFixeds);
|
||||
return (Math.floor(num * multiplier) / multiplier).toFixed(toFixeds) + 'K';
|
||||
} else if (val >= 1000000) {
|
||||
var num = val / 1000000;
|
||||
// 截断而不是四舍五入
|
||||
var multiplier = Math.pow(10, toFixeds);
|
||||
return (Math.floor(num * multiplier) / multiplier).toFixed(toFixeds) + 'M';
|
||||
}
|
||||
}
|
@@ -20,7 +20,7 @@ langAr = {
|
||||
<p>3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!</p>
|
||||
<p>4 Coin rewards:coins corresponding to the ranking ratio. Example: TOP1 user on the ranking gave 1 million coins designated gift, and can get 15,000 coins as a reward.</p>
|
||||
<p>5 There is no upper limit, the more you give, the more you get.</p>
|
||||
<p>6 This activity is limited to female users.</p>
|
||||
<p style="font-weight: 700;">6 This activity is limited to female users.</p>
|
||||
<p>7 All rights of interpretation of this event belong to the platform.</p>`,
|
||||
more: 'More',
|
||||
month: 'Month',
|
||||
|
@@ -20,7 +20,7 @@ langEn = {
|
||||
<p>3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!</p>
|
||||
<p>4 Coin rewards:coins corresponding to the ranking ratio. Example: TOP1 user on the ranking gave 1 million coins designated gift, and can get 15,000 coins as a reward.</p>
|
||||
<p>5 There is no upper limit, the more you give, the more you get.</p>
|
||||
<p>6 This activity is limited to female users.</p>
|
||||
<p style="font-weight: 700;">6 This activity is limited to female users.</p>
|
||||
<p>7 All rights of interpretation of this event belong to the platform.</p>`,
|
||||
more: 'More',
|
||||
month: 'Month',
|
||||
|
@@ -20,7 +20,7 @@ langTr = {
|
||||
<p>3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!</p>
|
||||
<p>4 Coin rewards:coins corresponding to the ranking ratio. Example: TOP1 user on the ranking gave 1 million coins designated gift, and can get 15,000 coins as a reward.</p>
|
||||
<p>5 There is no upper limit, the more you give, the more you get.</p>
|
||||
<p>6 This activity is limited to female users.</p>
|
||||
<p style="font-weight: 700;">6 This activity is limited to female users.</p>
|
||||
<p>7 All rights of interpretation of this event belong to the platform.</p>`,
|
||||
more: 'More',
|
||||
month: 'Month',
|
||||
|
@@ -20,7 +20,7 @@ langZh = {
|
||||
<p>3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!</p>
|
||||
<p>4 Coin rewards:coins corresponding to the ranking ratio. Example: TOP1 user on the ranking gave 1 million coins designated gift, and can get 15,000 coins as a reward.</p>
|
||||
<p>5 There is no upper limit, the more you give, the more you get.</p>
|
||||
<p>6 This activity is limited to female users.</p>
|
||||
<p style="font-weight: 700;">6 This activity is limited to female users.</p>
|
||||
<p>7 All rights of interpretation of this event belong to the platform.</p>`,
|
||||
more: 'More',
|
||||
month: 'Month',
|
||||
|
Reference in New Issue
Block a user