Commit 00ec9520 authored by haiyoucuv's avatar haiyoucuv

init

parent f680020f
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 739.6666666666667, "_orthoHeight": 777.872463768116,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -481,7 +481,7 @@ ...@@ -481,7 +481,7 @@
"y": -180, "y": -180,
"z": -12.000012657215834 "z": -12.000012657215834
}, },
"_id": "f9pOpgdGZLbJpJczlPEwgH" "_id": "fc3KNhQ/dEr6oK1dl0jKDc"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -503,7 +503,7 @@ ...@@ -503,7 +503,7 @@
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"_id": "b1zVqvYjRICKsSjlyX+Aw2" "_id": "752RFkbHpKYZ9bJVnhnYoO"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": null,
"_id": "76hL4QqoRPs4BFqrStEpuN" "_id": "c5VOsCIJdO05oOQJ8tKBGN"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -587,7 +587,7 @@ ...@@ -587,7 +587,7 @@
"y": -180, "y": -180,
"z": -11.00000220913452 "z": -11.00000220913452
}, },
"_id": "1eW9YeR21AcZuvO1F/yI8U" "_id": "10SEUR1aNGB6stb357DsGJ"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -609,7 +609,7 @@ ...@@ -609,7 +609,7 @@
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"_id": "56KGZE38ZEu5p7nQQnuEwP" "_id": "f2ngscivRPBqPETr0RgJi1"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -645,7 +645,7 @@ ...@@ -645,7 +645,7 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": null,
"_id": "2awtUbYRZHn5G2+Ke8hdkG" "_id": "a043vxnbdOap5SKn8yVgha"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -693,7 +693,7 @@ ...@@ -693,7 +693,7 @@
"y": -180, "y": -180,
"z": -64.00000614258742 "z": -64.00000614258742
}, },
"_id": "899cERxwlAIpQEiWlhftU6" "_id": "97laqkxVFPfp4RH4XVHVtN"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -715,7 +715,7 @@ ...@@ -715,7 +715,7 @@
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"_id": "6bvlTJ1g5KHptCz8nLW4Ud" "_id": "2bO/6RavVLuJZJZk6sJX8P"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -751,7 +751,7 @@ ...@@ -751,7 +751,7 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": null,
"_id": "86hKPVmkpCzYdHymTpY/TK" "_id": "b18ScQdalMXKVre4pl3g73"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -799,7 +799,7 @@ ...@@ -799,7 +799,7 @@
"y": 180, "y": 180,
"z": 25.99999385741257 "z": 25.99999385741257
}, },
"_id": "f8hiECxd1NealNE6KHjeht" "_id": "9aGiLcI5xKbpCYAdnTCkJI"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -821,7 +821,7 @@ ...@@ -821,7 +821,7 @@
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"_id": "0f6n9p9OpBmaBBWO2cgPUg" "_id": "7aa4qWrSlNVpdjOvyQp13p"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -857,7 +857,7 @@ ...@@ -857,7 +857,7 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": null,
"_id": "3fzR5xg2pE7qszO56JowIH" "_id": "2acqQJf2pEkpehpL1OpXxa"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -7060,6 +7060,14 @@ ...@@ -7060,6 +7060,14 @@
"userImg": { "userImg": {
"__id__": 89 "__id__": 89
}, },
"bagSpNoActive": {
"__uuid__": "dde724a1-2bf8-4f14-b78c-b6c4aa1a7ac1@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"bagSpActive": {
"__uuid__": "72f47047-a61a-4e33-8830-febf3469b7c5@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_id": "30ywpmE6RNsozfsd/NXO0o" "_id": "30ywpmE6RNsozfsd/NXO0o"
}, },
{ {
...@@ -7116,7 +7124,9 @@ ...@@ -7116,7 +7124,9 @@
"skin2": { "skin2": {
"__uuid__": "0fcbe18c-80ee-4708-a89b-776794fa0553@f9941", "__uuid__": "0fcbe18c-80ee-4708-a89b-776794fa0553@f9941",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
} },
"node1": null,
"node2": null
}, },
{ {
"__type__": "SkinNode", "__type__": "SkinNode",
...@@ -7145,7 +7155,9 @@ ...@@ -7145,7 +7155,9 @@
"skin2": { "skin2": {
"__uuid__": "3d019592-d66a-46d1-876a-980c75f756d3@f9941", "__uuid__": "3d019592-d66a-46d1-876a-980c75f756d3@f9941",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
} },
"node1": null,
"node2": null
}, },
{ {
"__type__": "SkinNode", "__type__": "SkinNode",
...@@ -7174,7 +7186,9 @@ ...@@ -7174,7 +7186,9 @@
"skin2": { "skin2": {
"__uuid__": "284875ad-a784-4db0-8cd2-d96bb0c1dd04@f9941", "__uuid__": "284875ad-a784-4db0-8cd2-d96bb0c1dd04@f9941",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
} },
"node1": null,
"node2": null
}, },
{ {
"__type__": "SkinNode", "__type__": "SkinNode",
...@@ -7197,7 +7211,9 @@ ...@@ -7197,7 +7211,9 @@
"a": 255 "a": 255
}, },
"skin1": null, "skin1": null,
"skin2": null "skin2": null,
"node1": null,
"node2": null
}, },
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
......
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "72f47047-a61a-4e33-8830-febf3469b7c5",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "72f47047-a61a-4e33-8830-febf3469b7c5@6c48a",
"displayName": "背包亮",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "72f47047-a61a-4e33-8830-febf3469b7c5",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "72f47047-a61a-4e33-8830-febf3469b7c5@f9941",
"displayName": "背包亮",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 4,
"trimY": 4,
"width": 140,
"height": 140,
"rawWidth": 148,
"rawHeight": 148,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-70,
-70,
0,
70,
-70,
0,
-70,
70,
0,
70,
70,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
4,
144,
144,
144,
4,
4,
144,
4
],
"nuv": [
0.02702702702702703,
0.02702702702702703,
0.972972972972973,
0.02702702702702703,
0.02702702702702703,
0.972972972972973,
0.972972972972973,
0.972972972972973
],
"minPos": [
-70,
-70,
0
],
"maxPos": [
70,
70,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "72f47047-a61a-4e33-8830-febf3469b7c5@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "72f47047-a61a-4e33-8830-febf3469b7c5@6c48a"
}
}
import { _decorator, Button, Label, Node, Sprite } from "cc"; import { _decorator, Button, Label, Node, Sprite, SpriteFrame } from "cc";
import Scene from "db://assets/Module/Scene"; import Scene from "db://assets/Module/Scene";
import { MainGame } from "./MainGame/MainGame"; import { MainGame } from "./MainGame/MainGame";
import { changeScene, hidePanel, hideWaiting, showPanel, showToast, showWaiting } from "db://assets/Module/UIFast"; import { changeScene, hidePanel, hideWaiting, showPanel, showToast, showWaiting } from "db://assets/Module/UIFast";
...@@ -61,6 +61,9 @@ export class HomeScene extends Scene { ...@@ -61,6 +61,9 @@ export class HomeScene extends Scene {
@property(Sprite) userImg: Sprite; @property(Sprite) userImg: Sprite;
@property(SpriteFrame) bagSpNoActive: SpriteFrame;
@property(SpriteFrame) bagSpActive: SpriteFrame;
// 默认头像 // 默认头像
avatar = isType1() avatar = isType1()
? "https://yun.duiba.com.cn/polaris/img.546cbcd3811aa2265e50d495c078108a217450b7.png" ? "https://yun.duiba.com.cn/polaris/img.546cbcd3811aa2265e50d495c078108a217450b7.png"
...@@ -131,6 +134,7 @@ export class HomeScene extends Scene { ...@@ -131,6 +134,7 @@ export class HomeScene extends Scene {
luckBenefitDesc = "", luckBenefitDesc = "",
benefitDesc = "", benefitDesc = "",
avatar, avatar,
bagLightFlag,
} = store.homeInfo || {}; } = store.homeInfo || {};
this.userName.string = strFormat(nickname || "鸣鸣很忙用户", 8); this.userName.string = strFormat(nickname || "鸣鸣很忙用户", 8);
...@@ -140,6 +144,7 @@ export class HomeScene extends Scene { ...@@ -140,6 +144,7 @@ export class HomeScene extends Scene {
this.fuDaiText.string = luckBenefitDesc; this.fuDaiText.string = luckBenefitDesc;
this.quanyiText.string = benefitDesc; this.quanyiText.string = benefitDesc;
this.bagBtn.getComponent(Sprite).spriteFrame = bagLightFlag ? this.bagSpActive : this.bagSpNoActive;
if (rankInfos && rankInfos.length > 0) { if (rankInfos && rankInfos.length > 0) {
this.rankList.active = true; this.rankList.active = true;
...@@ -196,6 +201,7 @@ export class HomeScene extends Scene { ...@@ -196,6 +201,7 @@ export class HomeScene extends Scene {
clickMyBag = _asyncThrottle(async () => { clickMyBag = _asyncThrottle(async () => {
if (!store.checkActTime(true)) return; if (!store.checkActTime(true)) return;
store.homeInfo.bagLightFlag = false;
showPanel(MyBagPanel); showPanel(MyBagPanel);
}); });
......
...@@ -24,6 +24,7 @@ export interface IHomeInfo { ...@@ -24,6 +24,7 @@ export interface IHomeInfo {
luckBenefitDesc: string; luckBenefitDesc: string;
benefitDesc: string; benefitDesc: string;
firstEntryFlag: boolean; firstEntryFlag: boolean;
bagLightFlag: boolean;
rankInfos: { rankInfos: {
index: number; index: number;
nickname: string; nickname: string;
...@@ -76,6 +77,7 @@ class Store { ...@@ -76,6 +77,7 @@ class Store {
rankInfos: [], rankInfos: [],
rankPopList: [], rankPopList: [],
bagPopVO: null, bagPopVO: null,
bagLightFlag: false,
}; };
async updateIndex() { async updateIndex() {
......
...@@ -98,14 +98,14 @@ ...@@ -98,14 +98,14 @@
</style> </style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/src/assets/plugin/zepto.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/src/assets/plugin/declare-process.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/src/assets/plugin/jszip.min.v3.10.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/src/assets/plugin/rem.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/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/1735093141923/style.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/custom.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/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/1735093141923/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>--> <!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/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/1735093141923/cocos-js/cc.js"}} {"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/cocos-js/cc.js"}}
</script> </script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093141923/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735093859110/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
"progress": 1, "progress": 1,
"state": "success", "state": "success",
"stage": "build", "stage": "build",
"message": "2024-12-25 10:19:58 build success in 56 s!", "message": "2024-12-25 10:32:24 build success in 1 min 25 s!",
"detailMessage": "builder:build-project-total (56357ms)\r", "detailMessage": "%c兑吧发布插件 >> 版本号:1735093859110\rcolor: green\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": "2024-12-25 10:19:01", "time": "2024-12-25 10:30:58",
"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