Commit 477ed87e authored by wjf's avatar wjf

l

parent 061c08d1
...@@ -2419,16 +2419,15 @@ export class NetManager extends ABNetManager { ...@@ -2419,16 +2419,15 @@ export class NetManager extends ABNetManager {
* 查询邀请用户列表 * 查询邀请用户列表
* @param callback * @param callback
*/ */
public getInvitedUserList(callback: Function,shareCode) { public getEffectiveShareTimes(callback: Function,shareCode) {
const net: INetData = { const net: INetData = {
name: "getInvitedUserList", name: "getEffectiveShareTimes",
uri: window['duiba'] + '/activtySimpleShareCode/getInvitedUserList', uri: window['duiba'] + '/customActivity/happyclear/getEffectiveShareTimes',
type: 'get', type: 'get',
dataType: 'json', dataType: 'json',
hideMsg: true, hideMsg: true,
param: { param: {
activityId: DataManager.ins.customCfgData.actId, activityId: DataManager.ins.customCfgData.actId,
count: 10,
shareCode shareCode
}, },
callback: callback callback: callback
......
...@@ -26,9 +26,9 @@ export default class BloodPanel extends Panel { ...@@ -26,9 +26,9 @@ export default class BloodPanel extends Panel {
//获取下邀请人数, //获取下邀请人数,
if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) { if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) {
NetManager.ins.getInvitedUserList((s, res) => { NetManager.ins.getEffectiveShareTimes((s, res) => {
if (s) { if (s) {
this.askForEnergyCount = res.data.count; this.askForEnergyCount = res.data;
this['invitTxt'].text = `(已领${this.askForEnergyCount /*data.askForEnergy*/}/${BloodPanel.MAX})`; this['invitTxt'].text = `(已领${this.askForEnergyCount /*data.askForEnergy*/}/${BloodPanel.MAX})`;
if (this.askForEnergyCount/*data.askForEnergy*/ >= BloodPanel.MAX) { if (this.askForEnergyCount/*data.askForEnergy*/ >= BloodPanel.MAX) {
this['inviteBtn2'].visible = true; this['inviteBtn2'].visible = true;
......
...@@ -26,9 +26,9 @@ export default class BloodPanel2 extends Panel { ...@@ -26,9 +26,9 @@ export default class BloodPanel2 extends Panel {
//获取下邀请人数, //获取下邀请人数,
if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) { if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) {
NetManager.ins.getInvitedUserList((s, res) => { NetManager.ins.getEffectiveShareTimes((s, res) => {
if (s) { if (s) {
this.askForEnergyCount = res.data.count; this.askForEnergyCount = res.data;
this['invitTxt'].text = `(已领${this.askForEnergyCount/*data.askForEnergy*/}/${BloodPanel.MAX})`; this['invitTxt'].text = `(已领${this.askForEnergyCount/*data.askForEnergy*/}/${BloodPanel.MAX})`;
if (this.askForEnergyCount/*data.askForEnergy*/ >= BloodPanel.MAX) { if (this.askForEnergyCount/*data.askForEnergy*/ >= BloodPanel.MAX) {
this['inviteBtn2'].visible = true; this['inviteBtn2'].visible = true;
......
...@@ -43,8 +43,8 @@ export default class StartPanel extends Panel { ...@@ -43,8 +43,8 @@ export default class StartPanel extends Panel {
//获取下邀请人数, //获取下邀请人数,
if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) { if (DataManager.ins.getData("getUserShareCode") && DataManager.ins.getData("getUserShareCode").data) {
NetManager.ins.getInvitedUserList((s, res) => { NetManager.ins.getEffectiveShareTimes((s, res) => {
if (s) this.askForEnergyCount = res.data.count; if (s) this.askForEnergyCount = res.data;
}, DataManager.ins.getData("getUserShareCode").data) }, DataManager.ins.getData("getUserShareCode").data)
} }
......
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