diff --git a/view/molistar/activity/2025-BattleQueen/images/rewardBg.png b/view/molistar/activity/2025-BattleQueen/images/rewardBg.png index a2382578..d47eb303 100644 Binary files a/view/molistar/activity/2025-BattleQueen/images/rewardBg.png and b/view/molistar/activity/2025-BattleQueen/images/rewardBg.png differ diff --git a/view/molistar/activity/2025-BattleQueen/js/index.js b/view/molistar/activity/2025-BattleQueen/js/index.js index b46ecbf4..e55d121f 100644 --- a/view/molistar/activity/2025-BattleQueen/js/index.js +++ b/view/molistar/activity/2025-BattleQueen/js/index.js @@ -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() {
- ${unitProcessingAr(res.totalNum, 2)} + ${unitPro(res.totalNum, 2)}
` @@ -289,4 +289,19 @@ $('.video .close').click(function () { video1.pause(); bodyScroolFun(false); $('.video').hide(); -}) \ No newline at end of file +}) +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'; + } +} \ No newline at end of file diff --git a/view/molistar/activity/2025-BattleQueen/local/ar.js b/view/molistar/activity/2025-BattleQueen/local/ar.js index dc31165b..9a316aaa 100644 --- a/view/molistar/activity/2025-BattleQueen/local/ar.js +++ b/view/molistar/activity/2025-BattleQueen/local/ar.js @@ -20,7 +20,7 @@ langAr = {

3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!

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.

5 There is no upper limit, the more you give, the more you get.

-

6 This activity is limited to female users.

+

6 This activity is limited to female users.

7 All rights of interpretation of this event belong to the platform.

`, more: 'More', month: 'Month', diff --git a/view/molistar/activity/2025-BattleQueen/local/en.js b/view/molistar/activity/2025-BattleQueen/local/en.js index 502c60fa..e3445643 100644 --- a/view/molistar/activity/2025-BattleQueen/local/en.js +++ b/view/molistar/activity/2025-BattleQueen/local/en.js @@ -20,7 +20,7 @@ langEn = {

3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!

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.

5 There is no upper limit, the more you give, the more you get.

-

6 This activity is limited to female users.

+

6 This activity is limited to female users.

7 All rights of interpretation of this event belong to the platform.

`, more: 'More', month: 'Month', diff --git a/view/molistar/activity/2025-BattleQueen/local/tr.js b/view/molistar/activity/2025-BattleQueen/local/tr.js index 4dd8cc45..9bc426d7 100644 --- a/view/molistar/activity/2025-BattleQueen/local/tr.js +++ b/view/molistar/activity/2025-BattleQueen/local/tr.js @@ -20,7 +20,7 @@ langTr = {

3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!

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.

5 There is no upper limit, the more you give, the more you get.

-

6 This activity is limited to female users.

+

6 This activity is limited to female users.

7 All rights of interpretation of this event belong to the platform.

`, more: 'More', month: 'Month', diff --git a/view/molistar/activity/2025-BattleQueen/local/zh.js b/view/molistar/activity/2025-BattleQueen/local/zh.js index 324767a5..5bed9032 100644 --- a/view/molistar/activity/2025-BattleQueen/local/zh.js +++ b/view/molistar/activity/2025-BattleQueen/local/zh.js @@ -20,7 +20,7 @@ langZh = {

3️ The final top of the ranking will be crowned "Queen of August" and enjoy exclusive glory and generous rewards!

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.

5 There is no upper limit, the more you give, the more you get.

-

6 This activity is limited to female users.

+

6 This activity is limited to female users.

7 All rights of interpretation of this event belong to the platform.

`, more: 'More', month: 'Month',