Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
yyh
Commits
6ae3a2c4
Commit
6ae3a2c4
authored
Dec 10, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6d9e2214
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
26 deletions
+33
-26
ShareStarterScene.ts
egret/src/yazuwei/ShareStarterScene.ts
+26
-25
genInvite.json
mock/yzw/genInvite.json
+6
-0
pollingAnimationState.json
mock/yzw/pollingAnimationState.json
+1
-1
No files found.
egret/src/yazuwei/ShareStarterScene.ts
View file @
6ae3a2c4
...
@@ -42,30 +42,6 @@ export default class ShareStarterScene extends Scene {
...
@@ -42,30 +42,6 @@ export default class ShareStarterScene extends Scene {
this
.
addAni
(
this
[
'waitTips'
]);
this
.
addAni
(
this
[
'waitTips'
]);
this
.
addAni
(
this
[
'matchingTips'
]);
this
.
addAni
(
this
[
'matchingTips'
]);
this
.
addAni
(
this
[
'shareTips'
]);
this
.
addAni
(
this
[
'shareTips'
]);
yzwNet
.
genInvite
(()
=>
{
let
sharecode
=
DataManager
.
ins
.
getData
(
'genInvite'
).
data
;
this
[
'matchingTips'
].
visible
=
true
;
NetManager
.
ins
.
yyh_pollingAnimationState
((
success
)
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'yyh_pollingAnimationState'
).
data
;
if
(
data
==
3
)
{
//摇一摇
this
.
changeToTrans
();
this
[
'waitTips'
].
visible
=
false
;
this
[
'matchingTips'
].
visible
=
false
;
this
[
'shareTips'
].
visible
=
false
;
}
},
sharecode
,
()
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'yyh_pollingAnimationState'
).
data
;
if
(
data
==
1
)
{
//被邀请者确认邀请
this
[
'waitTips'
].
visible
=
true
;
this
[
'matchingTips'
].
visible
=
false
;
}
if
(
data
==
2
)
{
//用户取消
//暂时无法取消
}
return
data
===
null
||
data
===
0
||
data
==
1
||
data
==
2
;
})
},
window
[
'projectId'
])
}
}
addAni
(
d
)
{
addAni
(
d
)
{
...
@@ -104,7 +80,32 @@ export default class ShareStarterScene extends Scene {
...
@@ -104,7 +80,32 @@ export default class ShareStarterScene extends Scene {
}
}
onTap_sharebtn
()
{
onTap_sharebtn
()
{
console
.
log
(
'onTap_sharebtn'
);
this
[
'tipsWrapper'
].
visible
=
false
;
this
[
'transbtn'
].
visible
=
false
;
//这里要调用分享方法
yzwNet
.
genInvite
(()
=>
{
let
sharecode
=
DataManager
.
ins
.
getData
(
'genInvite'
).
data
;
this
[
'matchingTips'
].
visible
=
true
;
NetManager
.
ins
.
yyh_pollingAnimationState
((
success
)
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'yyh_pollingAnimationState'
).
data
;
if
(
data
==
3
)
{
//摇一摇
this
.
changeToTrans
();
this
[
'waitTips'
].
visible
=
false
;
this
[
'matchingTips'
].
visible
=
false
;
this
[
'shareTips'
].
visible
=
false
;
}
},
sharecode
,
()
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'yyh_pollingAnimationState'
).
data
;
if
(
data
==
1
)
{
//被邀请者确认邀请
this
[
'waitTips'
].
visible
=
true
;
this
[
'matchingTips'
].
visible
=
false
;
}
if
(
data
==
2
)
{
//用户取消
//暂时无法取消
}
return
data
===
null
||
data
===
0
||
data
==
1
||
data
==
2
;
})
},
window
[
'projectId'
])
}
}
onTap_transbtn
()
{
onTap_transbtn
()
{
...
...
mock/yzw/genInvite.json
0 → 100644
View file @
6ae3a2c4
{
"code"
:
null
,
"data"
:
123456
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
mock/yzw/pollingAnimationState.json
View file @
6ae3a2c4
{
{
"code"
:
null
,
"code"
:
null
,
"data"
:
3
,
"data"
:
0
,
"message"
:
null
,
"message"
:
null
,
"success"
:
true
"success"
:
true
}
}
\ 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