Commit 9beaa432 authored by haiyoucuv's avatar haiyoucuv

init

parent 5ee4f142
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "b2d3e656-d55a-414f-a7d6-ed3a0255ecfa",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level11"
}
}
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