Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
d557c1ea
Commit
d557c1ea
authored
Nov 28, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d68ee068
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
TaskCenterNoPrize.ts
egret/src/panels/TaskCenter/TaskCenterNoPrize.ts
+3
-2
TaskCenterPrize.ts
egret/src/panels/TaskCenter/TaskCenterPrize.ts
+3
-2
No files found.
egret/src/panels/TaskCenter/TaskCenterNoPrize.ts
View file @
d557c1ea
...
...
@@ -31,7 +31,7 @@ export default class TaskCenterNoPrize extends Panel {
// 修改按钮监听
// 修改提示文案
this
.
btnLabel
.
text
=
(
taskData
.
limit
==
taskData
.
done
)
?
"继续闯关"
:
(
taskData
.
tips
||
'继续完成'
);
this
.
btn
Label
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
taskData
.
limit
==
taskData
.
done
)
{
// 去闯关
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
...
...
@@ -41,7 +41,8 @@ export default class TaskCenterNoPrize extends Panel {
}
PanelCtrl
.
instance
.
show
(
"StartPanel"
,
getHomeData
().
levels
.
length
+
1
);
}
else
{
window
.
open
(
taskData
.
data
.
appIncompletelink
);
window
.
open
(
taskData
.
appIncompletelink
);
super
.
hidePanel
();
}
},
this
);
...
...
egret/src/panels/TaskCenter/TaskCenterPrize.ts
View file @
d557c1ea
...
...
@@ -31,7 +31,7 @@ export default class TaskCenterPrize extends Panel {
if
(
taskData
.
limit
==
taskData
.
done
)
{
NetManager
.
ins
.
showLog
(
getlogItem
(
66
));
}
this
.
btn
Label
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
taskData
.
limit
==
taskData
.
done
)
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
66
));
// 去闯关
...
...
@@ -42,7 +42,8 @@ export default class TaskCenterPrize extends Panel {
}
PanelCtrl
.
instance
.
show
(
"StartPanel"
,
getHomeData
().
levels
.
length
+
1
);
}
else
{
window
.
open
(
taskData
.
data
.
appIncompletelink
);
window
.
open
(
taskData
.
appIncompletelink
);
super
.
hidePanel
();
}
},
this
);
...
...
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