Commit 3ed06349 authored by haiyoucuv's avatar haiyoucuv

init

parent 71d8fb8b
......@@ -69,6 +69,7 @@ export class ReviewPanel extends Panel {
ok = _asyncThrottle(async () => {
const { type } = this;
AudioMgr.ins.playOneShot(AudioClipName.button_ok);
const lockIndex = MainGame.ins.getLockPoints();
if (type == "share") {
......
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 } from "db://assets/core/Module/UIFast";
import { showPanel, showToast } from "db://assets/core/Module/UIFast";
import { SucPanel } from "db://assets/Scripts/Panels/SucPanel";
import { OverPanel } from "db://assets/Scripts/Panels/OverPanel";
......@@ -23,11 +23,17 @@ class GameStore {
async start() {
const { freeTimes, gameCreditsEach } = store.homeInfo;
const { freeTimes, gameCreditsEach, creditsNum } = store.homeInfo;
const params: { ticketNum?: string } = {};
if (freeTimes <= 0) {
if (creditsNum < gameCreditsEach) {
showToast("积分不足");
return false;
}
const { success, ticket } = await creditsCost("main", "start", "deduct_credits_desc", gameCreditsEach);
if (!success) return false;
params.ticketNum = ticket;
......@@ -48,6 +54,16 @@ class GameStore {
const { startId, level } = this.startInfo;
const { unparkQgNum, unparkCreditsNum, creditsNum, qgNum } = store.homeInfo;
if (type == "green" && unparkQgNum > qgNum) {
showToast("青果不足");
return false;
} else if (type == "credits" && unparkCreditsNum > creditsNum) {
showToast("积分不足");
return false;
}
const params: any = {
startId,
level,
......
......@@ -17,6 +17,7 @@ export interface IHomeInfo {
freeTimes: number;
creditsNum: number;
gameCreditsEach: number;
qgNum: number;
unparkQgNum: number;
unparkCreditsNum: number;
boxConfigs: {
......
......@@ -98,14 +98,14 @@
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/src/assets/plugin/rem.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/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/1748592605181/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/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/1748592605181/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/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/1748592605181/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1748592605181/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1748593087030/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -8,6 +8,7 @@
"freeTimes": 6,
"creditsNum": 100,
"gameCreditsEach": 100,
"qgNum": 33,
"unparkQgNum": 66,
"unparkCreditsNum": 88,
"boxConfigs": [
......
......@@ -27,8 +27,8 @@
"progress": 1,
"state": "success",
"stage": "build",
"message": "2025-5-30 16:10:58 build success in 59 s!",
"detailMessage": "43bb50dc-7c49-497c-83da-945f9206b83f.png\r0\r",
"message": "2025-5-30 16:18:43 build success in 39 s!",
"detailMessage": "adsense-h5g-plugin:(onBeforeBundleInit) in 27 ms ✓, progress: 7%\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-5-30 16:09:59",
"time": "2025-5-30 16:18:04",
"dirty": false
}
}
......
......@@ -12,6 +12,17 @@
"accessKeyId": "LTAI5tPUSSxgkEmKPAfVXUQQ",
"accessKeySecret": "6sk3EDd1BYrXlAUoh8maMuN7hOMkh1",
"__version__": "1.0.0"
},
"1748592090600}": {
"useZip": true,
"useJsEncryption": true,
"uploadDir": "db_games/ccc_game/template3d",
"cdnDomain": "//yun.duiba.com.cn",
"region": "oss-cn-hangzhou",
"bucket": "duiba",
"accessKeyId": "LTAI5tPUSSxgkEmKPAfVXUQQ",
"accessKeySecret": "6sk3EDd1BYrXlAUoh8maMuN7hOMkh1",
"__version__": "1.0.0"
}
},
"__version__": "1.3.9"
......
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