Commit af3096a4 authored by haiyoucuv's avatar haiyoucuv

更改

parent f2a44c33
import Panel from "../../Module/Panel";
import { _decorator, Button, Label, Node, Sprite } from "cc";
import { changeScene, showToast } from "db://assets/Module/UIFast";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import { strFormat } from "../Utils/Utils";
import { PrizeScene } from "../Scenes/PrizeScene/PrizeScene";
import { LOG_TYPE, sendLog } from "../Utils/WebNet/WebNet";
import store from "../../store/store";
import GameMgr from "../GameMgr";
import { MainGame } from "../Scenes/MainGame/MainGame";
const {ccclass, property} = _decorator;
@ccclass('FailPrizePanel2')
export default class FailPrizePanel2 extends Panel {
static skin = "FailPrizePanel2";
static group = "FailPrizePanel2";
@property(Node)
close: Node = null!;
@property(Node)
again: Node = null!;
async start() {
sendLog(LOG_TYPE.EXPOSURE, 5);
this.close.on(Button.EventType.CLICK, this.onClose, this);
this.again.on(Button.EventType.CLICK, this.clickAgain, this);
}
clickAgain = async () => {
sendLog(LOG_TYPE.CLICK, 5);
this.hidePanel();
if (store.homeInfo.leftTimes <= 0) {
changeScene(HomeScene);
showToast("没次数啦,明天再来吧!");
} else {
await GameMgr.ins.start();
changeScene(MainGame);
}
}
/**
* 返回首页
*/
onClose = () => {
changeScene(HomeScene);
this.hidePanel();
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"c5d20854-9df4-407f-bfbd-dd28cf7c39a9","files":[],"subMetas":{},"userData":{}}
......@@ -37,6 +37,7 @@ import { LOG_TYPE, sendLog } from "../../Utils/WebNet/WebNet";
import { HomeScene } from "../HomeScene";
import PrizePanel from "../../Panels/PrizePanel";
import FailPrizePanel from "../../Panels/FailPrizePanel";
import FailPrizePanel2 from "../../Panels/FailPrizePanel2";
const {ccclass, property} = _decorator;
......@@ -187,13 +188,11 @@ export class MainGame extends Scene {
const {success, data} = await submitPromise;
showPanel(NoPrizePanel);
// if (!success || !data?.prize || data.prize.prizeId == "thanks") {
// showPanel(NoPrizePanel);
// } else {
// showPanel(FailPrizePanel, data.prize);
// }
if (!success || !data?.prize || data.prize.prizeId == "thanks") {
showPanel(NoPrizePanel);
} else {
showPanel(FailPrizePanel2);
}
}
}
......
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"27814f71-3950-49ad-8129-772981da3cc1","files":[],"subMetas":{},"userData":{}}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "1c56db5b-6e01-4df2-a8db-e09cb41cae27",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "FailPrizePanel2"
}
}
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"69f40a6b-cdcb-4fc0-bc38-5e5a049e7fd3","files":[],"subMetas":{},"userData":{}}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "38daf38e-03a5-4561-a80c-b89b9eee923a",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "38daf38e-03a5-4561-a80c-b89b9eee923a@6c48a",
"displayName": "bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "38daf38e-03a5-4561-a80c-b89b9eee923a",
"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": "38daf38e-03a5-4561-a80c-b89b9eee923a@f9941",
"displayName": "bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 780,
"height": 526,
"rawWidth": 780,
"rawHeight": 526,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-390,
-263,
0,
390,
-263,
0,
-390,
263,
0,
390,
263,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
526,
780,
526,
0,
0,
780,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-390,
-263,
0
],
"maxPos": [
390,
263,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "38daf38e-03a5-4561-a80c-b89b9eee923a@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "38daf38e-03a5-4561-a80c-b89b9eee923a@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3541661f-1913-4a72-bf7b-10942d06312f",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3541661f-1913-4a72-bf7b-10942d06312f@6c48a",
"displayName": "再试一次",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3541661f-1913-4a72-bf7b-10942d06312f",
"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": "3541661f-1913-4a72-bf7b-10942d06312f@f9941",
"displayName": "再试一次",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 386,
"height": 85,
"rawWidth": 386,
"rawHeight": 85,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-193,
-42.5,
0,
193,
-42.5,
0,
-193,
42.5,
0,
193,
42.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
85,
386,
85,
0,
0,
386,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-193,
-42.5,
0
],
"maxPos": [
193,
42.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3541661f-1913-4a72-bf7b-10942d06312f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3541661f-1913-4a72-bf7b-10942d06312f@6c48a"
}
}
......@@ -57,7 +57,7 @@
<script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script>
<script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723776008327/style.css" />
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723792415869/style.css" />
<style>
.sui-captcha {
......@@ -168,16 +168,16 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723776008327/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723792415869/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723776008327/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723792415869/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723776008327/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723792415869/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1723776008327/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1723792415869/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -3,18 +3,6 @@
"code": "",
"message": "",
"data": {
"prize": {
"ruleId": "ru_draw",
"optionId": "aaaadddd",
"optionName": "1元话费",
"optionImg": "//yun.duiba.com.cn/polaris/a1.a38b91f5987d766fb11fcca483f9115d9912dfb4.png",
"prizeId": "sss_3",
"prizeType": 2,
"position": 1,
"userRecordId": 1234,
"url": "https://www.baidu.com/1234",
"sendCount": 1,
"extra": "{}"
}
"prize": null
}
}
\ No newline at end of file
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