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
4a6e8ddb
Commit
4a6e8ddb
authored
Oct 13, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1ffc773b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
63 deletions
+84
-63
workspace.xml
.idea/workspace.xml
+34
-38
output.js
output.js
+25
-12
output.js.map
output.js.map
+1
-1
hairballPiece9.png
resource/playScene/hairballPiece9.png
+0
-0
SuccessPrizePanel.ts
src/panels/SuccessPrizePanel.ts
+8
-8
MapScene.ts
src/scene/map/MapScene.ts
+16
-4
No files found.
.idea/workspace.xml
View file @
4a6e8ddb
This diff is collapsed.
Click to expand it.
output.js
View file @
4a6e8ddb
...
...
@@ -13554,12 +13554,22 @@ var Tools = (function () {
Tools.propInfo.hammers = data.tools.hammers || 0;
}
Tools.propInfo.power = data.power || 0;
my.getServerTime({
success: function (t) {
Tools.actEnd = (+res.data.endTime <= +t.time);
Tools.actStart = (+t.time >= +res.data.startTime);
}
});
if (my && my.getServerTime) {
my.getServerTime({
success: function (t) {
Tools.actEnd = (+res.data.endTime <= +t.time);
Tools.actStart = (+t.time >= +res.data.startTime);
},
failed: function () {
Tools.actEnd = (+res.data.endTime <= Date.now());
Tools.actStart = (Date.now() >= +res.data.startTime);
}
});
}
else {
Tools.actEnd = (+res.data.endTime <= Date.now());
Tools.actStart = (Date.now() >= +res.data.startTime);
}
}
r(s);
});
...
...
@@ -20965,7 +20975,6 @@ var MapScene_1 = __webpack_require__(/*! ../scene/map/MapScene */ "./src/scene/m
var MouseEvent = FYGE.MouseEvent;
var Button = FYGE.Button;
var Texture = FYGE.Texture;
var TaoBaoNet_1 = __webpack_require__(/*! ../TaoBaoNet */ "./src/TaoBaoNet.ts");
var propImg = (_a = {},
_a[PropType_1.PropType.BOOMS] = 'boomBtn.png',
_a[PropType_1.PropType.HAMMERS] = 'hammerBtn.png',
...
...
@@ -21055,9 +21064,7 @@ var SuccessPrizePanel = (function (_super) {
_super.prototype.start.call(this);
};
SuccessPrizePanel.prototype.lookPrize = function () {
ctrls_1.changeScene(MapScene_1.MapScene);
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.navigateTo, { url: '/pages/myprize/myprize' }, function () {
}, true);
ctrls_1.changeScene(MapScene_1.MapScene, { doSomething: 'toMyPrize' });
_super.prototype.hidePanel.call(this);
};
SuccessPrizePanel.prototype.again = function () {
...
...
@@ -21187,13 +21194,13 @@ var TaskPanel = (function (_super) {
this.isShowing = true;
this.y = layers_1.layers.stageHeight + this.height;
Tween.get(this)
.to({ y:
0
}, 500, Ease.quartOut)
.to({ y:
80 - layers_1.layers.stageOffsetY
}, 500, Ease.quartOut)
.call(function () {
_this.isShowing = false;
});
};
TaskPanel.prototype.initUi = function () {
this.scroll = this.addChild(new ScrollList(TaskItem, 700, 180, 700, 8
0
8));
this.scroll = this.addChild(new ScrollList(TaskItem, 700, 180, 700, 8
7
8));
this.scroll.position.set(25, 670);
};
TaskPanel.prototype.start = function (data) {
...
...
@@ -24464,6 +24471,12 @@ var MapScene = (function (_super) {
ctrls_1.showPanel(FreePowerPanel_1.FreePowerPanel);
Tools_1.Tools.globalData.loginAddPower = false;
}
if (this.data && this.data.doSomething && this.data.doSomething == 'toMyPrize') {
setTimeout(function () {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.navigateTo, { url: '/pages/myprize/myprize' }, function () {
}, true);
}, 100);
}
};
MapScene.prototype.updateMapCheck = function () {
var _this = this;
output.js.map
View file @
4a6e8ddb
This diff is collapsed.
Click to expand it.
resource/playScene/hairballPiece9.png
deleted
100644 → 0
View file @
1ffc773b
1.32 KB
src/panels/SuccessPrizePanel.ts
View file @
4a6e8ddb
...
...
@@ -110,14 +110,14 @@ export class SuccessPrizePanel extends Panel {
* 查看奖品
*/
private
lookPrize
()
{
changeScene
(
MapScene
);
sendTbNet
(
TbNetName
.
navigateTo
,
{
url
:
'/pages/myprize/myprize'
},
()
=>
{
},
true
);
changeScene
(
MapScene
,
{
doSomething
:
'toMyPrize'
}
);
//
sendTbNet(
//
TbNetName.navigateTo,
//
{ url: '/pages/myprize/myprize' },
//
() => {
//
},
//
true
//
);
super
.
hidePanel
();
}
...
...
src/scene/map/MapScene.ts
View file @
4a6e8ddb
...
...
@@ -56,6 +56,18 @@ export class MapScene extends Scene {
Tools
.
globalData
.
loginAddPower
=
false
;
}
if
(
this
.
data
&&
this
.
data
.
doSomething
&&
this
.
data
.
doSomething
==
'toMyPrize'
)
{
setTimeout
(()
=>
{
sendTbNet
(
TbNetName
.
navigateTo
,
{
url
:
'/pages/myprize/myprize'
},
()
=>
{
},
true
);
},
100
);
}
}
private
updateMapCheck
()
{
...
...
@@ -93,7 +105,7 @@ export class MapScene extends Scene {
mapGuide
.
mouseEnable
=
false
;
const
guide_check
=
guide
.
addChild
(
new
CheckBtn
({
check
:
1
}));
const
guide_check
=
guide
.
addChild
(
new
CheckBtn
({
check
:
1
}));
guide_check
.
enabled
=
true
;
guide_check
.
type
=
CHECK_TYPE
.
CUR
;
guide_check
.
position
.
set
(
MapScene
.
checkArr
[
1
].
x
,
MapScene
.
checkArr
[
1
].
y
+
140
*
layers
.
stageOffsetY
/
812
);
...
...
@@ -120,7 +132,7 @@ export class MapScene extends Scene {
guide
.
alpha
=
0
;
Tween
.
get
(
guide
)
.
to
({
alpha
:
1
},
600
,
Ease
.
quadInOut
);
.
to
({
alpha
:
1
},
600
,
Ease
.
quadInOut
);
// Tween.get(guide_fox)
// .wait(300)
...
...
@@ -178,7 +190,7 @@ export class MapScene extends Scene {
const
arr
=
new
Array
(
120
);
for
(
let
i
=
0
;
i
<
120
;
i
++
)
{
arr
[
i
]
=
{
check
:
i
+
1
};
arr
[
i
]
=
{
check
:
i
+
1
};
}
arr
.
reverse
();
...
...
@@ -243,7 +255,7 @@ export class MapScene extends Scene {
// 如果有邀请人就去助力
if
(
Tools
.
globalData
.
inviteId
)
{
sendTbNet
(
TbNetName
.
doHelp
,
{
inviteId
:
Tools
.
globalData
.
inviteId
},
sendTbNet
(
TbNetName
.
doHelp
,
{
inviteId
:
Tools
.
globalData
.
inviteId
},
(
success
,
res
)
=>
{
Tools
.
globalData
.
inviteId
=
null
;
if
(
success
)
showToast
(
'助力成功'
);
...
...
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