Commit 8c430def authored by 罗睿卓's avatar 罗睿卓

emrge

parent 4104a036
...@@ -333,7 +333,8 @@ export class RankScence extends Scene { ...@@ -333,7 +333,8 @@ export class RankScence extends Scene {
cell.getChildByName(`rank`).getComponent(Label).string = rankTxt; cell.getChildByName(`rank`).getComponent(Label).string = rankTxt;
cell.getChildByName(`sheng`).getComponent(Label).string = province || strFormat(`${nickname || "微信用户"}`, 12); cell.getChildByName(`sheng`).getComponent(Label).string = province || strFormat(`${nickname || "微信用户"}`, 12);
cell.getChildByName(`length`).getComponent(Label).string = (score > 99999999 ? "99999999+" : score) || "0"; // cell.getChildByName(`length`).getComponent(Label).string = (score > 99999999 ? "99999999+" : score) || "0";
cell.getChildByName(`length`).getComponent(Label).string = (this.formatNumberWithUnit(score)) || "0";
} }
onMyCellDisplay = (cell: Node, data, tab) => { onMyCellDisplay = (cell: Node, data, tab) => {
...@@ -365,8 +366,29 @@ export class RankScence extends Scene { ...@@ -365,8 +366,29 @@ export class RankScence extends Scene {
cell.getChildByName(`rank`).getComponent(Label).string = rankTxt; cell.getChildByName(`rank`).getComponent(Label).string = rankTxt;
cell.getChildByName(`sheng`).getComponent(Label).string = province || strFormat(`${nickname || "微信用户"}`, 12) + "(我)"; cell.getChildByName(`sheng`).getComponent(Label).string = province || strFormat(`${nickname || "微信用户"}`, 12) + "(我)";
cell.getChildByName(`length`).getComponent(Label).string = (score > 99999999 ? "99999999+" : score) || "0"; // cell.getChildByName(`length`).getComponent(Label).string = (score > 99999999 ? "99999999+" : score) || "0";
cell.getChildByName(`length`).getComponent(Label).string = (this.formatNumberWithUnit(score)) || "0";
}
formatNumberWithUnit = (num) => {
if (num < 10000) {
return num; // 如果小于一万,直接返回原数
} else if (num < 100000000) {
// 大于一万小于一亿,转为以万为单位
const numInWan = num / 10000;
// 使用slice截取小数点后三位,不四舍五入
const formattedNum = (numInWan + '').slice(0, numInWan.toString().includes('.') ? numInWan.toString().indexOf('.') + 4 : numInWan.toString().length);
return formattedNum + '万';
} else {
// 大于等于一亿,转为以亿为单位
const numInYi = num / 100000000;
// 使用slice截取小数点后三位,不四舍五入
const formattedNum = (numInYi + '').slice(0, numInYi.toString().includes('.') ? numInYi.toString().indexOf('.') + 4 : numInYi.toString().length);
return formattedNum + '亿';
} }
}
onPrizeCellDisplay = (cell: Node, data) => { onPrizeCellDisplay = (cell: Node, data) => {
if (!data) return if (!data) return
......
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
"_priority": 65535, "_priority": 65535,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 556.2162162162163, "_orthoHeight": 486.8682328907048,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -98,14 +98,14 @@ ...@@ -98,14 +98,14 @@
</style> </style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/assets/plugin/zepto.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/assets/plugin/declare-process.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/assets/plugin/jszip.min.v3.10.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/assets/plugin/rem.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/assets/plugin/rem.min.js"></script>
<script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/style.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/custom.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>--> <!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>--> <!-- <script>eruda.init()</script>-->
...@@ -118,20 +118,20 @@ ...@@ -118,20 +118,20 @@
</div> </div>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>--> <!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8"> <script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/cocos-js/cc.js"}} {"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/cocos-js/cc.js"}}
</script> </script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735820937146/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735894067318/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
...@@ -36,21 +36,21 @@ ...@@ -36,21 +36,21 @@
"index": 1, "index": 1,
"meFlag": false, "meFlag": false,
"nickname": "很忙的", "nickname": "很忙的",
"score": 1734 "score": 1731212124
}, },
{ {
"avatar": null, "avatar": null,
"index": 2, "index": 2,
"meFlag": false, "meFlag": false,
"nickname": "", "nickname": "",
"score": 831 "score": 81131
}, },
{ {
"avatar": "https://yun.duiba.com.cn/polaris/ba61811a5478a6caeaaa38d4249ef72e.49306f269dd1c03fd4ee21a62068e3b880a46c9c.jpeg", "avatar": "https://yun.duiba.com.cn/polaris/ba61811a5478a6caeaaa38d4249ef72e.49306f269dd1c03fd4ee21a62068e3b880a46c9c.jpeg",
"index": 3, "index": 3,
"meFlag": false, "meFlag": false,
"nickname": "15323巴啦啦", "nickname": "15323巴啦啦",
"score": 682 "score": 1682
}, },
{ {
"avatar": "https://yun.duiba.com.cn/polaris/ba61811a5478a6caeaaa38d4249ef72e.49306f269dd1c03fd4ee21a62068e3b880a46c9c.jpeg", "avatar": "https://yun.duiba.com.cn/polaris/ba61811a5478a6caeaaa38d4249ef72e.49306f269dd1c03fd4ee21a62068e3b880a46c9c.jpeg",
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
"progress": 1, "progress": 1,
"state": "success", "state": "success",
"stage": "build", "stage": "build",
"message": "2025-1-2 20:32:38 build success in 3 min 41 s!", "message": "2025-1-3 16:51:38 build success in 3 min 50 s!",
"detailMessage": "builder:build-project-total (221324ms)\r", "detailMessage": "builder:build-project-total (229417ms)\r",
"options": { "options": {
"name": "cocos-template-3d", "name": "cocos-template-3d",
"server": "", "server": "",
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
"__version__": "1.3.8", "__version__": "1.3.8",
"logDest": "project://temp/builder/log/web-mobile2024-11-6 15-39.log" "logDest": "project://temp/builder/log/web-mobile2024-11-6 15-39.log"
}, },
"time": "2025-1-2 20:28:56", "time": "2025-1-3 16:47:47",
"dirty": false "dirty": false
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment