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
2385f210
Commit
2385f210
authored
Sep 05, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
3f72dc9e
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
16 deletions
+25
-16
babycare.getAppointCount.json
mock/miniTb/babycare.getAppointCount.json
+4
-0
output.js
output.js
+6
-6
output.js.map
output.js.map
+1
-1
TaoBaoNet.ts
src/TaoBaoNet.ts
+3
-4
MapScene.ts
src/scene/map/MapScene.ts
+3
-1
MapTop.ts
src/scene/map/MapTop.ts
+6
-2
MapUI.ts
src/scene/map/MapUI.ts
+1
-1
Chapter4.ts
src/something/chapters/Chapter4.ts
+1
-1
No files found.
mock/miniTb/babycare.getAppointCount.json
0 → 100644
View file @
2385f210
{
"success"
:
true
,
"data"
:
44
}
\ No newline at end of file
output.js
View file @
2385f210
...
...
@@ -11458,7 +11458,7 @@ var TbNetName;
TbNetName["completeTask"] = "babycare.completeTask";
TbNetName["getTaskList"] = "babycare.getTaskList";
TbNetName["luckyDraw"] = "babycare.luckyDraw";
TbNetName["getAppointCount"] = "
min
e.getAppointCount";
TbNetName["getAppointCount"] = "
babycar
e.getAppointCount";
TbNetName["authorize"] = "mine.authorize";
TbNetName["favorShop"] = "mine.favorShop";
TbNetName["getUserAddress"] = "mine.getUserAddress";
...
...
@@ -22593,6 +22593,7 @@ var MapScene = (function (_super) {
var bottomData = arr.splice(0, 8);
var midData = arr;
var maxHeight = MapTop_1.default.HEIGHT;
this.mapContainer.addChild(new MapTop_1.default(topData));
for (var i = midData.length / 10 - 1; i >= 0; i--) {
var data = midData.splice(i * 10, 10);
var nMid = new MapMid_1.default(data);
...
...
@@ -22604,7 +22605,6 @@ var MapScene = (function (_super) {
this.mapContainer.addChild(bottom);
bottom.y = maxHeight;
maxHeight += MapBottom_1.default.HEIGHT;
this.mapContainer.addChild(new MapTop_1.default(topData));
this.scrollPage.maxDistance = maxHeight;
this.scrollPage.scrollTo(maxHeight, 0);
this.scrollToCheck(1);
...
...
@@ -22696,8 +22696,8 @@ var MapTop = (function (_super) {
var _this = _super.call(this, data) || this;
_this.totalCount = 2;
_this.btnPos = [
[207, 4
18
],
[149, 2
8
2],
[207, 4
00
],
[149, 2
7
2],
];
_this.data = data;
_this.bg.texture = RES_1.RES.getRes('map_bg3.jpg');
...
...
@@ -22870,7 +22870,7 @@ var MapUI = (function (_super) {
__extends(class_1, _super);
function class_1() {
var _this = _super.call(this, RES_1.RES.getRes("appointCountBg.png")) || this;
_this.addChild(Tools_1.Tools.getText(res.data + "\u4EBA\u5DF2\u89E3\u9501120\u5173", 26, "#ffffff", TEXT_ALIGN.CENTER, 259, 0,
10
));
_this.addChild(Tools_1.Tools.getText(res.data + "\u4EBA\u5DF2\u89E3\u9501120\u5173", 26, "#ffffff", TEXT_ALIGN.CENTER, 259, 0,
8
));
return _this;
}
return class_1;
...
...
@@ -29694,7 +29694,7 @@ exports.Chapters4 = [
passTarget: { type: 1, elements: [{ type: 1, count: 90 }] },
starScores: [5000, 11000, 20000],
map: {
lattices: [0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], connectedLats: [[11, 29], [12, 30], [13, 31], [14, 32], [15, 33]], elements: [0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 0, 0, 0,
6, 7, 7, 7, 7, 7, 6
, 0, 0, 6, 7, 7, 7, 7, 7, 6, 0, 0, 2, 7, 7, 7, 7, 7, 2, 0, 0, 0, 2, 6, 2, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], baseElements: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], recycles: [], generateLats: [{ index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 6, type: null }, { index: 11, type: null }, { index: 12, type: null }, { index: 13, type: null }, { index: 14, type: null }, { index: 15, type: null }]
lattices: [0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], connectedLats: [[11, 29], [12, 30], [13, 31], [14, 32], [15, 33]], elements: [0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 0, 0, 0,
7, 7, 7, 7, 7, 7, 7
, 0, 0, 6, 7, 7, 7, 7, 7, 6, 0, 0, 2, 7, 7, 7, 7, 7, 2, 0, 0, 0, 2, 6, 2, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], baseElements: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], recycles: [], generateLats: [{ index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 6, type: null }, { index: 11, type: null }, { index: 12, type: null }, { index: 13, type: null }, { index: 14, type: null }, { index: 15, type: null }]
}
},
{
output.js.map
View file @
2385f210
This diff is collapsed.
Click to expand it.
src/TaoBaoNet.ts
View file @
2385f210
...
...
@@ -81,13 +81,12 @@ export enum TbNetName {
* activityId
*/
luckyDraw
=
"babycare.luckyDraw"
,
///////////////////前端调用接口都加个mine
/**
* 获取120名通关的人数
*/
getAppointCount
=
"mine.getAppointCount"
,
getAppointCount
=
"babycare.getAppointCount"
,
///////////////////前端调用接口都加个mine
////带用户操作,和index.js特殊操作的
/**
...
...
src/scene/map/MapScene.ts
View file @
2385f210
...
...
@@ -219,6 +219,8 @@ export class MapScene extends Scene {
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
);
const
nMid
=
new
MapMid
(
data
);
...
...
@@ -232,7 +234,7 @@ export class MapScene extends Scene {
bottom
.
y
=
maxHeight
;
maxHeight
+=
MapBottom
.
HEIGHT
;
this
.
mapContainer
.
addChild
(
new
MapTop
(
topData
));
// 最后加,因为有个层级问题
//
this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题
this
.
scrollPage
.
maxDistance
=
maxHeight
;
this
.
scrollPage
.
scrollTo
(
maxHeight
,
0
);
...
...
src/scene/map/MapTop.ts
View file @
2385f210
...
...
@@ -8,9 +8,13 @@ export default class MapTop extends MapPart {
protected
totalCount
=
2
;
// public btnPos = [
// [207, 418],
// [149, 282],
// ];
public
btnPos
=
[
[
207
,
4
18
],
[
149
,
2
8
2
],
[
207
,
4
00
],
[
149
,
2
7
2
],
];
constructor
(
data
)
{
...
...
src/scene/map/MapUI.ts
View file @
2385f210
...
...
@@ -114,7 +114,7 @@ export default class MapUI extends Container {
26
,
"#ffffff"
,
TEXT_ALIGN
.
CENTER
,
259
,
0
,
9
0
,
8
))
}
})
...
...
src/something/chapters/Chapter4.ts
View file @
2385f210
...
...
@@ -266,7 +266,7 @@ export const Chapters4: ChapterData[] = [
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
1
,
count
:
90
}]
},
starScores
:
[
5000
,
11000
,
20000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
connectedLats
:
[[
11
,
29
],
[
12
,
30
],
[
13
,
31
],
[
14
,
32
],
[
15
,
33
]],
elements
:
[
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
7
,
7
,
7
,
7
,
7
,
0
,
0
,
0
,
6
,
7
,
7
,
7
,
7
,
7
,
6
,
0
,
0
,
6
,
7
,
7
,
7
,
7
,
7
,
6
,
0
,
0
,
2
,
7
,
7
,
7
,
7
,
7
,
2
,
0
,
0
,
0
,
2
,
6
,
2
,
6
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
11
,
type
:
null
},
{
index
:
12
,
type
:
null
},
{
index
:
13
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
15
,
type
:
null
}]
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
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
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
11
,
type
:
null
},
{
index
:
12
,
type
:
null
},
{
index
:
13
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
15
,
type
:
null
}]
}
},
//71
...
...
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