Commit 17fbaef2 authored by haiyoucuv's avatar haiyoucuv

init

parent ab2162de
......@@ -267,7 +267,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "183DfUK3ZIfrYdbrN9rJyK"
"fileId": "a10cYxoLtCC7ZqfzX3EvB0"
},
{
"__type__": "cc.Sprite",
......@@ -309,7 +309,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "04frkrKytK2r1cE3o6U8dS"
"fileId": "2c82FeJ3JDR6YxDiG7DEcZ"
},
{
"__type__": "cc.PrefabInfo",
......@@ -319,7 +319,7 @@
"asset": {
"__id__": 0
},
"fileId": "167T+ueGhI1LmuIrIbkJlG",
"fileId": "1e+ebhyfBBA4tPvg1HhykC",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
......@@ -400,7 +400,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ecu2RqN0RHRr4DsP2+bn6x"
"fileId": "2961ZKhb9I4YRZSRD9XkrJ"
},
{
"__type__": "cc.Sprite",
......@@ -442,7 +442,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "88pPqjZuFHhq8D0hJsYz2t"
"fileId": "490fZJh4lIdJ/i3D8YCJ0F"
},
{
"__type__": "cc.PrefabInfo",
......@@ -452,7 +452,7 @@
"asset": {
"__id__": 0
},
"fileId": "9a3gbJTclGl7UFSu4zDF1y",
"fileId": "c0tWwukdBG+pNgVlB3eg4j",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
......@@ -533,7 +533,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "53F18c+txFH6enVb/ALany"
"fileId": "5eEQSmvV1PYJQBjpsRlNu9"
},
{
"__type__": "cc.Sprite",
......@@ -575,7 +575,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cd4XuJYOlHWacR7NNnwdVk"
"fileId": "65UBXaxkVNaoLT3vovhoo6"
},
{
"__type__": "cc.PrefabInfo",
......@@ -585,7 +585,7 @@
"asset": {
"__id__": 0
},
"fileId": "feWID39hVHkayj2+60fAS6",
"fileId": "2dFrSSyhJBHbBguhEKGqoY",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
......@@ -852,7 +852,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "abSwmJlslDRILGnK7YjaZI"
"fileId": "d2UIRMrA9GZYpYELzxCJ2O"
},
{
"__type__": "cc.Sprite",
......@@ -894,7 +894,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b8+62PUilMkYh1gSCFJ1TL"
"fileId": "111JLNFE5PJpnB6l3K8MJi"
},
{
"__type__": "cc.PrefabInfo",
......@@ -904,7 +904,7 @@
"asset": {
"__id__": 0
},
"fileId": "d2eBT0dFdMzJxEAlNHYx5y",
"fileId": "a4FVSuFQxG1aLqerbg/H9z",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
......@@ -985,7 +985,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "35SQjGHrdD0YsL8IQVbBnf"
"fileId": "afwujGielFO4embu30iUyy"
},
{
"__type__": "cc.Sprite",
......@@ -1027,7 +1027,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8annRcEB5Ls6up+uXdQERw"
"fileId": "d9fQVK/JtEwKFSwIlGPEL4"
},
{
"__type__": "cc.PrefabInfo",
......@@ -1037,7 +1037,7 @@
"asset": {
"__id__": 0
},
"fileId": "a01ZE/JipK9pqC9EOwLeHP",
"fileId": "41B0I3ITRCcLY4Ttf4yTTs",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
......@@ -1118,7 +1118,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "67HDY+gCNBRoT9hGGDmjaQ"
"fileId": "3dF07B3XhOmL6WksauF2+5"
},
{
"__type__": "cc.Sprite",
......@@ -1160,7 +1160,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ee0eLKSAFD9q4PDvDwDv1k"
"fileId": "d6fBQgrBZAy6GNg+uKILZZ"
},
{
"__type__": "cc.PrefabInfo",
......@@ -1170,7 +1170,7 @@
"asset": {
"__id__": 0
},
"fileId": "88CjN/qFJONJunOxcVJ8Nk",
"fileId": "81sl6W4PtG6Jd0Kln+NL3s",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
......@@ -1587,7 +1587,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 23.464,
"z": 0
},
"_lrot": {
......@@ -1599,8 +1599,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 1.3,
"y": 1.3,
"z": 1
},
"_mobility": 0,
......@@ -1628,7 +1628,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": -80,
"height": 570
"height": 438.46153846153845
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1657,8 +1657,8 @@
"_target": null,
"_left": 16.015625,
"_right": 515,
"_top": 90.00000000000006,
"_bottom": 90,
"_top": 66.53600000000006,
"_bottom": 113.464,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
......@@ -1724,6 +1724,8 @@
"__id__": 0
},
"fileId": "ecey1hU/JDg6aDjG7EHPsg",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
......
This diff is collapsed.
......@@ -166,7 +166,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -62.5,
"y": -44.023000000000025,
"z": 0
},
"_lrot": {
......@@ -178,8 +178,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 1.2,
"y": 1.2,
"z": 1
},
"_mobility": 0,
......@@ -658,7 +658,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 230,
"_top": 199.52300000000002,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
......@@ -718,7 +718,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -172.3,
"y": -160.542,
"z": 0
},
"_lrot": {
......@@ -857,7 +857,7 @@
"_left": 0,
"_right": 0,
"_top": 202.3,
"_bottom": 30,
"_bottom": 41.75800000000001,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
......@@ -916,7 +916,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 48.65199999999993,
"y": 67.12900000000002,
"z": 0
},
"_lrot": {
......@@ -1058,7 +1058,7 @@
"_left": 0,
"_right": 0,
"_top": 202.3,
"_bottom": 250.95199999999994,
"_bottom": 269.42900000000003,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
......
......@@ -213,14 +213,14 @@ export class MyBagPanel extends Panel {
goCheck.on(Button.EventType.CLICK, () => this.clickToCheck(url, id, prizeId)); // 奖品-去查看
goBuy.on(Button.EventType.CLICK, () => this.clickToBuy()); // 道具-去购买
goDress.on(Button.EventType.CLICK, () => this.clickToDress()); // 道具-去装扮
Derssed.on(Button.EventType.CLICK, () => this.clickToDefaultDress()); // 道具-换回默认装扮
goDress.on(Button.EventType.CLICK, () => this.clickToDress(cell)); // 道具-去装扮
Derssed.on(Button.EventType.CLICK, () => this.clickToDefaultDress(cell)); // 道具-换回默认装扮
goCheck.active = isPrize;
goBuy.active = isTool && spId != "sp_skin_snake_year"; // 不是蛇皮肤,去购买
goDress.active = isTool && spId == "sp_skin_snake_year" && dressingStatus == 0; // 已装扮
cell.getChildByName(`Derssed`).active = isTool && spId == "sp_skin_snake_year" && dressingStatus == 1; // 未装扮
Derssed.active = isTool && spId == "sp_skin_snake_year" && dressingStatus == 1; // 未装扮
cell.getChildByName(`name`).getComponent(Label).string = strFormat(name || spName, 32);
cell.getChildByName(`time`).getComponent(Label).string = gmtCreate ? dateFormatter(gmtCreate, "yyyy.MM.dd hh:mm") : "剩余数量:" + spNum;
cell.getChildByName("img").getComponent(Sprite).spriteFrame = icon || spImg;
......@@ -258,20 +258,27 @@ export class MyBagPanel extends Panel {
});
// clickToDress = async (spId) => {
clickToDress = _asyncThrottle(async () => {
clickToDress = _asyncThrottle(async (cell: Node) => {
const { success, data } = await sendWebNetWithToken(WebNetName.doDress, { spId: "sp_skin_snake_year" });
if (!success) return;
cell.getChildByName("goDress").active = false;
cell.getChildByName("Derssed").active = true;
console.log("换上了新皮肤");
this.hidePanel();
// this.hidePanel();
});
clickToDefaultDress = _asyncThrottle(async () => {
clickToDefaultDress = _asyncThrottle(async (cell: Node) => {
const { success, data } = await sendWebNetWithToken(WebNetName.doDress, { spId: "sp_decoration_default" });
if (!success) return;
cell.getChildByName("goDress").active = true;
cell.getChildByName("Derssed").active = false;
console.log("换回了原皮肤");
this.hidePanel();
// this.hidePanel();
});
}
......@@ -53,6 +53,8 @@ export class HomeScene extends Scene {
@property(Node) shareBtn: Node = null;
@property(Node) shareNode: Node = null;
@property(Node) userInfo: Node = null;
@property(Label) userName: Label;
@property(Label) pointNum: Label;
@property(Label) fuDaiText: Label;
......@@ -80,6 +82,7 @@ export class HomeScene extends Scene {
this.pointBtn.on(Button.EventType.CLICK, this.clickDetail, this);
this.bagBtn.on(Button.EventType.CLICK, this.clickMyBag, this);
this.shareBtn.on(Button.EventType.CLICK, this.clickShare, this);
this.userInfo.on(Button.EventType.CLICK, this.clickUserInfo, this);
}
async start() {
......@@ -223,5 +226,12 @@ export class HomeScene extends Scene {
shareStore.doShare(true)
});
clickUserInfo = _asyncThrottle(async () => {
// @ts-ignore
wx.miniProgram.navigateTo({
url: '/package/pages/user-info/index'
});
});
}
......@@ -98,14 +98,14 @@
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/assets/plugin/rem.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/assets/plugin/rem.min.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/1735191517958/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
......@@ -118,20 +118,20 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735191517958/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735200017496/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -45,8 +45,8 @@
"progress": 1,
"state": "success",
"stage": "build",
"message": "2024-12-26 13:39:45 build success in 1 min 7 s!",
"detailMessage": "builder:build-project-total (66866ms)\r",
"message": "2024-12-26 16:01:05 build success in 48 s!",
"detailMessage": "%c兑吧发布插件 >> 版本号:1735200017496\rcolor: green\r",
"options": {
"name": "cocos-template-3d",
"server": "",
......@@ -109,7 +109,7 @@
"__version__": "1.3.8",
"logDest": "project://temp/builder/log/web-mobile2024-11-6 15-39.log"
},
"time": "2024-12-26 13:38:37",
"time": "2024-12-26 16:00:17",
"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