Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
翁阳
babycare_xiaoxiao
Commits
09c58fc1
Commit
09c58fc1
authored
Jul 22, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Success Panel Effect!
parent
b6293615
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
228 additions
and
30 deletions
+228
-30
workspace.xml
.idea/workspace.xml
+40
-27
babycare.getIndex.json
mock/miniTb/babycare.getIndex.json
+16
-1
prizePanel.png
resource/PrizePanel/prizePanel.png
+0
-0
prizePanelBtn.png
resource/PrizePanel/prizePanelBtn.png
+0
-0
res.json
resource/res.json
+4
-0
ResJson.ts
src/ResJson.ts
+4
-0
SkinJson.ts
src/SkinJson.ts
+65
-0
TaoBaoNet.ts
src/TaoBaoNet.ts
+3
-0
PrizePanel.ts
src/panels/PrizePanel.ts
+91
-0
MapScene.ts
src/scene/map/MapScene.ts
+5
-2
No files found.
.idea/workspace.xml
View file @
09c58fc1
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
"Success Panel Effect!"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/PrizePanel/prizePanel.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/PrizePanel/prizePanelBtn.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/panels/PrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/babycare.g
ameOver.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.gameOver
.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/babycare.g
etIndex.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.getIndex
.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/SkinJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/SkinJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/TaoBaoNet.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/TaoBaoNet.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -15,8 +21,8 @@
...
@@ -15,8 +21,8 @@
<component
name=
"FileTemplateManagerImpl"
>
<component
name=
"FileTemplateManagerImpl"
>
<option
name=
"RECENT_TEMPLATES"
>
<option
name=
"RECENT_TEMPLATES"
>
<list>
<list>
<option
value=
"TypeScript File"
/>
<option
value=
"JsonFile"
/>
<option
value=
"JsonFile"
/>
<option
value=
"TypeScript File"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -48,22 +54,22 @@
...
@@ -48,22 +54,22 @@
<property
name=
"ts.external.directory.path"
value=
"$PROJECT_DIR$/node_modules/typescript/lib"
/>
<property
name=
"ts.external.directory.path"
value=
"$PROJECT_DIR$/node_modules/typescript/lib"
/>
</component>
</component>
<component
name=
"RecentsManager"
>
<component
name=
"RecentsManager"
>
<key
name=
"
Move
File.RECENT_KEYS"
>
<key
name=
"
Copy
File.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/resource/common"
/>
<recent
name=
"$PROJECT_DIR$/resource/common"
/>
<recent
name=
"$PROJECT_DIR$/resource/map"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/starLight"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPrizePanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPrizePanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/mapWhaleEffect"
/>
<recent
name=
"$PROJECT_DIR$/src/scene/map"
/>
</key>
</key>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"MoveFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/resource/PrizePanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/common"
/>
<recent
name=
"$PROJECT_DIR$/resource/common"
/>
<recent
name=
"$PROJECT_DIR$/resource/map"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/starLight"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPrizePanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPrizePanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/mapWhaleEffect"
/>
</key>
</key>
</component>
</component>
<component
name=
"RunManager"
selected=
"npm.
dev
"
>
<component
name=
"RunManager"
selected=
"npm.
flushRes
"
>
<configuration
name=
"dev"
type=
"js.build_tools.npm"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"dev"
type=
"js.build_tools.npm"
temporary=
"true"
nameIsGenerated=
"true"
>
<package-json
value=
"$PROJECT_DIR$/package.json"
/>
<package-json
value=
"$PROJECT_DIR$/package.json"
/>
<command
value=
"run"
/>
<command
value=
"run"
/>
...
@@ -87,8 +93,8 @@
...
@@ -87,8 +93,8 @@
</configuration>
</configuration>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.dev"
/>
</list>
</list>
</recent_temporary>
</recent_temporary>
</component>
</component>
...
@@ -114,7 +120,7 @@
...
@@ -114,7 +120,7 @@
<workItem
from=
"1595209499266"
duration=
"21574000"
/>
<workItem
from=
"1595209499266"
duration=
"21574000"
/>
<workItem
from=
"1595296313180"
duration=
"16175000"
/>
<workItem
from=
"1595296313180"
duration=
"16175000"
/>
<workItem
from=
"1595382049907"
duration=
"765000"
/>
<workItem
from=
"1595382049907"
duration=
"765000"
/>
<workItem
from=
"1595382857407"
duration=
"
1467
000"
/>
<workItem
from=
"1595382857407"
duration=
"
4145
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
<created>
1594122339119
</created>
...
@@ -305,7 +311,14 @@
...
@@ -305,7 +311,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1595315161168
</updated>
<updated>
1595315161168
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"28"
/>
<task
id=
"LOCAL-00028"
summary=
"Success Panel Effect!"
>
<created>
1595384472225
</created>
<option
name=
"number"
value=
"00028"
/>
<option
name=
"presentableId"
value=
"LOCAL-00028"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1595384472225
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"29"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -331,30 +344,30 @@
...
@@ -331,30 +344,30 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"251"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594113080922"
/>
<state
x=
"251"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594113080922"
/>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2"
timestamp=
"15953
15196034
"
>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2"
timestamp=
"15953
84471849
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15953
15196034
"
/>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15953
84471849
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"159538
2861578
"
>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"159538
6044593
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373239"
/>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373239"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
2861578
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
6044593
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"159538
2861577
"
>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"159538
6044592
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373238"
/>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373238"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
2861577
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
6044592
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"159538
2861576
"
>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"159538
6044591
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373237"
/>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373237"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
2861576
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
6044591
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"159538
2861578
"
>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"159538
6044592
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373239"
/>
<state
width=
"866"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595348373239"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
2861578
"
/>
<state
width=
"873"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
6044592
"
/>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
...
@@ -367,10 +380,10 @@
...
@@ -367,10 +380,10 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"300"
y=
"248"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798992724"
/>
<state
x=
"300"
y=
"248"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798992724"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"15953
15162424
"
>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"15953
84473491
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15953
15162424
"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15953
84473491
"
/>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
...
@@ -395,9 +408,9 @@
...
@@ -395,9 +408,9 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594712635697"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594712635697"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"159538
4304191
"
>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"159538
7031010
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
4304191
"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159538
7031010
"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
mock/miniTb/babycare.getIndex.json
View file @
09c58fc1
...
@@ -128,6 +128,21 @@
...
@@ -128,6 +128,21 @@
"sendAwardType"
:
"prize"
"sendAwardType"
:
"prize"
}
}
],
],
"isFristLogin"
:
false
"isFristLogin"
:
false
,
"topAward"
:
{
"image"
:
"https://img.alicdn.com/imgextra/i1/2275046294/O1CN01TrcMYF1wMhRuCphHI_!!2275046294-2-miniprogram.png"
,
"level"
:
90
,
"drawStatus"
:
1
,
"openId"
:
"AAHuCvE-ALiIWXYsJuTb5S4W"
,
"createDay"
:
"2020/07/14"
,
"avatar"
:
"sdfwerwerwer"
,
"type"
:
3
,
"prizeId"
:
"5f08084e0cb7338a0a377c8d"
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"ename"
:
""
,
"userNick"
:
"wmmmmm"
,
"name"
:
"90关奖品4"
,
"_id"
:
"AAHuCvE-ALiIWXYsJuTb5S4W1594715684002"
}
}
}
}
}
resource/PrizePanel/prizePanel.png
0 → 100644
View file @
09c58fc1
144 KB
resource/PrizePanel/prizePanelBtn.png
0 → 100644
View file @
09c58fc1
16.1 KB
resource/res.json
View file @
09c58fc1
...
@@ -32,6 +32,10 @@
...
@@ -32,6 +32,10 @@
"keys"
:
"步数耗尽Bg.png,步数耗尽复活.png,步数耗尽结束按钮.png"
,
"keys"
:
"步数耗尽Bg.png,步数耗尽复活.png,步数耗尽结束按钮.png"
,
"name"
:
"NoStepPanel"
"name"
:
"NoStepPanel"
},
},
{
"keys"
:
"prizePanel.png,prizePanelBtn.png"
,
"name"
:
"PrizePanel"
},
{
{
"keys"
:
"活动规则背景.png"
,
"keys"
:
"活动规则背景.png"
,
"name"
:
"RulePanel"
"name"
:
"RulePanel"
...
...
src/ResJson.ts
View file @
09c58fc1
...
@@ -32,6 +32,10 @@ export const ResJson = {
...
@@ -32,6 +32,10 @@ export const ResJson = {
"keys"
:
"步数耗尽Bg.png,步数耗尽复活.png,步数耗尽结束按钮.png"
,
"keys"
:
"步数耗尽Bg.png,步数耗尽复活.png,步数耗尽结束按钮.png"
,
"name"
:
"NoStepPanel"
"name"
:
"NoStepPanel"
},
},
{
"keys"
:
"prizePanel.png,prizePanelBtn.png"
,
"name"
:
"PrizePanel"
},
{
{
"keys"
:
"活动规则背景.png"
,
"keys"
:
"活动规则背景.png"
,
"name"
:
"RulePanel"
"name"
:
"RulePanel"
...
...
src/SkinJson.ts
View file @
09c58fc1
...
@@ -720,6 +720,71 @@ export const SkinJson = {
...
@@ -720,6 +720,71 @@ export const SkinJson = {
}
}
]
]
},
},
{
"name"
:
"PrizePanel"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"背景"
,
"x"
:
55
,
"y"
:
376
,
"alpha"
:
1
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"prizePanel.png"
}
},
{
"name"
:
"关闭按钮"
,
"x"
:
631
,
"y"
:
500
,
"alpha"
:
1
,
"type"
:
"button"
,
"props"
:
{
"tUp"
:
"关闭按钮.png"
},
"id"
:
"closeBtn"
},
{
"name"
:
"文案"
,
"x"
:
203
,
"y"
:
650
,
"alpha"
:
1
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"恭喜获得XX奖品"
,
"size"
:
34
,
"fillColor"
:
"#df5942"
,
"textAlpha"
:
1
},
"id"
:
"prizeTxt"
},
{
"name"
:
"prizeImg"
,
"x"
:
250
,
"y"
:
732
,
"alpha"
:
1
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
""
},
"id"
:
"prizeImg"
},
{
"name"
:
"立即领取"
,
"x"
:
163
,
"y"
:
1002
,
"alpha"
:
1
,
"type"
:
"button"
,
"props"
:
{
"tUp"
:
"prizePanelBtn.png"
},
"id"
:
"prizeBtn"
}
]
},
{
{
"name"
:
"TaskPanel"
,
"name"
:
"TaskPanel"
,
"x"
:
0
,
"x"
:
0
,
...
...
src/TaoBaoNet.ts
View file @
09c58fc1
...
@@ -15,6 +15,9 @@ export enum TbNetName {
...
@@ -15,6 +15,9 @@ export enum TbNetName {
*/
*/
getIndex
=
"babycare.getIndex"
,
getIndex
=
"babycare.getIndex"
,
// 领取权益奖励
receiveEnamePrize
=
"babycare.receiveEnamePrize"
,
/**
/**
* 活动基本信息
* 活动基本信息
...
...
src/panels/PrizePanel.ts
0 → 100644
View file @
09c58fc1
import
{
Panel
}
from
"../../module/views/Panel"
;
import
TextField
=
FYGE
.
TextField
;
import
Button
=
FYGE
.
Button
;
import
Sprite
=
FYGE
.
Sprite
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
import
Texture
=
FYGE
.
Texture
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
import
{
showToast
}
from
"../../module/ctrls"
;
import
{
Tool
}
from
"../something/Tool"
;
import
{
Tools
}
from
"../Tools"
;
export
class
PrizePanel
extends
Panel
{
get
groupNames
()
{
return
[
"PrizePanel"
]
}
get
skinName
()
{
return
"PrizePanel"
}
closeBtn
:
Button
;
prizeTxt
:
TextField
;
prizeImg
:
Sprite
;
prizeBtn
:
Button
;
initUi
()
{
this
.
prizeTxt
.
textAlign
=
TEXT_ALIGN
.
CENTER
;
this
.
prizeTxt
.
textWidth
=
750
;
this
.
prizeTxt
.
x
=
0
;
this
.
prizeTxt
.
text
=
`恭喜获得
${
this
.
data
.
name
}
`
;
this
.
prizeImg
.
anchorTexture
.
x
=
0.5
;
this
.
prizeImg
.
x
=
375
;
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
this
.
data
.
image
);
}
start
(
data
)
{
super
.
start
();
}
private
clickPrizeBtn
(){
this
.
btnDelay
(
this
.
prizeBtn
);
switch
(
this
.
data
.
type
)
{
case
1
:
// 权益
sendTbNet
(
TbNetName
.
receiveEnamePrize
,
{
id
:
this
.
data
.
id
},
(
success
,
res
)
=>
{
if
(
!
success
||
!
res
)
{
showToast
(
'奖品发放失败
\
n请前往我的奖品处进行处理'
);
this
.
hidePanel
();
return
;
}
if
(
res
.
data
)
{
showToast
(
'奖品发放成功
\
n请前往我的奖品处查看'
);
}
else
{
showToast
(
'奖品发放失败
\
n请前往我的奖品处进行处理'
);
}
this
.
hidePanel
();
},
true
);
break
;
case
3
:
// 实物
sendTbNet
(
TbNetName
.
getUserAddress
,
{
prizeId
:
this
.
data
.
id
},
(
success
,
res
)
=>
{
if
(
!
success
)
{
// showToast('奖品发放失败\n请前往我的奖品处进行处理');
return
;
}
showToast
(
'奖品发放成功
\
n请前往我的奖品处查看'
);
this
.
hidePanel
();
},
true
);
break
;
case
2
:
// 积分
case
5
:
// 谢谢参与
this
.
hidePanel
();
break
;
}
}
initEvents
()
{
super
.
initEvents
();
this
.
prizeBtn
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
clickPrizeBtn
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
this
.
prizeBtn
.
removeEventListener
(
MouseEvent
.
CLICK
,
this
.
clickPrizeBtn
,
this
);
}
}
src/scene/map/MapScene.ts
View file @
09c58fc1
...
@@ -15,6 +15,7 @@ import Tween = FYGE.Tween;
...
@@ -15,6 +15,7 @@ import Tween = FYGE.Tween;
import
Ease
=
FYGE
.
Ease
;
import
Ease
=
FYGE
.
Ease
;
import
{
showPanel
}
from
"../../../module/ctrls"
;
import
{
showPanel
}
from
"../../../module/ctrls"
;
import
{
FreePowerPanel
}
from
"../../panels/FreePowerPanel"
;
import
{
FreePowerPanel
}
from
"../../panels/FreePowerPanel"
;
import
{
PrizePanel
}
from
"../../panels/PrizePanel"
;
export
class
MapScene
extends
Scene
{
export
class
MapScene
extends
Scene
{
private
mapContainer
:
Container
=
null
;
private
mapContainer
:
Container
=
null
;
...
@@ -52,12 +53,14 @@ export class MapScene extends Scene {
...
@@ -52,12 +53,14 @@ export class MapScene extends Scene {
this
.
initMap
();
this
.
initMap
();
this
.
updateMapCheck
();
this
.
updateMapCheck
();
// showPanel(SuccessNoPrizePanel)
if
(
Tools
.
gameData
.
loginAddPower
&&
!
Tools
.
gameData
.
isFristLogin
)
{
if
(
Tools
.
gameData
.
loginAddPower
&&
!
Tools
.
gameData
.
isFristLogin
)
{
showPanel
(
FreePowerPanel
);
showPanel
(
FreePowerPanel
);
Tools
.
gameData
.
loginAddPower
=
false
;
Tools
.
gameData
.
loginAddPower
=
false
;
}
}
if
(
Tools
.
gameData
.
topAward
)
{
showPanel
(
PrizePanel
,
Tools
.
gameData
.
topAward
);
}
}
}
private
updateMapCheck
()
{
private
updateMapCheck
()
{
...
...
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