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
1833508d
Commit
1833508d
authored
Mar 23, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e9c5e2ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
HelpBloodSkin.exml
egret/resource/skins/HelpBloodSkin.exml
+5
-5
HelpBloodPanel.ts
egret/src/panels/help/HelpBloodPanel.ts
+6
-3
No files found.
egret/resource/skins/HelpBloodSkin.exml
View file @
1833508d
...
...
@@ -6,11 +6,11 @@
<e:Image
id=
"gobtn"
source=
"help_blood_fail_btn_png"
x=
"0"
y=
"0"
visible=
"false"
/>
</e:Group>
<e:Group
y=
"88"
width=
"100%"
horizontalCenter=
"0"
>
<e:Image
id=
"txt_standby"
source=
"help_blood_1_text_png"
y=
"0"
horizontalCenter=
"0"
/>
<e:Image
id=
"txt_success"
source=
"help_blood_success_text2_png"
horizontalCenter=
"0"
/>
<e:Image
id=
"txt_error"
source=
"help_blood_fail_text_png"
horizontalCenter=
"0"
/>
<e:Image
source=
"help_blood_fail_text2_png"
x=
"355"
y=
"57
"
visible=
"false"
/>
<e:Image
source=
"help_blood_fail_text3_png"
x=
"421"
y=
"88"
visible=
"false
"
/>
<e:Image
id=
"txt_standby"
source=
"help_blood_1_text_png"
y=
"0"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"txt_success"
source=
"help_blood_success_text2_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"txt_error"
source=
"help_blood_fail_text_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"txt_error2002002016"
source=
"help_blood_fail_text2_png"
horizontalCenter=
"0
"
visible=
"false"
/>
<e:Image
id=
"txt_error2002002036"
source=
"help_blood_fail_text3_png"
horizontalCenter=
"0
"
/>
<e:Image
source=
"help_blood_fail_text4_png"
x=
"379"
y=
"21"
visible=
"false"
/>
</e:Group>
</e:Skin>
\ No newline at end of file
egret/src/panels/help/HelpBloodPanel.ts
View file @
1833508d
...
...
@@ -15,6 +15,8 @@ export default class HelpBloodPanel extends Panel {
this
[
'gobtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onclick_gobtn
,
this
);
this
[
'helpbtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onClick
,
this
);
this
[
'txt_standby'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
}
onclick_gobtn
()
{
...
...
@@ -24,16 +26,17 @@ export default class HelpBloodPanel extends Panel {
onClick
()
{
this
[
'helpbtn'
].
visible
=
false
;
this
[
'gobtn'
].
visible
=
true
;
this
[
'txt_success'
].
visible
=
true
;
NetManager
.
ins
.
showLog
(
getlogItem
(
88
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
87
));
NetManager
.
ins
.
doHelpNew
((
s
,
res
)
=>
{
this
.
netCallback
();
this
[
'txt_sutxt_standbyccess'
].
visible
=
false
;
// doHelpFlag = true;
if
(
s
)
{
this
[
'txt_success'
].
visible
=
true
;
showToast
(
"助力成功!一起闯关赢现金吧"
)
}
else
{
}
else
{
var
codeMsgs
=
{
//具体code还没给
"2002002016"
:
"不可以给自己助力哦~"
,
//
"2002002036"
:
"已经给好友助力过了哦~"
,
...
...
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