Commit f0636e9a authored by wildfirecode's avatar wildfirecode

1

parent c6e86cde
...@@ -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 = {
......
...@@ -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() {
......
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