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
6095739c
Commit
6095739c
authored
Mar 24, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ade6577a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
232 additions
and
167 deletions
+232
-167
blood_fail.svga
egret/resource/assets/svgas/blood_fail.svga
+0
-0
blood_standby.svga
egret/resource/assets/svgas/blood_standby.svga
+0
-0
blood_success.svga
egret/resource/assets/svgas/blood_success.svga
+0
-0
bloodbg.svga
egret/resource/assets/svgas/bloodbg.svga
+0
-0
default.thm.json
egret/resource/default.thm.json
+103
-103
HelpBloodSkin.exml
egret/resource/skins/HelpBloodSkin.exml
+1
-0
HelpBloodPanel.ts
egret/src/panels/help/HelpBloodPanel.ts
+88
-63
svgaTool.ts
egret/src/panels/help/svgaTool.ts
+39
-0
doHelpNew.json
mock/happyclear/doHelpNew.json
+1
-1
No files found.
egret/resource/assets/svgas/blood_fail.svga
View file @
6095739c
No preview for this file type
egret/resource/assets/svgas/blood_standby.svga
0 → 100644
View file @
6095739c
File added
egret/resource/assets/svgas/blood_success.svga
View file @
6095739c
No preview for this file type
egret/resource/assets/svgas/bloodbg.svga
0 → 100644
View file @
6095739c
File added
egret/resource/default.thm.json
View file @
6095739c
{
{
"skins"
:
{},
"skins"
:
{},
"autoGenerateExmlsList"
:
true
,
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"exmls"
:
[
"resource/skins/HelpScratch
Skin.exml"
,
"resource/skins/AD
Skin.exml"
,
"resource/skins/HelpBlood
Skin.exml"
,
"resource/skins/ADSmall
Skin.exml"
,
"resource/skins/HelpInvite
Skin.exml"
,
"resource/skins/Alert
Skin.exml"
,
"resource/skins/AD
Skin.exml"
,
"resource/skins/Avatar
Skin.exml"
,
"resource/skins/ADSmall
Skin.exml"
,
"resource/skins/BackIndex
Skin.exml"
,
"resource/skins/Alert
Skin.exml"
,
"resource/skins/Back
Skin.exml"
,
"resource/skins/Avatar
Skin.exml"
,
"resource/skins/BagItem2
Skin.exml"
,
"resource/skins/BackIndex
Skin.exml"
,
"resource/skins/BagItem
Skin.exml"
,
"resource/skins/Back
Skin.exml"
,
"resource/skins/BagQuit
Skin.exml"
,
"resource/skins/BagItem2
Skin.exml"
,
"resource/skins/Bag
Skin.exml"
,
"resource/skins/BagItem
Skin.exml"
,
"resource/skins/Blood2
Skin.exml"
,
"resource/skins/BagQuit
Skin.exml"
,
"resource/skins/Blood
Skin.exml"
,
"resource/skins/Bag
Skin.exml"
,
"resource/skins/Box2
Skin.exml"
,
"resource/skins/Blood2
Skin.exml"
,
"resource/skins/Box
Skin.exml"
,
"resource/skins/Blood
Skin.exml"
,
"resource/skins/Buy1
Skin.exml"
,
"resource/skins/Box
2Skin.exml"
,
"resource/skins/Buy
2Skin.exml"
,
"resource/skins/Box
Skin.exml"
,
"resource/skins/Buy3
Skin.exml"
,
"resource/skins/Buy1
Skin.exml"
,
"resource/skins/Exchange
Skin.exml"
,
"resource/skins/Buy2
Skin.exml"
,
"resource/skins/Fail
Skin.exml"
,
"resource/skins/Buy3
Skin.exml"
,
"resource/skins/FriendItem2
Skin.exml"
,
"resource/skins/Exchange
Skin.exml"
,
"resource/skins/FriendItem
Skin.exml"
,
"resource/skins/Fail
Skin.exml"
,
"resource/skins/FriendShare
Skin.exml"
,
"resource/skins/FriendItem2
Skin.exml"
,
"resource/skins/Friend
Skin.exml"
,
"resource/skins/FriendItem
Skin.exml"
,
"resource/skins/H52
Skin.exml"
,
"resource/skins/FriendShare
Skin.exml"
,
"resource/skins/H5
Skin.exml"
,
"resource/skins/Friend
Skin.exml"
,
"resource/skins/HbCutTime
Skin.exml"
,
"resource/skins/H52
Skin.exml"
,
"resource/skins/HbGame
Skin.exml"
,
"resource/skins/H5
Skin.exml"
,
"resource/skins/HbNoPrize
Skin.exml"
,
"resource/skins/HbCutTim
eSkin.exml"
,
"resource/skins/HbPriz
eSkin.exml"
,
"resource/skins/HbGam
eSkin.exml"
,
"resource/skins/HbRul
eSkin.exml"
,
"resource/skins/HbNoPrize
Skin.exml"
,
"resource/skins/HelpBlood
Skin.exml"
,
"resource/skins/HbPriz
eSkin.exml"
,
"resource/skins/HelpInvit
eSkin.exml"
,
"resource/skins/HbRule
Skin.exml"
,
"resource/skins/HelpScratch
Skin.exml"
,
"resource/skins/IconButtonSkin.exml"
,
"resource/skins/IconButtonSkin.exml"
,
"resource/skins/InviteCutTimePanelSkin.exml"
,
"resource/skins/InviteCutTimePanelSkin.exml"
,
"resource/skins/InviteItemSkin.exml"
,
"resource/skins/InviteItemSkin.exml"
,
"resource/skins/InvitePrizePanelSkin.exml"
,
"resource/skins/InvitePrizePanelSkin.exml"
,
"resource/skins/InviteRulePanelSkin.exml"
,
"resource/skins/InviteRulePanelSkin.exml"
,
"resource/skins/InviteRuleSkin.exml"
,
"resource/skins/InviteRuleSkin.exml"
,
"resource/skins/InviteSkin.exml"
,
"resource/skins/InviteSkin.exml"
,
"resource/skins/Main2Skin.exml"
,
"resource/skins/Main2Skin.exml"
,
"resource/skins/MapBottomSkin.exml"
,
"resource/skins/MapBottomSkin.exml"
,
"resource/skins/MapRepeatSkin.exml"
,
"resource/skins/MapRepeatSkin.exml"
,
"resource/skins/MapSkin.exml"
,
"resource/skins/MapSkin.exml"
,
"resource/skins/MapTopSkin.exml"
,
"resource/skins/MapTopSkin.exml"
,
"resource/skins/NoPrizeSkin.exml"
,
"resource/skins/NoPrizeSkin.exml"
,
"resource/skins/OptionItemSkin.exml"
,
"resource/skins/OptionItemSkin.exml"
,
"resource/skins/OptionsSkin.exml"
,
"resource/skins/OptionsSkin.exml"
,
"resource/skins/PlaySkin.exml"
,
"resource/skins/PlaySkin.exml"
,
"resource/skins/Prize2Skin.exml"
,
"resource/skins/Prize2Skin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/QuitSkin.exml"
,
"resource/skins/QuitSkin.exml"
,
"resource/skins/RankFriendListSkin.exml"
,
"resource/skins/RankFriendListSkin.exml"
,
"resource/skins/RankItemSkin.exml"
,
"resource/skins/RankItemSkin.exml"
,
"resource/skins/RankSkin.exml"
,
"resource/skins/RankSkin.exml"
,
"resource/skins/RechargeSkin.exml"
,
"resource/skins/RechargeSkin.exml"
,
"resource/skins/RedBagActivitySkin.exml"
,
"resource/skins/RedBagActivitySkin.exml"
,
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBombAlertSkin.exml"
,
"resource/skins/RedBombAlertSkin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombTips2Skin.exml"
,
"resource/skins/RedBombTips2Skin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
"resource/skins/ScratchPrizeSkin.exml"
,
"resource/skins/ScratchPrizeSkin.exml"
,
"resource/skins/ScratchRuleSkin.exml"
,
"resource/skins/ScratchRuleSkin.exml"
,
"resource/skins/ScratchSkin.exml"
,
"resource/skins/ScratchSkin.exml"
,
"resource/skins/Share2Skin.exml"
,
"resource/skins/Share2Skin.exml"
,
"resource/skins/Share3Skin.exml"
,
"resource/skins/Share3Skin.exml"
,
"resource/skins/ShareCodePanelSkin.exml"
,
"resource/skins/ShareCodePanelSkin.exml"
,
"resource/skins/ShareSkin.exml"
,
"resource/skins/ShareSkin.exml"
,
"resource/skins/ShareTipsSkin.exml"
,
"resource/skins/ShareTipsSkin.exml"
,
"resource/skins/ShopSkin.exml"
,
"resource/skins/ShopSkin.exml"
,
"resource/skins/ShopTipSkin.exml"
,
"resource/skins/ShopTipSkin.exml"
,
"resource/skins/ShowOffSkin.exml"
,
"resource/skins/ShowOffSkin.exml"
,
"resource/skins/SignItemSkin.exml"
,
"resource/skins/SignItemSkin.exml"
,
"resource/skins/SignPrizeSkin.exml"
,
"resource/skins/SignPrizeSkin.exml"
,
"resource/skins/SignSkin.exml"
,
"resource/skins/SignSkin.exml"
,
"resource/skins/StarSkin.exml"
,
"resource/skins/StarSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/TaskCenterItemSkin.exml"
,
"resource/skins/TaskCenterItemSkin.exml"
,
"resource/skins/TaskCenterNoPrizeSkin.exml"
,
"resource/skins/TaskCenterNoPrizeSkin.exml"
,
"resource/skins/TaskCenterPrizeSkin.exml"
,
"resource/skins/TaskCenterPrizeSkin.exml"
,
"resource/skins/TaskCenterSkin.exml"
,
"resource/skins/TaskCenterSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskPrizeSkin.exml"
,
"resource/skins/TaskPrizeSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
"resource/skins/TurntablePrizeSkin.exml"
,
"resource/skins/TurntablePrizeSkin.exml"
,
"resource/skins/TurntableSkin.exml"
,
"resource/skins/TurntableSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
"resource/skins/VScrollBarSkin.exml"
],
],
"path"
:
"resource/default.thm.json"
"path"
:
"resource/default.thm.json"
}
}
\ No newline at end of file
egret/resource/skins/HelpBloodSkin.exml
View file @
6095739c
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"HelpBloodSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"HelpBloodSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
id=
"g1"
y=
"-250"
>
</e:Group>
<e:Image
source=
"help_blood_1_bg_png"
y=
"26"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
source=
"help_blood_1_bg_png"
y=
"26"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Group
y=
"855"
horizontalCenter=
"0"
>
<e:Group
y=
"855"
horizontalCenter=
"0"
>
<e:Image
id=
"helpbtn"
source=
"help_blood_1_btn_png"
x=
"0"
y=
"0"
/>
<e:Image
id=
"helpbtn"
source=
"help_blood_1_btn_png"
x=
"0"
y=
"0"
/>
...
...
egret/src/panels/help/HelpBloodPanel.ts
View file @
6095739c
...
@@ -5,74 +5,96 @@ import { showToast } from "../../../libs/new_wx/ctrls/toastCtrl";
...
@@ -5,74 +5,96 @@ import { showToast } from "../../../libs/new_wx/ctrls/toastCtrl";
import
{
gotoNextLevel
}
from
"../gotoNextLevel"
;
import
{
gotoNextLevel
}
from
"../gotoNextLevel"
;
import
{
loadSvga
}
from
"../../loadSvga"
;
import
{
loadSvga
}
from
"../../loadSvga"
;
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
import
{
play2
}
from
"./svgaTool"
;
import
wait
from
"../../../libs/new_tc/wait"
;
export
default
class
HelpBloodPanel
extends
Panel
{
export
default
class
HelpBloodPanel
extends
Panel
{
netCallback
;
netCallback
;
code
;
code
;
mv1
;
// mv1;
mv2
;
// mv2;
start
(
data
)
{
list
:
any
[];
async
start
(
data
)
{
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
));
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
[
'txt_standby'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/blood_success.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
this
.
list
=
await
Promise
.
all
([
mv
.
touchEnabled
=
false
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/blood_standby.svga'
),
mv
.
visible
=
false
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/blood_success.svga'
),
this
.
mv1
=
mv
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/blood_fail.svga'
),
this
.
mv1
.
y
=
-
250
;
]);
this
.
tostandby1
();
this
.
mv1
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
()
=>
{
this
.
list
.
forEach
(
i
=>
{
if
(
this
.
mv1
.
currentFrame
==
this
.
mv1_end
)
i
.
gotoAndStop
(
1
);
this
.
mv1
.
gotoAndPlay
(
this
.
mv1_start
);
this
.
addChild
(
i
);
if
(
this
.
mv1
.
currentFrame
==
420
)
{
i
.
visible
=
false
;
this
.
mv1_start
=
421
;
i
.
touchEnabled
=
false
;
this
.
mv1_end
=
this
.
mv1
.
totalFrames
;
i
.
y
=
-
250
;
}
},
this
);
});
loadSvga
(
getResPath
()
+
'resource/assets/svgas/blood_fail.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
mv
.
touchEnabled
=
false
;
mv
.
visible
=
true
;
this
.
mv2
=
mv
;
this
.
mv2
.
y
=
-
250
;
this
.
tostandby2
();
this
.
mv2
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
()
=>
{
if
(
this
.
mv2
.
currentFrame
==
this
.
mv2_end
)
this
.
mv2
.
gotoAndPlay
(
this
.
mv2_start
);
if
(
this
.
mv2
.
currentFrame
==
420
)
{
this
.
mv2_start
=
421
;
this
.
mv2_end
=
this
.
mv2
.
totalFrames
;
}
},
this
);
});
});
}
this
.
list
[
0
].
visible
=
true
;
this
.
list
[
0
].
gotoAndPlay
(
1
);
mv1_start
;
this
[
'gobtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onclick_gobtn
,
this
);
mv1_end
;
this
[
'helpbtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onClick
,
this
);
mv2_start
;
mv2_end
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/bloodbg.svga'
,
this
[
'g1'
]);
tostandby1
()
{
this
.
mv1_start
=
1
;
this
.
mv1_end
=
180
;
}
toAction1
()
{
this
.
mv1
.
gotoAndPlay
(
181
);
}
toAction2
()
{
this
.
mv2
.
gotoAndPlay
(
181
);
}
tostandby2
()
{
// loadSvga(getResPath() + 'resource/assets/svgas/blood_success.svga', this).then((mv: egret.DisplayObject) => {
this
.
mv2_start
=
1
;
// mv.touchEnabled = false;
this
.
mv2_end
=
180
;
// mv.visible = false;
// this.mv1 = mv;
// this.mv1.y = -250;
// this.tostandby1();
// this.mv1.addEventListener(egret.Event.ENTER_FRAME, () => {
// if (this.mv1.currentFrame == this.mv1_end)
// this.mv1.gotoAndPlay(this.mv1_start);
// if (this.mv1.currentFrame == 420) {
// this.mv1_start = 421;
// this.mv1_end = this.mv1.totalFrames;
// }
// }, this);
// });
// loadSvga(getResPath() + 'resource/assets/svgas/blood_fail.svga', this).then((mv: egret.DisplayObject) => {
// mv.touchEnabled = false;
// mv.visible = true;
// this.mv2 = mv;
// this.mv2.y = -250;
// this.tostandby2();
// this.mv2.addEventListener(egret.Event.ENTER_FRAME, () => {
// if (this.mv2.currentFrame == this.mv2_end)
// this.mv2.gotoAndPlay(this.mv2_start);
// if (this.mv2.currentFrame == 420) {
// this.mv2_start = 421;
// this.mv2_end = this.mv2.totalFrames;
// }
// }, this);
// });
}
}
// mv1_start;
// mv1_end;
// mv2_start;
// mv2_end;
// tostandby1() {
// this.mv1_start = 1;
// this.mv1_end = 180;
// }
// toAction1() {
// this.mv1.gotoAndPlay(181);
// }
// toAction2() {
// this.mv2.gotoAndPlay(181);
// }
// tostandby2() {
// this.mv2_start = 1;
// this.mv2_end = 180;
// }
onclick_gobtn
()
{
onclick_gobtn
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
88
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
88
));
this
.
hidePanel
();
this
.
hidePanel
();
...
@@ -80,23 +102,26 @@ export default class HelpBloodPanel extends Panel {
...
@@ -80,23 +102,26 @@ export default class HelpBloodPanel extends Panel {
}
}
onClick
()
{
onClick
()
{
this
[
'helpbtn'
].
visible
=
false
;
this
[
'gobtn'
].
visible
=
true
;
this
.
mv1
.
visible
=
false
;
this
.
mv2
.
visible
=
false
;
NetManager
.
ins
.
showLog
(
getlogItem
(
88
));
NetManager
.
ins
.
showLog
(
getlogItem
(
88
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
87
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
87
));
NetManager
.
ins
.
doHelpNew
((
s
,
res
)
=>
{
NetManager
.
ins
.
doHelpNew
(
async
(
s
,
res
)
=>
{
this
.
netCallback
();
this
.
netCallback
();
this
[
'txt_standby'
].
visible
=
false
;
if
(
s
)
{
if
(
s
)
{
this
.
mv1
.
visible
=
true
;
play2
(
this
.
list
[
1
]);
this
.
list
[
0
].
visible
=
false
;
this
.
list
[
1
].
visible
=
true
;
await
wait
(
1200
);
this
[
'helpbtn'
].
visible
=
false
;
this
[
'gobtn'
].
visible
=
true
;
this
[
'txt_standby'
].
visible
=
false
;
this
[
'txt_success'
].
visible
=
true
;
this
[
'txt_success'
].
visible
=
true
;
this
.
toAction1
();
}
else
{
}
else
{
this
.
toAction2
();
this
.
list
[
2
].
visible
=
true
;
this
.
mv2
.
visible
=
true
;
play2
(
this
.
list
[
2
]);
this
[
'helpbtn'
].
visible
=
false
;
this
[
'gobtn'
].
visible
=
true
;
this
[
'txt_standby'
].
visible
=
false
;
var
codeMsgs
=
{
//具体code还没给
var
codeMsgs
=
{
//具体code还没给
"2002002016"
:
"不可以给自己助力哦~"
,
//
"2002002016"
:
"不可以给自己助力哦~"
,
//
"2002002036"
:
"已经给好友助力过了哦~"
,
"2002002036"
:
"已经给好友助力过了哦~"
,
...
...
egret/src/panels/help/svgaTool.ts
0 → 100644
View file @
6095739c
//播放完之后,在一个区间循环
// export const play1 = (mv, start, end, loopStart, loopEnd) => {
// const func1 = () => {
// if (mv.currentFrame == end)
// };
// mv.gotoAndPlay(start);
// mv.addEventListener(egret.Event.ENTER_FRAME, func1, this);
// mv.addEventListener(egret.Event.ENTER_FRAME, () => {
// if (this.mv1.currentFrame == this.mv1_end)
// this.mv1.gotoAndPlay(this.mv1_start);
// if (this.mv1.currentFrame == 420) {
// this.mv1_start = 421;
// this.mv1_end = this.mv1.totalFrames;
// }
// }, this);
// }
export
const
play2
=
(
mv
,
start
=
1
,
end
=
-
1
)
=>
{
return
new
Promise
((
r
)
=>
{
if
(
end
==
-
1
)
end
=
mv
.
totalFrames
;
const
func1
=
()
=>
{
if
(
mv
.
currentFrame
==
end
)
{
mv
.
stop
();
mv
.
removeEventListener
(
egret
.
Event
.
ENTER_FRAME
,
func1
,
this
);
r
();
}
};
mv
.
gotoAndPlay
(
start
);
mv
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
func1
,
this
);
})
}
\ No newline at end of file
mock/happyclear/doHelpNew.json
View file @
6095739c
{
{
"success"
:
true
,
"success"
:
1
,
"code"
:
"2002002036"
,
"code"
:
"2002002036"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1571052938097
,
"timestamp"
:
1571052938097
,
...
...
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