Commit 2c6b36c8 authored by wildfirecode's avatar wildfirecode

1

parent 6571c199
......@@ -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);
}
/**
* 夏日活动游戏基础信息
*/
......
......@@ -9,6 +9,7 @@ export default class TransScene extends Scene {
}
initUI(data) {
//要区分是分享者,还是被分享者
}
onTap_btn() {
......
{
"code":null,
"data":2,
"message":null,
"success":true
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment