Commit 9beaa432 authored by haiyoucuv's avatar haiyoucuv

init

parent 5ee4f142
......@@ -22,19 +22,19 @@
"__id__": 2
},
{
"__id__": 16
"__id__": 17
},
{
"__id__": 31
"__id__": 32
},
{
"__id__": 45
"__id__": 47
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 59
"__id__": 62
},
"_lpos": {
"__type__": "cc.Vec3",
......@@ -89,7 +89,14 @@
"instance": {
"__id__": 4
},
"targetOverrides": null
"targetOverrides": [
{
"__id__": 12
},
{
"__id__": 15
}
]
},
{
"__type__": "cc.PrefabInstance",
......@@ -114,12 +121,6 @@
},
{
"__id__": 10
},
{
"__id__": 12
},
{
"__id__": 14
}
],
"removedComponents": []
......@@ -192,46 +193,58 @@
"__id__": 11
},
"propertyPath": [
"_active"
"_carColor"
],
"value": false
"value": 0
},
{
"__type__": "cc.TargetInfo",
"localID": [
"a7+923THlGpK2OW81949am"
"6cFLC99U1Dl405ygHuNfbi"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 13
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_active"
"bodyMesh"
],
"value": true
"target": {
"__id__": 13
},
"targetInfo": {
"__id__": 14
}
},
{
"__type__": "cc.Node",
"__editorExtras__": {}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"81Vne/NIZBVIDJQ5SqAs5P"
"a8KAKbpytWQIj9beYfhm7E"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 15
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_carColor"
"top"
],
"value": 0
"target": {
"__id__": 13
},
"targetInfo": {
"__id__": 16
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"6cFLC99U1Dl405ygHuNfbi"
"49vJjWyDlSg5SO/dJHjbmh"
]
},
{
......@@ -241,14 +254,14 @@
"__id__": 1
},
"_prefab": {
"__id__": 17
"__id__": 18
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 16
"__id__": 17
},
"asset": {
"__uuid__": "1d050780-084a-4a94-89dc-105ed985a981",
......@@ -256,9 +269,16 @@
},
"fileId": "ca6ZXggr1OPpZ1elxoE4VX",
"instance": {
"__id__": 18
"__id__": 19
},
"targetOverrides": null
"targetOverrides": [
{
"__id__": 27
},
{
"__id__": 30
}
]
},
{
"__type__": "cc.PrefabInstance",
......@@ -270,10 +290,7 @@
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 19
},
{
"__id__": 21
"__id__": 20
},
{
"__id__": 22
......@@ -285,13 +302,7 @@
"__id__": 24
},
{
"__id__": 26
},
{
"__id__": 28
},
{
"__id__": 29
"__id__": 25
}
],
"removedComponents": []
......@@ -299,7 +310,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
"__id__": 21
},
"propertyPath": [
"_name"
......@@ -315,7 +326,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
"__id__": 21
},
"propertyPath": [
"_lpos"
......@@ -330,7 +341,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
"__id__": 21
},
"propertyPath": [
"_lrot"
......@@ -346,7 +357,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
"__id__": 21
},
"propertyPath": [
"_euler"
......@@ -361,64 +372,61 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 25
"__id__": 26
},
"propertyPath": [
"_active"
"_carColor"
],
"value": true
"value": 1
},
{
"__type__": "cc.TargetInfo",
"localID": [
"669PK/vptAIKuU332f+2ap"
"6cFLC99U1Dl405ygHuNfbi"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 27
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_active"
"bodyMesh"
],
"value": false
"target": {
"__id__": 28
},
"targetInfo": {
"__id__": 29
}
},
{
"__type__": "cc.Node",
"__editorExtras__": {}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"a7+923THlGpK2OW81949am"
"a8KAKbpytWQIj9beYfhm7E"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 27
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_lpos"
"top"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
"target": {
"__id__": 28
},
"propertyPath": [
"_carColor"
],
"value": 1
"targetInfo": {
"__id__": 31
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"6cFLC99U1Dl405ygHuNfbi"
"49vJjWyDlSg5SO/dJHjbmh"
]
},
{
......@@ -428,14 +436,14 @@
"__id__": 1
},
"_prefab": {
"__id__": 32
"__id__": 33
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 31
"__id__": 32
},
"asset": {
"__uuid__": "e9d96308-84db-4157-8abd-43bd86b1b985",
......@@ -443,9 +451,16 @@
},
"fileId": "6b9c9AH31BepEFqW2vpkx7",
"instance": {
"__id__": 33
"__id__": 34
},
"targetOverrides": null
"targetOverrides": [
{
"__id__": 42
},
{
"__id__": 45
}
]
},
{
"__type__": "cc.PrefabInstance",
......@@ -457,10 +472,7 @@
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 34
},
{
"__id__": 36
"__id__": 35
},
{
"__id__": 37
......@@ -472,10 +484,7 @@
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
"__id__": 40
}
],
"removedComponents": []
......@@ -483,7 +492,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
"__id__": 36
},
"propertyPath": [
"_name"
......@@ -499,7 +508,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
"__id__": 36
},
"propertyPath": [
"_lpos"
......@@ -514,7 +523,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
"__id__": 36
},
"propertyPath": [
"_lrot"
......@@ -530,7 +539,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
"__id__": 36
},
"propertyPath": [
"_euler"
......@@ -545,49 +554,61 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 40
"__id__": 41
},
"propertyPath": [
"_active"
"_carColor"
],
"value": true
"value": 4
},
{
"__type__": "cc.TargetInfo",
"localID": [
"4eF495aaVF25CgwV6ThLCa"
"f2bH2OfzNNH5aWu5gngeXE"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 42
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_active"
"bodyMesh"
],
"value": false
"target": {
"__id__": 43
},
"targetInfo": {
"__id__": 44
}
},
{
"__type__": "cc.Node",
"__editorExtras__": {}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"0emLVBRfROm4tjVfj9FoAU"
"97bEPNtopUKZXNgF/rEETO"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 44
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_carColor"
"top"
],
"value": 4
"target": {
"__id__": 43
},
"targetInfo": {
"__id__": 46
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"f2bH2OfzNNH5aWu5gngeXE"
"3fkqU8ExFfLL+eo63co0my"
]
},
{
......@@ -597,14 +618,14 @@
"__id__": 1
},
"_prefab": {
"__id__": 46
"__id__": 48
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 45
"__id__": 47
},
"asset": {
"__uuid__": "725a11fb-b865-4f16-b582-9bf848fd6a91",
......@@ -612,9 +633,16 @@
},
"fileId": "9cEQF8XeNI/5Zo+nRAEmT8",
"instance": {
"__id__": 47
"__id__": 49
},
"targetOverrides": null
"targetOverrides": [
{
"__id__": 57
},
{
"__id__": 60
}
]
},
{
"__type__": "cc.PrefabInstance",
......@@ -625,15 +653,9 @@
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 48
},
{
"__id__": 50
},
{
"__id__": 51
},
{
"__id__": 52
},
......@@ -641,10 +663,10 @@
"__id__": 53
},
{
"__id__": 55
"__id__": 54
},
{
"__id__": 57
"__id__": 55
}
],
"removedComponents": []
......@@ -652,7 +674,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 51
},
"propertyPath": [
"_name"
......@@ -668,7 +690,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 51
},
"propertyPath": [
"_lpos"
......@@ -683,7 +705,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 51
},
"propertyPath": [
"_lrot"
......@@ -699,7 +721,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 51
},
"propertyPath": [
"_euler"
......@@ -714,49 +736,61 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 54
"__id__": 56
},
"propertyPath": [
"_active"
"_carColor"
],
"value": false
"value": 2
},
{
"__type__": "cc.TargetInfo",
"localID": [
"d4H2x7mZNLx4QCsKeRekMp"
"ea5VG/a7tMzbfIL5Lsqq/h"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 56
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_active"
"bodyMesh"
],
"value": true
"target": {
"__id__": 58
},
"targetInfo": {
"__id__": 59
}
},
{
"__type__": "cc.Node",
"__editorExtras__": {}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"3an+ktAGJOuqnE028P8vxe"
"d39HnQMkFYRr2PswRAiJJU"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 58
},
"__type__": "cc.TargetOverrideInfo",
"source": null,
"sourceInfo": null,
"propertyPath": [
"_carColor"
"top"
],
"value": 2
"target": {
"__id__": 58
},
"targetInfo": {
"__id__": 61
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"ea5VG/a7tMzbfIL5Lsqq/h"
"7dTQEKen9aG4mNx/Z4lW5O"
]
},
{
......@@ -772,13 +806,13 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 45
"__id__": 47
},
{
"__id__": 31
"__id__": 32
},
{
"__id__": 16
"__id__": 17
},
{
"__id__": 2
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "b2d3e656-d55a-414f-a7d6-ed3a0255ecfa",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level11"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
import mobx from "mobx";
import store from "db://assets/Scripts/store/store";
import { creditsCost, sendWebNet, WebNetName } from "db://assets/Scripts/Utils/WebNet/WebNet";
import { showPanel, showToast } from "db://assets/core/Module/UIFast";
import { changeScene, hideAllPanel, showPanel, showToast } from "db://assets/core/Module/UIFast";
import { SucPanel } from "db://assets/Scripts/Panels/SucPanel";
import { OverPanel } from "db://assets/Scripts/Panels/OverPanel";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
const { makeAutoObservable } = mobx;
......@@ -23,7 +24,7 @@ class GameStore {
guideFlag: false,
}
async start() {
async start(returnHome = false) {
const { freeTimes, gameCreditsEach, creditsNum } = store.homeInfo;
......@@ -32,7 +33,11 @@ class GameStore {
if (freeTimes <= 0) {
if (creditsNum < gameCreditsEach) {
showToast("积分不足");
showToast("积分不足,快去扫码产品获取更多积分吧!");
if(returnHome){
hideAllPanel();
changeScene(HomeScene);
}
return false;
}
......@@ -65,7 +70,7 @@ class GameStore {
showToast("青果不足");
return false;
} else if (type == "credits" && unparkCreditsNum > creditsNum) {
showToast("积分不足");
showToast("积分不足,快去扫码产品获取更多积分吧!");
return false;
}
......
......@@ -98,17 +98,31 @@
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/assets/plugin/rem.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/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/1749022354453/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
<script>
var CFG = CFG || {};
// 免登中间页id
CFG.loginMidId = "Did1NjAwMDc"; // 线上正式
if (location.href.indexOf("duibatest") > -1) {
CFG.loginMidId = "Did1MTM2NTU"; // 测试
} else if (CFG.projectId == 'p69bb35bf') { // TODO 线上测试id
CFG.loginMidId = "Did1NTk5OTk"; // 线上测试
}
// 免登中间页
CFG.loginMidUrl = "/customShare/share?id=" + CFG.loginMidId + "&source=duiba&projectId=" + CFG.projectId + "&redirectUrl=";
</script>
</head>
<body style="overflow: hidden;">
<div id="GameDiv" cc_exact_fit_screen="true" style="overflow: hidden;">
......@@ -118,20 +132,20 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/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/1749022354453/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1749022354453/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027264862/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -27,8 +27,8 @@
"progress": 1,
"state": "success",
"stage": "build",
"message": "2025-6-4 15:33:40 build success in 1 min 9 s!",
"detailMessage": "%c兑吧发布插件 >> 版本号:1749022354453\rcolor: green\r",
"message": "2025-6-4 16:56:48 build success in 2 min 23 s!",
"detailMessage": "%c兑吧发布插件 >> 版本号:1749027264862\rcolor: green\r",
"options": {
"name": "card",
"server": "",
......@@ -95,7 +95,7 @@
"__version__": "1.3.9",
"logDest": "project://temp/builder/log/web-mobile2025-5-30 16-01.log"
},
"time": "2025-6-4 15:32:31",
"time": "2025-6-4 16:54:24",
"dirty": false
}
}
......
......@@ -2,7 +2,7 @@
"__version__": "1.0.12",
"modules": {
"graphics": {
"pipeline": "custom-pipeline"
"pipeline": "legacy-pipeline"
},
"configs": {
"migrationsConfig": {
......
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