Commit a9748e83 authored by wjf's avatar wjf

l

parent 9be9ce40
......@@ -2419,7 +2419,7 @@ export class NetManager extends ABNetManager {
* 查询邀请用户列表
* @param callback
*/
public getInvitedUserList(callback: Function) {
public getInvitedUserList(callback: Function,shareCode) {
const net: INetData = {
name: "getInvitedUserList",
uri: window['duiba'] + '/activtySimpleShareCode/getInvitedUserList',
......@@ -2428,7 +2428,8 @@ export class NetManager extends ABNetManager {
hideMsg: true,
param: {
activityId: DataManager.ins.customCfgData.actId,
count: 10
count: 10,
shareCode
},
callback: callback
};
......
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"eleDisNew","version":5,"files":["../assets/eleDisNew/eleDisNew4_9.png","../assets/eleDisNew/eleDisNew4_8.png","../assets/eleDisNew/eleDisNew4_7.png","../assets/eleDisNew/eleDisNew4_6.png","../assets/eleDisNew/eleDisNew4_5.png","../assets/eleDisNew/eleDisNew4_4.png","../assets/eleDisNew/eleDisNew4_3.png","../assets/eleDisNew/eleDisNew4_2.png","../assets/eleDisNew/eleDisNew4_14.png","../assets/eleDisNew/eleDisNew4_13.png","../assets/eleDisNew/eleDisNew4_12.png","../assets/eleDisNew/eleDisNew4_11.png","../assets/eleDisNew/eleDisNew4_10.png","../assets/eleDisNew/eleDisNew4_1.png","../assets/eleDisNew/eleDisNew4_0.png","../assets/eleDisNew/eleDisNew3_9.png","../assets/eleDisNew/eleDisNew3_8.png","../assets/eleDisNew/eleDisNew3_7.png","../assets/eleDisNew/eleDisNew3_6.png","../assets/eleDisNew/eleDisNew3_5.png","../assets/eleDisNew/eleDisNew3_4.png","../assets/eleDisNew/eleDisNew3_3.png","../assets/eleDisNew/eleDisNew3_2.png","../assets/eleDisNew/eleDisNew3_14.png","../assets/eleDisNew/eleDisNew3_13.png","../assets/eleDisNew/eleDisNew3_12.png","../assets/eleDisNew/eleDisNew3_11.png","../assets/eleDisNew/eleDisNew3_10.png","../assets/eleDisNew/eleDisNew3_1.png","../assets/eleDisNew/eleDisNew3_0.png","../assets/eleDisNew/eleDisNew2_9.png","../assets/eleDisNew/eleDisNew2_8.png","../assets/eleDisNew/eleDisNew2_7.png","../assets/eleDisNew/eleDisNew2_6.png","../assets/eleDisNew/eleDisNew2_5.png","../assets/eleDisNew/eleDisNew2_4.png","../assets/eleDisNew/eleDisNew2_3.png","../assets/eleDisNew/eleDisNew2_2.png","../assets/eleDisNew/eleDisNew2_14.png","../assets/eleDisNew/eleDisNew2_13.png","../assets/eleDisNew/eleDisNew2_12.png","../assets/eleDisNew/eleDisNew2_11.png","../assets/eleDisNew/eleDisNew2_10.png","../assets/eleDisNew/eleDisNew2_1.png","../assets/eleDisNew/eleDisNew2_0.png","../assets/eleDisNew/eleDisNew1_9.png","../assets/eleDisNew/eleDisNew1_8.png","../assets/eleDisNew/eleDisNew1_7.png","../assets/eleDisNew/eleDisNew1_6.png","../assets/eleDisNew/eleDisNew1_5.png","../assets/eleDisNew/eleDisNew1_4.png","../assets/eleDisNew/eleDisNew1_3.png","../assets/eleDisNew/eleDisNew1_2.png","../assets/eleDisNew/eleDisNew1_14.png","../assets/eleDisNew/eleDisNew1_13.png","../assets/eleDisNew/eleDisNew1_12.png","../assets/eleDisNew/eleDisNew1_11.png","../assets/eleDisNew/eleDisNew1_10.png","../assets/eleDisNew/eleDisNew1_1.png","../assets/eleDisNew/eleDisNew1_0.png","../assets/eleDisNew/eleDisNew0_9.png","../assets/eleDisNew/eleDisNew0_8.png","../assets/eleDisNew/eleDisNew0_7.png","../assets/eleDisNew/eleDisNew0_6.png","../assets/eleDisNew/eleDisNew0_5.png","../assets/eleDisNew/eleDisNew0_4.png","../assets/eleDisNew/eleDisNew0_3.png","../assets/eleDisNew/eleDisNew0_2.png","../assets/eleDisNew/eleDisNew0_14.png","../assets/eleDisNew/eleDisNew0_13.png","../assets/eleDisNew/eleDisNew0_12.png","../assets/eleDisNew/eleDisNew0_11.png","../assets/eleDisNew/eleDisNew0_10.png","../assets/eleDisNew/eleDisNew0_1.png","../assets/eleDisNew/eleDisNew0_0.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"eleDisNew","version":5,"files":["..\\assets\\eleDisNew\\eleDisNew4_9.png","..\\assets\\eleDisNew\\eleDisNew4_8.png","..\\assets\\eleDisNew\\eleDisNew4_7.png","..\\assets\\eleDisNew\\eleDisNew4_6.png","..\\assets\\eleDisNew\\eleDisNew4_5.png","..\\assets\\eleDisNew\\eleDisNew4_4.png","..\\assets\\eleDisNew\\eleDisNew4_3.png","..\\assets\\eleDisNew\\eleDisNew4_2.png","..\\assets\\eleDisNew\\eleDisNew4_14.png","..\\assets\\eleDisNew\\eleDisNew4_13.png","..\\assets\\eleDisNew\\eleDisNew4_12.png","..\\assets\\eleDisNew\\eleDisNew4_11.png","..\\assets\\eleDisNew\\eleDisNew4_10.png","..\\assets\\eleDisNew\\eleDisNew4_1.png","..\\assets\\eleDisNew\\eleDisNew4_0.png","..\\assets\\eleDisNew\\eleDisNew3_9.png","..\\assets\\eleDisNew\\eleDisNew3_8.png","..\\assets\\eleDisNew\\eleDisNew3_7.png","..\\assets\\eleDisNew\\eleDisNew3_6.png","..\\assets\\eleDisNew\\eleDisNew3_5.png","..\\assets\\eleDisNew\\eleDisNew3_4.png","..\\assets\\eleDisNew\\eleDisNew3_3.png","..\\assets\\eleDisNew\\eleDisNew3_2.png","..\\assets\\eleDisNew\\eleDisNew3_14.png","..\\assets\\eleDisNew\\eleDisNew3_13.png","..\\assets\\eleDisNew\\eleDisNew3_12.png","..\\assets\\eleDisNew\\eleDisNew3_11.png","..\\assets\\eleDisNew\\eleDisNew3_10.png","..\\assets\\eleDisNew\\eleDisNew3_1.png","..\\assets\\eleDisNew\\eleDisNew3_0.png","..\\assets\\eleDisNew\\eleDisNew2_9.png","..\\assets\\eleDisNew\\eleDisNew2_8.png","..\\assets\\eleDisNew\\eleDisNew2_7.png","..\\assets\\eleDisNew\\eleDisNew2_6.png","..\\assets\\eleDisNew\\eleDisNew2_5.png","..\\assets\\eleDisNew\\eleDisNew2_4.png","..\\assets\\eleDisNew\\eleDisNew2_3.png","..\\assets\\eleDisNew\\eleDisNew2_2.png","..\\assets\\eleDisNew\\eleDisNew2_14.png","..\\assets\\eleDisNew\\eleDisNew2_13.png","..\\assets\\eleDisNew\\eleDisNew2_12.png","..\\assets\\eleDisNew\\eleDisNew2_11.png","..\\assets\\eleDisNew\\eleDisNew2_10.png","..\\assets\\eleDisNew\\eleDisNew2_1.png","..\\assets\\eleDisNew\\eleDisNew2_0.png","..\\assets\\eleDisNew\\eleDisNew1_9.png","..\\assets\\eleDisNew\\eleDisNew1_8.png","..\\assets\\eleDisNew\\eleDisNew1_7.png","..\\assets\\eleDisNew\\eleDisNew1_6.png","..\\assets\\eleDisNew\\eleDisNew1_5.png","..\\assets\\eleDisNew\\eleDisNew1_4.png","..\\assets\\eleDisNew\\eleDisNew1_3.png","..\\assets\\eleDisNew\\eleDisNew1_2.png","..\\assets\\eleDisNew\\eleDisNew1_14.png","..\\assets\\eleDisNew\\eleDisNew1_13.png","..\\assets\\eleDisNew\\eleDisNew1_12.png","..\\assets\\eleDisNew\\eleDisNew1_11.png","..\\assets\\eleDisNew\\eleDisNew1_10.png","..\\assets\\eleDisNew\\eleDisNew1_1.png","..\\assets\\eleDisNew\\eleDisNew1_0.png","..\\assets\\eleDisNew\\eleDisNew0_9.png","..\\assets\\eleDisNew\\eleDisNew0_8.png","..\\assets\\eleDisNew\\eleDisNew0_7.png","..\\assets\\eleDisNew\\eleDisNew0_6.png","..\\assets\\eleDisNew\\eleDisNew0_5.png","..\\assets\\eleDisNew\\eleDisNew0_4.png","..\\assets\\eleDisNew\\eleDisNew0_3.png","..\\assets\\eleDisNew\\eleDisNew0_2.png","..\\assets\\eleDisNew\\eleDisNew0_14.png","..\\assets\\eleDisNew\\eleDisNew0_13.png","..\\assets\\eleDisNew\\eleDisNew0_12.png","..\\assets\\eleDisNew\\eleDisNew0_11.png","..\\assets\\eleDisNew\\eleDisNew0_10.png","..\\assets\\eleDisNew\\eleDisNew0_1.png","..\\assets\\eleDisNew\\eleDisNew0_0.png"]}
\ No newline at end of file
......@@ -25,7 +25,17 @@ export default class BloodPanel extends Panel {
this.showlog();
//获取下邀请人数,
NetManager.ins.getInvitedUserList((s, res) => { if (s) this.askForEnergyCount = res.data.count })
if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) {
NetManager.ins.getInvitedUserList((s, res) => {
if (s) {
this.askForEnergyCount = res.data.count;
this['invitTxt'].text = `(已领${this.askForEnergyCount /*data.askForEnergy*/}/${BloodPanel.MAX})`;
if (this.askForEnergyCount/*data.askForEnergy*/ >= BloodPanel.MAX) {
this['inviteBtn2'].visible = true;
}
}
}, DataManager.ins.getData("getUserShareCode").data)
}
this['price1Txt'].text = `${window['price1']}个元宝=1个体力值`;
this['resumeBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
......
......@@ -25,7 +25,17 @@ export default class BloodPanel2 extends Panel {
this['price1Txt'].text = `${window['price1']}个元宝=1个体力值`;
//获取下邀请人数,
NetManager.ins.getInvitedUserList((s, res) => { if (s) this.askForEnergyCount = res.data.count })
if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) {
NetManager.ins.getInvitedUserList((s, res) => {
if (s) {
this.askForEnergyCount = res.data.count;
this['invitTxt'].text = `(已领${this.askForEnergyCount/*data.askForEnergy*/}/${BloodPanel.MAX})`;
if (this.askForEnergyCount/*data.askForEnergy*/ >= BloodPanel.MAX) {
this['inviteBtn2'].visible = true;
}
}
}, DataManager.ins.getData("getUserShareCode").data)
}
}
showlog() {
......
......@@ -42,7 +42,11 @@ export default class StartPanel extends Panel {
const homedata = getHomeData();
//获取下邀请人数,
NetManager.ins.getInvitedUserList((s, res) => { if (s) this.askForEnergyCount = res.data.count })
if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) {
NetManager.ins.getInvitedUserList((s, res) => {
if (s) this.askForEnergyCount = res.data.count;
}, DataManager.ins.getData("getUserShareCode").data)
}
if (data > homedata.levels.length) {
addAdComp(84, 901, this, 29);
......
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