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
ea34ec9d
Commit
ea34ec9d
authored
Sep 23, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3f72dc9e
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1805 additions
and
549 deletions
+1805
-549
codeStyleConfig.xml
.idea/codeStyles/codeStyleConfig.xml
+5
-0
workspace.xml
.idea/workspace.xml
+43
-25
babycare.getGameInfo.json
mock/miniTb/babycare.getGameInfo.json
+435
-333
babycare.getIndex.json
mock/miniTb/babycare.getIndex.json
+1319
-187
MapScene.ts
src/scene/map/MapScene.ts
+1
-2
MapTop.ts
src/scene/map/MapTop.ts
+2
-2
No files found.
.idea/codeStyles/codeStyleConfig.xml
0 → 100644
View file @
ea34ec9d
<component
name=
"ProjectCodeStyleConfiguration"
>
<state>
<option
name=
"PREFERRED_PROJECT_CODE_STYLE"
value=
"Default"
/>
</state>
</component>
\ No newline at end of file
.idea/workspace.xml
View file @
ea34ec9d
This diff is collapsed.
Click to expand it.
mock/miniTb/babycare.getGameInfo.json
View file @
ea34ec9d
{
"code"
:
"000000"
,
"data"
:
{
"currentLevel"
:
120
,
"visitors"
:
[
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
57340
,
"level"
:
107
,
"createTime"
:
1596426790338
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596426790338
,
"_id"
:
"5f278a26964f9706aa6a0f6a"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
61920
,
"level"
:
90
,
"createTime"
:
1596426870046
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596426967833
,
"_id"
:
"5f278a7675cfb6d7c12b4a34"
,
"stars"
:
3
,
"isPrizeLevel"
:
true
,
"sendAwardType"
:
"prize"
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
71960
,
"level"
:
30
,
"createTime"
:
1596167666174
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596167666174
,
"_id"
:
"5f2395f275cfb6d7c120368e"
,
"stars"
:
3
,
"isPrizeLevel"
:
true
,
"sendAwardType"
:
"prize"
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
33790
,
"level"
:
29
,
"createTime"
:
1596167581587
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596167581587
,
"_id"
:
"5f23959d964f9706aa5eee7c"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
22440
,
"level"
:
28
,
"createTime"
:
1596097857555
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596097857555
,
"_id"
:
"5f228541738989c8b3f71b0e"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
61340
,
"level"
:
27
,
"createTime"
:
1596097814868
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596097814868
,
"_id"
:
"5f228516ef5071ef853e122c"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
43200
,
"level"
:
26
,
"createTime"
:
1596097739299
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596097739299
,
"_id"
:
"5f2284cb9897b44ce1d55d80"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
35330
,
"level"
:
25
,
"createTime"
:
1596097712583
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisi tSuccess"
:
true
,
{
"code"
:
"000000"
,
"data"
:
{
"currentLevel"
:
118
,
"visitors"
:
[
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
57340
,
"level"
:
107
,
"createTime"
:
1596426790338
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596426790338
,
"_id"
:
"5f278a26964f9706aa6a0f6a"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
61920
,
"level"
:
90
,
"createTime"
:
1596426870046
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596426967833
,
"_id"
:
"5f278a7675cfb6d7c12b4a34"
,
"stars"
:
3
,
"isPrizeLevel"
:
true
,
"sendAwardType"
:
"prize"
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
71960
,
"level"
:
30
,
"createTime"
:
1596167666174
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596167666174
,
"_id"
:
"5f2395f275cfb6d7c120368e"
,
"stars"
:
3
,
"isPrizeLevel"
:
true
,
"sendAwardType"
:
"prize"
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
33790
,
"level"
:
29
,
"createTime"
:
1596167581587
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596167581587
,
"_id"
:
"5f23959d964f9706aa5eee7c"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
22440
,
"level"
:
28
,
"createTime"
:
1596097857555
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596097857555
,
"_id"
:
"5f228541738989c8b3f71b0e"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
61340
,
"level"
:
27
,
"createTime"
:
1596097814868
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596097814868
,
"_id"
:
"5f228516ef5071ef853e122c"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
43200
,
"level"
:
26
,
"createTime"
:
1596097739299
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisitSuccess"
:
true
,
"updateTime"
:
1596097739299
,
"_id"
:
"5f2284cb9897b44ce1d55d80"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
35330
,
"level"
:
25
,
"createTime"
:
1596097712583
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"isVisi tSuccess"
:
true
,
"updateTime"
:
1596097712583
,
"_id"
:
"5f2284b0c3ad349c09931d20"
,
"stars"
:
3
,
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
},
},
{
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"score"
:
19030
,
...
...
@@ -317,7 +419,7 @@
"isPrizeLevel"
:
false
,
"sendAwardType"
:
true
}
],
],
"prizes"
:
[
{
"receiveTime"
:
""
,
...
...
@@ -331,7 +433,7 @@
"STEPS"
:
103
,
"BOOMS"
:
95
}
},
},
"success"
:
true
,
"message"
:
"成功"
}
mock/miniTb/babycare.getIndex.json
View file @
ea34ec9d
This diff is collapsed.
Click to expand it.
src/scene/map/MapScene.ts
View file @
ea34ec9d
...
...
@@ -218,6 +218,7 @@ export class MapScene extends Scene {
const
midData
=
arr
;
// 剩下的是中间的数据
let
maxHeight
=
MapTop
.
HEIGHT
;
this
.
mapContainer
.
addChild
(
new
MapTop
(
topData
));
// 最后加,因为有个层级问题
for
(
let
i
=
midData
.
length
/
10
-
1
;
i
>=
0
;
i
--
)
{
const
data
=
midData
.
splice
(
i
*
10
,
10
);
...
...
@@ -232,8 +233,6 @@ export class MapScene extends Scene {
bottom
.
y
=
maxHeight
;
maxHeight
+=
MapBottom
.
HEIGHT
;
this
.
mapContainer
.
addChild
(
new
MapTop
(
topData
));
// 最后加,因为有个层级问题
this
.
scrollPage
.
maxDistance
=
maxHeight
;
this
.
scrollPage
.
scrollTo
(
maxHeight
,
0
);
...
...
src/scene/map/MapTop.ts
View file @
ea34ec9d
...
...
@@ -9,8 +9,8 @@ export default class MapTop extends MapPart {
protected
totalCount
=
2
;
public
btnPos
=
[
[
207
,
4
18
],
[
149
,
2
8
2
],
[
207
,
4
00
],
[
149
,
2
7
2
],
];
constructor
(
data
)
{
...
...
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