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
c6c00c21
Commit
c6c00c21
authored
Nov 13, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d9c856bf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
panelCtrl.ts
egret/libs/new_wx/ctrls/panelCtrl.ts
+3
-0
SignPanel.ts
egret/src/panels/SignPanel.ts
+5
-2
StartPanel.ts
egret/src/panels/StartPanel.ts
+2
-2
No files found.
egret/libs/new_wx/ctrls/panelCtrl.ts
View file @
c6c00c21
...
...
@@ -3,6 +3,9 @@ import Panel from "../components/Panel";
import
Loading
from
"../components/Loading"
;
import
wait
from
"../../new_tc/wait"
;
export
default
class
PanelCtrl
{
addToShowPanels
(
panelName
:
string
)
{
this
.
_panels
.
unshift
(
panelName
);
}
_params
:
any
[]
_panels
:
any
[]
_callback
:
any
;
...
...
egret/src/panels/SignPanel.ts
View file @
c6c00c21
...
...
@@ -47,7 +47,7 @@ export default class SignPanel extends Panel {
SceneCtrl
.
instance
.
updateScene
();
},
window
[
'signActivityId'
]);
});
this
.
hidePanel
();
if
(
s
)
{
const
{
customInfo
,
success
}
=
DataManager
.
ins
.
getData
(
'dosign'
);
if
(
!
success
||
!
customInfo
.
success
||
customInfo
.
prizeType
==
'none'
)
{
...
...
@@ -61,7 +61,8 @@ export default class SignPanel extends Panel {
item
.
setSinged
();
// showToast('签到成功!快去闯关吧~');
PanelCtrl
.
instance
.
show
(
'signPrize'
);
// PanelCtrl.instance.show('signPrize');
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
wait
(
200
).
then
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
updateMainTimer
();
...
...
@@ -72,6 +73,8 @@ export default class SignPanel extends Panel {
}
else
{
showToast
(
'哎呀,奖励擦肩而过!'
);
}
this
.
hidePanel
();
},
window
[
'signActivityId'
])
console
.
log
(
data
);
};
...
...
egret/src/panels/StartPanel.ts
View file @
c6c00c21
...
...
@@ -37,11 +37,11 @@ showlog(){
const
homedata
=
getHomeData
();
if
(
data
>
homedata
.
levels
.
length
)
{
addAdComp
(
84
,
9
11
-
10
,
this
,
29
);
addAdComp
(
84
,
9
01
,
this
,
29
);
NetManager
.
ins
.
showLog
(
getlogItem
(
29
));
}
else
addRankFriendList
(
84
,
9
11
-
10
,
this
,
data
);
addRankFriendList
(
84
,
9
01
,
this
,
data
);
setGlow
(
this
[
'levelTxt'
],
0xfa4b09
,
1
);
this
[
'levelTxt'
].
text
=
`第
${
data
}
关`
;
...
...
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