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
ab71e2bb
Commit
ab71e2bb
authored
Dec 06, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1119ba58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
TaskCenter.ts
egret/src/panels/TaskCenter/TaskCenter.ts
+2
-1
TaskCenterNoPrize.ts
egret/src/panels/TaskCenter/TaskCenterNoPrize.ts
+2
-2
TaskCenterPrize.ts
egret/src/panels/TaskCenter/TaskCenterPrize.ts
+3
-3
No files found.
egret/src/panels/TaskCenter/TaskCenter.ts
View file @
ab71e2bb
...
...
@@ -92,6 +92,7 @@ class TaskCenterItem extends eui.ItemRenderer {
const
limit
=
this
.
data
.
limit
;
// done/limit
const
appCompleteText
=
this
.
data
.
appCompleteText
;
// 已完成文案
const
appIncompleteText
=
this
.
data
.
appIncompleteText
;
// 未完成文案
const
status
=
this
.
data
.
status
;
this
.
btnLabel
.
stroke
=
2
;
if
(
count
>
0
)
{
// 可领奖
...
...
@@ -121,7 +122,7 @@ class TaskCenterItem extends eui.ItemRenderer {
PanelCtrl
.
instance
.
show
(
'taskCenterPrize'
,
{
prizeData
:
res
,
taskData
:
this
.
data
});
},
this
.
data
.
subActivityId
);
},
this
);
}
else
if
(
done
<
limit
)
{
// 未完成
}
else
if
(
status
==
0
&&
done
<
limit
)
{
// 未完成
NetManager
.
ins
.
showLog
(
getlogItem
(
63
));
this
.
btnImg
.
source
=
'TaskCenter_'
+
'goTask'
+
'Btn_png'
;
this
.
btnLabel
.
text
=
`
${
appIncompleteText
}
(
${
done
}
/
${
limit
}
)`
;
...
...
egret/src/panels/TaskCenter/TaskCenterNoPrize.ts
View file @
ab71e2bb
...
...
@@ -30,9 +30,9 @@ export default class TaskCenterNoPrize extends Panel {
// 修改按钮文案
// 修改按钮监听
// 修改提示文案
this
.
btnLabel
.
text
=
(
taskData
.
limit
==
taskData
.
done
)
?
"继续闯关"
:
(
taskData
.
tips
||
'继续完成'
);
this
.
btnLabel
.
text
=
(
taskData
.
status
==
1
)
?
"继续闯关"
:
(
taskData
.
tips
||
'继续完成'
);
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
taskData
.
limit
==
taskData
.
done
)
{
if
(
taskData
.
status
==
1
)
{
// 去闯关
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
changeMapScene
();
...
...
egret/src/panels/TaskCenter/TaskCenterPrize.ts
View file @
ab71e2bb
...
...
@@ -30,12 +30,12 @@ export default class TaskCenterPrize extends Panel {
this
.
updateOption
(
data
.
prizeData
.
data
.
option
);
const
taskData
=
data
.
taskData
;
this
.
btnLabel
.
text
=
(
taskData
.
limit
==
taskData
.
done
)
?
"继续闯关"
:
(
taskData
.
tips
||
'继续完成'
);
if
(
taskData
.
limit
==
taskData
.
done
)
{
this
.
btnLabel
.
text
=
(
taskData
.
status
==
1
)
?
"继续闯关"
:
(
taskData
.
tips
||
'继续完成'
);
if
(
taskData
.
status
==
1
)
{
NetManager
.
ins
.
showLog
(
getlogItem
(
66
));
}
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
taskData
.
limit
==
taskData
.
done
)
{
if
(
taskData
.
status
==
1
)
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
66
));
// 去闯关
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
...
...
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