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
7c725e17
Commit
7c725e17
authored
Oct 12, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3333e8fd
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
24 deletions
+50
-24
workspace.xml
.idea/workspace.xml
+25
-23
output.js
output.js
+14
-0
output.js.map
output.js.map
+1
-1
Tools.ts
src/Tools.ts
+2
-0
CheckBtn.ts
src/scene/map/CheckBtn.ts
+4
-0
MapUI.ts
src/scene/map/MapUI.ts
+4
-0
No files found.
.idea/workspace.xml
View file @
7c725e17
This diff is collapsed.
Click to expand it.
output.js
View file @
7c725e17
...
...
@@ -13565,6 +13565,11 @@ 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);
}
});
}
r(s);
});
...
...
@@ -13758,6 +13763,7 @@ var Tools = (function () {
booms: 0,
power: 0,
};
Tools.actEnd = false;
return Tools;
}());
exports.Tools = Tools;
...
...
@@ -24031,6 +24037,10 @@ var CheckBtn = (function (_super) {
this.btn.addEventListener(MouseEvent.CLICK, this.clickStart, this);
};
CheckBtn.prototype.clickStart = function () {
if (Tools_1.Tools.actEnd) {
ctrls_1.showToast('活动已结束');
return;
}
Tools_1.Tools.btnDelay(this, 200);
console.log("\u5173\u5361:" + this.checkNum);
ctrls_1.showPanel(StartPanelPrize_1.StartPanelPrize, this.checkData);
...
...
@@ -24790,6 +24800,10 @@ var MapUI = (function (_super) {
}, true);
break;
case this.taskBtn:
if (Tools_1.Tools.actEnd) {
ctrls_1.showToast('活动已结束');
return;
}
ctrls_1.showPanel(TaskPanel_1.TaskPanel);
break;
}
output.js.map
View file @
7c725e17
This diff is collapsed.
Click to expand it.
src/Tools.ts
View file @
7c725e17
...
...
@@ -61,6 +61,7 @@ export class Tools {
// }
public
static
actEnd
:
boolean
=
false
;
public
static
actStart
:
boolean
=
true
;
public
static
baseInfo
:
{
inviteFriends
:
any
,
...
...
@@ -100,6 +101,7 @@ export class Tools {
my
.
getServerTime
({
success
:
(
t
)
=>
{
Tools
.
actEnd
=
(
+
res
.
data
.
endTime
<=
+
t
.
time
);
Tools
.
actStart
=
(
+
t
.
time
>=
+
res
.
data
.
startTime
);
}
});
}
...
...
src/scene/map/CheckBtn.ts
View file @
7c725e17
...
...
@@ -171,6 +171,10 @@ export default class CheckBtn extends Container {
}
public
clickStart
()
{
if
(
!
Tools
.
actStart
){
showToast
(
'活动未开始'
);
return
;
}
if
(
Tools
.
actEnd
)
{
showToast
(
'活动已结束'
);
return
;
...
...
src/scene/map/MapUI.ts
View file @
7c725e17
...
...
@@ -56,6 +56,10 @@ export default class MapUI extends Container {
break
;
case
this
.
taskBtn
:
if
(
!
Tools
.
actStart
){
showToast
(
'活动未开始'
);
return
;
}
if
(
Tools
.
actEnd
)
{
showToast
(
'活动已结束'
);
return
;
...
...
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