Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TNGD_CaveCruiser
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TNGD_CaveCruiser
Commits
af3096a4
Commit
af3096a4
authored
Aug 16, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改
parent
f2a44c33
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1130 additions
and
25 deletions
+1130
-25
FailPrizePanel2.ts
assets/Scripts/Panels/FailPrizePanel2.ts
+55
-0
FailPrizePanel2.ts.meta
assets/Scripts/Panels/FailPrizePanel2.ts.meta
+1
-0
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+6
-7
FailPrizePanel2.meta
assets/resources/FailPrizePanel2.meta
+1
-0
FailPrizePanel2.prefab
assets/resources/FailPrizePanel2/FailPrizePanel2.prefab
+779
-0
FailPrizePanel2.prefab.meta
assets/resources/FailPrizePanel2/FailPrizePanel2.prefab.meta
+13
-0
png.meta
assets/resources/FailPrizePanel2/png.meta
+1
-0
bg.png
assets/resources/FailPrizePanel2/png/bg.png
+0
-0
bg.png.meta
assets/resources/FailPrizePanel2/png/bg.png.meta
+134
-0
再试一次.png
assets/resources/FailPrizePanel2/png/再试一次.png
+0
-0
再试一次.png.meta
assets/resources/FailPrizePanel2/png/再试一次.png.meta
+134
-0
index.html
build/web-mobile/index.html
+5
-5
submit.do.json
preview-template/mock/game/submit.do.json
+1
-13
No files found.
assets/Scripts/Panels/FailPrizePanel2.ts
0 → 100644
View file @
af3096a4
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
();
}
}
assets/Scripts/Panels/FailPrizePanel2.ts.meta
0 → 100644
View file @
af3096a4
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"c5d20854-9df4-407f-bfbd-dd28cf7c39a9","files":[],"subMetas":{},"userData":{}}
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
af3096a4
...
...
@@ -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
);
}
}
}
...
...
assets/resources/FailPrizePanel2.meta
0 → 100644
View file @
af3096a4
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"27814f71-3950-49ad-8129-772981da3cc1","files":[],"subMetas":{},"userData":{}}
assets/resources/FailPrizePanel2/FailPrizePanel2.prefab
0 → 100644
View file @
af3096a4
This diff is collapsed.
Click to expand it.
assets/resources/FailPrizePanel2/FailPrizePanel2.prefab.meta
0 → 100644
View file @
af3096a4
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "1c56db5b-6e01-4df2-a8db-e09cb41cae27",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "FailPrizePanel2"
}
}
assets/resources/FailPrizePanel2/png.meta
0 → 100644
View file @
af3096a4
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"69f40a6b-cdcb-4fc0-bc38-5e5a049e7fd3","files":[],"subMetas":{},"userData":{}}
assets/resources/FailPrizePanel2/png/bg.png
0 → 100644
View file @
af3096a4
82.2 KB
assets/resources/FailPrizePanel2/png/bg.png.meta
0 → 100644
View file @
af3096a4
{
"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"
}
}
assets/resources/FailPrizePanel2/png/再试一次.png
0 → 100644
View file @
af3096a4
3.1 KB
assets/resources/FailPrizePanel2/png/再试一次.png.meta
0 → 100644
View file @
af3096a4
{
"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"
}
}
build/web-mobile/index.html
View file @
af3096a4
...
...
@@ -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/17237
76008327
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
92415869
/style.css"
/>
<style>
.sui-captcha
{
...
...
@@ -168,16 +168,16 @@
</div>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
76008327
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
92415869
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
76008327
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
92415869
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
76008327
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
92415869
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
76008327
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/17237
92415869
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
preview-template/mock/game/submit.do.json
View file @
af3096a4
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment