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
f0636e9a
Commit
f0636e9a
authored
Dec 10, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c6e86cde
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+13
-0
ConfirmPanel.ts
egret/src/yazuwei/ConfirmPanel.ts
+9
-2
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
f0636e9a
...
@@ -198,6 +198,19 @@ export class NetManager extends ABNetManager {
...
@@ -198,6 +198,19 @@ export class NetManager extends ABNetManager {
};
};
this
.
send
(
net
);
this
.
send
(
net
);
}
}
public
yyh_queryInviterPhone
(
callback
:
Function
,
inviteCode
):
void
{
const
net
:
INetData
=
{
name
:
'yyh_queryInviterPhone'
,
uri
:
'/projectx/'
+
window
[
'projectId'
]
+
'/invite_2/queryInviterPhone.do'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
inviteCode
:
inviteCode
},
callback
:
callback
};
this
.
send
(
net
);
}
public
getProjectUserInfo
(
callback
:
Function
):
void
{
public
getProjectUserInfo
(
callback
:
Function
):
void
{
const
param
:
any
=
{
const
param
:
any
=
{
...
...
egret/src/yazuwei/ConfirmPanel.ts
View file @
f0636e9a
...
@@ -4,6 +4,7 @@ import GameConst from "../GameConst";
...
@@ -4,6 +4,7 @@ import GameConst from "../GameConst";
import
{
yzwNet
}
from
"../NetConst"
;
import
{
yzwNet
}
from
"../NetConst"
;
import
Panel
from
"../views/Panel"
;
import
Panel
from
"../views/Panel"
;
import
{
Buried
}
from
"../../libs/tw/util/Buried"
;
import
{
Buried
}
from
"../../libs/tw/util/Buried"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
export
default
class
ConfirmPanel
extends
Panel
{
export
default
class
ConfirmPanel
extends
Panel
{
...
@@ -15,8 +16,14 @@ export default class ConfirmPanel extends Panel {
...
@@ -15,8 +16,14 @@ export default class ConfirmPanel extends Panel {
}
}
initUI
()
{
initUI
()
{
GameConst
.
getQueryString
(
'shareCode'
);
this
[
'tips'
].
text
=
``
;
this
[
'tips'
].
text
=
`是否确认加入“
${
0
}
”的战队参与队伍PK`
;
NetManager
.
ins
.
yyh_queryInviterPhone
(()
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'yyh_queryInviterPhone'
).
data
;
if
(
data
)
this
[
'tips'
].
text
=
`是否确认加入“
${
data
}
”的战队参与队伍PK`
;
else
this
[
'tips'
].
text
=
`是否确认加入“未知号码”的战队参与队伍PK`
;
},
GameConst
.
getQueryString
(
'shareCode'
));
}
}
initEvents
()
{
initEvents
()
{
...
...
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