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
e9c5e2ea
Commit
e9c5e2ea
authored
Mar 20, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
07645dcb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
7 deletions
+54
-7
HelpBloodSkin.exml
egret/resource/skins/HelpBloodSkin.exml
+13
-3
HelpBloodPanel.ts
egret/src/panels/help/HelpBloodPanel.ts
+19
-4
config.js
mock/config.js
+3
-0
doHelpNew.json
mock/happyclear/doHelpNew.json
+19
-0
No files found.
egret/resource/skins/HelpBloodSkin.exml
View file @
e9c5e2ea
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"HelpBloodSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
>
<e:Skin
class=
"HelpBloodSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"help_blood_1_bg_png"
y=
"26"
horizontalCenter=
"0"
/>
<e:Image
source=
"help_blood_1_btn_png"
x=
"108"
y=
"918.5"
/>
<e:Image
source=
"help_blood_fail_btn_png"
x=
"108"
y=
"1070"
/>
<e:Group
y=
"855"
horizontalCenter=
"0"
>
<e:Image
id=
"helpbtn"
source=
"help_blood_1_btn_png"
x=
"0"
y=
"0"
/>
<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
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 @
e9c5e2ea
...
...
@@ -9,14 +9,28 @@ export default class HelpBloodPanel extends Panel {
start
(
data
)
{
this
.
netCallback
=
data
.
netCallback
;
this
.
code
=
data
.
code
;
'helpbtn'
;
'gobtn'
;
NetManager
.
ins
.
showLog
(
getlogItem
(
87
));
this
[
'gobtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onclick_gobtn
,
this
);
this
[
'helpbtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onClick
,
this
);
}
onclick_gobtn
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
88
));
}
onClick
(){
onClick
()
{
this
[
'helpbtn'
].
visible
=
false
;
this
[
'gobtn'
].
visible
=
true
;
NetManager
.
ins
.
showLog
(
getlogItem
(
88
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
87
));
NetManager
.
ins
.
doHelpNew
((
s
,
res
)
=>
{
this
.
netCallback
();
// doHelpFlag = true;
if
(
s
)
{
NetManager
.
ins
.
showLog
(
getlogItem
(
83
))
showToast
(
"助力成功!一起闯关赢现金吧"
)
}
else
{
...
...
@@ -35,4 +49,5 @@ export default class HelpBloodPanel extends Panel {
},
this
.
code
)
}
get
skinResKey
()
{
return
'helpGroup'
}
get
skinKey
()
{
return
'HelpBlood'
}
}
\ No newline at end of file
mock/config.js
View file @
e9c5e2ea
...
...
@@ -197,6 +197,9 @@ const config = {
},
'/activtyShareCode/getUserShareCode'
:{
data
:
'./happyclear/exchangeCoin.json'
},
'/activtyShareCode/doHelpNew'
:{
data
:
'./happyclear/doHelpNew.json'
}
};
...
...
mock/happyclear/doHelpNew.json
0 → 100644
View file @
e9c5e2ea
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571052938097
,
"data"
:
{
"invitationId"
:
null
,
"invitationCount"
:
1
,
"sysTime"
:
1571052938083
,
"endTime"
:
1571134423000
,
"completeFlag"
:
1
,
"openPrizMsg"
:
null
,
"prizeType"
:
"7"
,
"prizeName"
:
null
,
"prizeImg"
:
"//yun.dui88.com/images/201910/oblhlej3a6.png"
,
"facePrice"
:
"2"
,
"invitationUser"
:
[]
}
}
\ No newline at end of file
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