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
23963e8a
Commit
23963e8a
authored
Mar 26, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3b577f6a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
8 deletions
+27
-8
common.tmproject
egret/resource/TextureMerger/common.tmproject
+1
-1
HelpInviteSkin.exml
egret/resource/skins/HelpInviteSkin.exml
+1
-1
HelpScratchSkin.exml
egret/resource/skins/HelpScratchSkin.exml
+2
-2
HelpBloodPanel.ts
egret/src/panels/help/HelpBloodPanel.ts
+2
-1
HelpInvitePanel.ts
egret/src/panels/help/HelpInvitePanel.ts
+10
-1
HelpInvitePanel2.ts
egret/src/panels/help/HelpInvitePanel2.ts
+5
-0
HelpScratchPanel.ts
egret/src/panels/help/HelpScratchPanel.ts
+5
-1
scratchDoHelp.json
mock/happyclear/scratchDoHelp.json
+1
-1
No files found.
egret/resource/TextureMerger/common.tmproject
View file @
23963e8a
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/turnnoprize再来一次.png","../assets/common/toast.png","../assets/common/share_btn2.png","../assets/common/share_btn1.png","../assets/common/prizePanelbg.png","../assets/common/lightani.png","../assets/common/exchangebtn.png","../assets/common/common_yuanbao.png","../assets/common/common_prop3.png","../assets/common/common_prop2.png","../assets/common/common_prop1.png","../assets/common/common_prizelight.png","../assets/common/common_money.png","../assets/common/common_blood.png","../assets/common/common_adbg.png","../assets/common/commmon_okbtn1.png","../assets/common/closeCommonBtn.png","../assets/common/btn.png","../assets/common/alertbg.png","../assets/common/按钮 副本 4.png","../assets/common/按钮 副本 3.png","../assets/common/common_block.png","../assets/common/common_block_front.png","../assets/common/common_block_bg_yellow.png","../assets/common/common_block_bg_red.png","../assets/common/common_block_bg_blue.png","../assets/common/chocolate3.png","../assets/common/chocolate1.png","../assets/common/chocolate0.png","../assets/common/chocolate2.png","../assets/common/arrowbg.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/turnnoprize再来一次.png","../assets/common/toast.png","../assets/common/share_btn2.png","../assets/common/share_btn1.png","../assets/common/prizePanelbg.png","../assets/common/lightani.png","../assets/common/exchangebtn.png","../assets/common/common_yuanbao.png","../assets/common/common_prop3.png","../assets/common/common_prop2.png","../assets/common/common_prop1.png","../assets/common/common_prizelight.png","../assets/common/common_money.png","../assets/common/common_blood.png","../assets/common/common_adbg.png","../assets/common/commmon_okbtn1.png","../assets/common/closeCommonBtn.png","../assets/common/btn.png","../assets/common/alertbg.png","../assets/common/按钮 副本 4.png","../assets/common/按钮 副本 3.png","../assets/common/common_block.png","../assets/common/common_block_front.png","../assets/common/common_block_bg_yellow.png","../assets/common/common_block_bg_red.png","../assets/common/common_block_bg_blue.png","../assets/common/chocolate3.png","../assets/common/chocolate1.png","../assets/common/chocolate0.png","../assets/common/chocolate2.png","../assets/common/arrowbg.png","../assets/common/common_closebtn2.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/skins/HelpInviteSkin.exml
View file @
23963e8a
...
@@ -11,5 +11,5 @@
...
@@ -11,5 +11,5 @@
<e:Image
id=
"txt_error0200202"
horizontalCenter=
"0"
source=
"help_invite2_text3_png"
visible=
"false"
/>
<e:Image
id=
"txt_error0200202"
horizontalCenter=
"0"
source=
"help_invite2_text3_png"
visible=
"false"
/>
<e:Image
id=
"txt_error400017"
horizontalCenter=
"0"
source=
"help_invite2_text4_png"
visible=
"false"
/>
<e:Image
id=
"txt_error400017"
horizontalCenter=
"0"
source=
"help_invite2_text4_png"
visible=
"false"
/>
</e:Group>
</e:Group>
<e:Image
id=
"closeBtn"
source=
"common_closebtn2_png"
x=
"613"
y=
"
350.12
"
anchorOffsetX=
"2"
/>
<e:Image
id=
"closeBtn"
source=
"common_closebtn2_png"
x=
"613"
y=
"
200
"
anchorOffsetX=
"2"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/HelpScratchSkin.exml
View file @
23963e8a
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
<e:Image
id=
"go1btn"
source=
"help_invite_success_btn_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"go1btn"
source=
"help_invite_success_btn_png"
horizontalCenter=
"0"
visible=
"false"
/>
</e:Group>
</e:Group>
<e:Group
y=
"406.12"
width=
"100%"
horizontalCenter=
"0"
>
<e:Group
y=
"406.12"
width=
"100%"
horizontalCenter=
"0"
>
<e:Image
id=
"txt_standby"
y=
"0"
horizontalCenter=
"0"
source=
"help_invite_text_png"
/>
<e:Image
id=
"txt_standby"
y=
"0"
horizontalCenter=
"0"
source=
"help_invite_text_png"
visible=
"false"
/>
<e:Image
id=
"txt_success"
horizontalCenter=
"0"
source=
"help_invite_success_txt_png"
visible=
"false"
/>
<e:Image
id=
"txt_success"
horizontalCenter=
"0"
source=
"help_invite_success_txt_png"
visible=
"false"
/>
<e:Image
id=
"txt_error0000024"
source=
"help_invite_fail_text1_png"
horizontalCenter=
"0
"
visible=
"false"
/>
<e:Image
id=
"txt_error0000024"
horizontalCenter=
"0"
source=
"help_invite_fail_text4_png
"
visible=
"false"
/>
<e:Image
id=
"txt_error0000022"
source=
"help_invite_fail_text2_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"txt_error0000022"
source=
"help_invite_fail_text2_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"txt_error0000023"
source=
"help_invite_fail_text3_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"txt_error0000023"
source=
"help_invite_fail_text3_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"txt_errorxxxx"
horizontalCenter=
"0"
source=
"help_invite_fail_text4_png"
visible=
"false"
/>
<e:Image
id=
"txt_errorxxxx"
horizontalCenter=
"0"
source=
"help_invite_fail_text4_png"
visible=
"false"
/>
...
...
egret/src/panels/help/HelpBloodPanel.ts
View file @
23963e8a
...
@@ -14,6 +14,7 @@ export default class HelpBloodPanel extends Panel {
...
@@ -14,6 +14,7 @@ export default class HelpBloodPanel extends Panel {
success
;
success
;
list
:
any
[];
list
:
any
[];
async
start
(
data
)
{
async
start
(
data
)
{
super
.
start
();
this
.
netCallback
=
data
.
netCallback
;
this
.
netCallback
=
data
.
netCallback
;
this
.
code
=
data
.
code
;
this
.
code
=
data
.
code
;
NetManager
.
ins
.
showLog
(
getlogItem
(
87
));
NetManager
.
ins
.
showLog
(
getlogItem
(
87
));
...
@@ -45,7 +46,7 @@ export default class HelpBloodPanel extends Panel {
...
@@ -45,7 +46,7 @@ export default class HelpBloodPanel extends Panel {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/bloodbg.svga'
,
s
);
loadSvga
(
getResPath
()
+
'resource/assets/svgas/bloodbg.svga'
,
s
);
this
.
addChild
(
this
[
'closeBtn'
]);
}
}
onclick_gobtn
()
{
onclick_gobtn
()
{
...
...
egret/src/panels/help/HelpInvitePanel.ts
View file @
23963e8a
...
@@ -13,11 +13,13 @@ export default class HelpInvitePanel extends Panel {
...
@@ -13,11 +13,13 @@ export default class HelpInvitePanel extends Panel {
code
;
code
;
success
;
success
;
async
start
(
data
)
{
async
start
(
data
)
{
super
.
start
();
this
.
netCallback
=
data
.
netCallback
;
this
.
netCallback
=
data
.
netCallback
;
this
.
code
=
data
.
code
;
this
.
code
=
data
.
code
;
const
s
=
new
egret
.
Sprite
();
const
s
=
new
egret
.
Sprite
();
this
.
addChildAt
(
s
,
0
);
this
.
addChildAt
(
s
,
0
);
s
.
touchEnabled
=
s
.
touchChildren
=
false
;
this
[
'txt_standby'
].
visible
=
false
;
this
[
'txt_standby'
].
visible
=
false
;
this
[
'helpbtn'
].
visible
=
false
;
this
[
'helpbtn'
].
visible
=
false
;
...
@@ -25,6 +27,7 @@ export default class HelpInvitePanel extends Panel {
...
@@ -25,6 +27,7 @@ export default class HelpInvitePanel extends Panel {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invitebg.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invitebg.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
s
.
addChild
(
mv
);
s
.
addChild
(
mv
);
this
.
addChild
(
this
[
'closeBtn'
]);
mv
.
y
=
-
180
;
mv
.
y
=
-
180
;
});
});
...
@@ -34,7 +37,7 @@ export default class HelpInvitePanel extends Panel {
...
@@ -34,7 +37,7 @@ export default class HelpInvitePanel extends Panel {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/inviteAct3.svga'
),
loadSvga
(
getResPath
()
+
'resource/assets/svgas/inviteAct3.svga'
),
]);
]);
// this['list'][0].visible=false;
this
[
'list'
][
1
].
visible
=
false
;
this
[
'list'
][
1
].
visible
=
false
;
this
[
'list'
][
2
].
visible
=
false
;
this
[
'list'
][
2
].
visible
=
false
;
this
[
'list'
][
0
].
y
=
-
140
;
this
[
'list'
][
0
].
y
=
-
140
;
...
@@ -44,6 +47,12 @@ export default class HelpInvitePanel extends Panel {
...
@@ -44,6 +47,12 @@ export default class HelpInvitePanel extends Panel {
this
.
addChild
(
this
[
'list'
][
1
]);
this
.
addChild
(
this
[
'list'
][
1
]);
this
.
addChild
(
this
[
'list'
][
2
]);
this
.
addChild
(
this
[
'list'
][
2
]);
this
[
'list'
][
0
].
touchEnabled
=
this
[
'list'
][
0
].
touchChildren
=
false
;
this
[
'list'
][
1
].
touchEnabled
=
this
[
'list'
][
1
].
touchChildren
=
false
;
this
[
'list'
][
2
].
touchEnabled
=
this
[
'list'
][
2
].
touchChildren
=
false
;
this
.
addChild
(
this
[
'closeBtn'
]);
this
[
'gobtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onclick_gobtn
,
this
);
this
[
'gobtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onclick_gobtn
,
this
);
// wait(100).then(()=>{
// wait(100).then(()=>{
...
...
egret/src/panels/help/HelpInvitePanel2.ts
View file @
23963e8a
...
@@ -11,12 +11,14 @@ export default class HelpInvitePanel2 extends Panel {
...
@@ -11,12 +11,14 @@ export default class HelpInvitePanel2 extends Panel {
// netCallback;
// netCallback;
// code;
// code;
async
start
(
data
)
{
async
start
(
data
)
{
super
.
start
();
// this.netCallback = data.netCallback;
// this.netCallback = data.netCallback;
// this.code = data.code;
// this.code = data.code;
NetManager
.
ins
.
showLog
(
getlogItem
(
91
));
NetManager
.
ins
.
showLog
(
getlogItem
(
91
));
const
s
=
new
egret
.
Sprite
();
const
s
=
new
egret
.
Sprite
();
this
.
addChildAt
(
s
,
0
);
this
.
addChildAt
(
s
,
0
);
s
.
touchEnabled
=
s
.
touchChildren
=
false
;
this
[
'txt_standby'
].
visible
=
true
;
this
[
'txt_standby'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
...
@@ -24,6 +26,7 @@ export default class HelpInvitePanel2 extends Panel {
...
@@ -24,6 +26,7 @@ export default class HelpInvitePanel2 extends Panel {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invitebg.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invitebg.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
s
.
addChild
(
mv
);
s
.
addChild
(
mv
);
mv
.
y
=
-
180
;
mv
.
y
=
-
180
;
this
.
addChild
(
this
[
'closeBtn'
]);
});
});
this
[
'list'
]
=
await
Promise
.
all
([
this
[
'list'
]
=
await
Promise
.
all
([
...
@@ -36,6 +39,8 @@ export default class HelpInvitePanel2 extends Panel {
...
@@ -36,6 +39,8 @@ export default class HelpInvitePanel2 extends Panel {
this
.
addChild
(
this
[
'list'
][
0
]);
this
.
addChild
(
this
[
'list'
][
0
]);
this
[
'helpbtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onClick
,
this
);
this
[
'helpbtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onClick
,
this
);
this
.
addChild
(
this
[
'closeBtn'
]);
}
}
...
...
egret/src/panels/help/HelpScratchPanel.ts
View file @
23963e8a
...
@@ -30,13 +30,14 @@ export default class HelpScratchPanel extends Panel {
...
@@ -30,13 +30,14 @@ export default class HelpScratchPanel extends Panel {
}
}
x
+=
5
;
x
+=
5
;
this
.
myShape
.
graphics
.
lineTo
(
x
,
y
);
this
.
myShape
.
graphics
.
lineTo
(
x
,
y
);
if
(
x
>
this
[
"prizeImg"
].
x
+
(
+
this
.
data
.
completePercent
)
/
100
*
this
[
"prizeImg"
].
width
-
60
)
{
if
(
x
>
this
[
"prizeImg"
].
x
+
(
+
this
.
data
.
completePercent
)
/
100
*
this
[
"prizeImg"
].
width
)
{
return
;
return
;
}
}
this
.
setGtaphics
(
x
,
y
);
this
.
setGtaphics
(
x
,
y
);
},
20
);
},
20
);
}
}
async
start
(
data
)
{
async
start
(
data
)
{
this
.
data
.
completePercent
=
100
;
this
.
netCallback
=
data
.
netCallback
;
this
.
netCallback
=
data
.
netCallback
;
this
.
code
=
data
.
code
;
this
.
code
=
data
.
code
;
...
@@ -112,6 +113,8 @@ export default class HelpScratchPanel extends Panel {
...
@@ -112,6 +113,8 @@ export default class HelpScratchPanel extends Panel {
const
_code
=
this
.
code
.
slice
(
8
);
const
_code
=
this
.
code
.
slice
(
8
);
NetManager
.
ins
.
scratchDoHelp
(
async
(
success
,
res
)
=>
{
NetManager
.
ins
.
scratchDoHelp
(
async
(
success
,
res
)
=>
{
this
.
netCallback
();
this
.
netCallback
();
if
(
!
success
)
this
.
data
.
completePercent
=
70
;
this
.
startAni
();
this
.
startAni
();
await
wait
(
2000
);
await
wait
(
2000
);
this
[
'txt_standby'
].
visible
=
false
;
this
[
'txt_standby'
].
visible
=
false
;
...
@@ -126,6 +129,7 @@ export default class HelpScratchPanel extends Panel {
...
@@ -126,6 +129,7 @@ export default class HelpScratchPanel extends Panel {
await
play2
(
this
.
list
[
1
]);
await
play2
(
this
.
list
[
1
]);
this
[
'light'
].
visible
=
true
;
this
[
'light'
].
visible
=
true
;
}
else
{
}
else
{
// NetManager.ins.showLog(getlogItem(0));
// NetManager.ins.showLog(getlogItem(0));
this
[
'go2btn'
].
visible
=
true
;
this
[
'go2btn'
].
visible
=
true
;
this
.
list
[
2
].
visible
=
true
;
this
.
list
[
2
].
visible
=
true
;
...
...
mock/happyclear/scratchDoHelp.json
View file @
23963e8a
{
{
"success"
:
0
,
"success"
:
0
,
"code"
:
"000002
3
"
,
"code"
:
"000002
4
"
,
"desc"
:
null
,
"desc"
:
null
,
"timestamp"
:
1566199822308
,
"timestamp"
:
1566199822308
,
"data"
:
""
"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