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
2c6b36c8
Commit
2c6b36c8
authored
Dec 09, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6571c199
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+39
-0
TransScene.ts
egret/src/yazuwei/TransScene.ts
+1
-0
pollingAnimationState.json
mock/yzw/pollingAnimationState.json
+6
-0
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
2c6b36c8
...
...
@@ -199,6 +199,45 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
}
/**
*
* @param shareCode
* @param state 0|null 初始 1用户触发开始传递 2用户取消 3 用户摇一摇
* @param callback
*/
public
yyh_updateAnimationState
(
shareCode
,
state
,
callback
?:
Function
):
void
{
const
net
:
INetData
=
{
name
:
'yyh_updateAnimationState'
,
uri
:
'/projectx/1/invite_2/updateAnimationState.do'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
shareCode
:
shareCode
,
state
:
state
},
callback
:
callback
};
this
.
send
(
net
);
}
public
yyh_pollingAnimationState
(
callback
:
Function
,
shareCode
,
pollingCheck
:
Function
,
pollingCount
=
5
):
void
{
const
net
:
INetData
=
{
name
:
'yyh_pollingAnimationState'
,
uri
:
'/projectx/1/invite_2/pollingAnimationState.do'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
shareCode
:
shareCode
},
hideMsg
:
true
,
callback
:
callback
,
pollingCheck
:
pollingCheck
,
pollingCount
:
pollingCount
};
this
.
send
(
net
);
}
/**
* 夏日活动游戏基础信息
*/
...
...
egret/src/yazuwei/TransScene.ts
View file @
2c6b36c8
...
...
@@ -9,6 +9,7 @@ export default class TransScene extends Scene {
}
initUI
(
data
)
{
//要区分是分享者,还是被分享者
}
onTap_btn
()
{
...
...
mock/yzw/pollingAnimationState.json
0 → 100644
View file @
2c6b36c8
{
"code"
:
null
,
"data"
:
2
,
"message"
:
null
,
"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