Commit 477ed87e authored by wjf's avatar wjf

l

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