Commit 53aafce6 authored by wildfirecode's avatar wildfirecode

1

parents 2845fa7d 4693788d
...@@ -392,16 +392,16 @@ export default class MainBase extends eui.UILayer { ...@@ -392,16 +392,16 @@ export default class MainBase extends eui.UILayer {
}); });
} }
getBackReward() { // getBackReward() {
return new Promise((r) => { // return new Promise((r) => {
try { // try {
if(window['getRST']) window['getRST'](); // if(window['getRST']) window['getRST']();
} catch(error) { } // } catch(error) { }
NetManager.ins.hc_getBackReward(() => { // NetManager.ins.hc_getBackReward(() => {
r(); // r();
}) // })
}); // });
} // }
ajaxElement() { ajaxElement() {
return new Promise((r) => { return new Promise((r) => {
...@@ -441,7 +441,7 @@ export default class MainBase extends eui.UILayer { ...@@ -441,7 +441,7 @@ export default class MainBase extends eui.UILayer {
this.ajaxElement(), this.ajaxElement(),
this.hcHome(), this.hcHome(),
this.hc_userInfo(), this.hc_userInfo(),
this.getBackReward(), // this.getBackReward(),
this.hcRedBoobBaseInfo(), this.hcRedBoobBaseInfo(),
]); ]);
......
...@@ -975,23 +975,23 @@ export class NetManager extends ABNetManager { ...@@ -975,23 +975,23 @@ export class NetManager extends ABNetManager {
}; };
this.send(net); this.send(net);
} }
public hc_getBackReward(callback: Function): void { // public hc_getBackReward(callback: Function): void {
const d: any = { // const d: any = {
activityId: DataManager.ins.customCfgData.actId, // activityId: DataManager.ins.customCfgData.actId,
detect: window['detect'], // detect: window['detect'],
deviceSessionId: window['_device_session_id'] // deviceSessionId: window['_device_session_id']
}; // };
const net: INetData = { // const net: INetData = {
name: 'hc_getBackReward', // name: 'hc_getBackReward',
uri: window['duiba'] + '/customActivity/happyclear/getBackReward', // uri: window['duiba'] + '/customActivity/happyclear/getBackReward',
type: 'get', // type: 'get',
dataType: 'json', // dataType: 'json',
hideMsg:true, // hideMsg:true,
param: d, // param: d,
callback: callback // callback: callback
}; // };
this.send(net); // this.send(net);
} // }
public hc_turnableDojoin(callback: Function): void { public hc_turnableDojoin(callback: Function): void {
const d: any = { const d: any = {
activityId: DataManager.ins.customCfgData.actId, activityId: DataManager.ins.customCfgData.actId,
......
...@@ -126,10 +126,10 @@ export default class MapScene extends Scene { ...@@ -126,10 +126,10 @@ export default class MapScene extends Scene {
localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2); localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2);
} }
const backData = DataManager.ins.getData('hc_getBackReward'); // const backData = DataManager.ins.getData('hc_getBackReward');
if (backData.success && backData.data) { // if (backData.success && backData.data) {
panels.push('back'); // panels.push('back');
} // }
const { signInfoVO } = DataManager.ins.getData('getSignInfo'); const { signInfoVO } = DataManager.ins.getData('getSignInfo');
if (signInfoVO.continueDay < 7) { //表示明天还可以签到 if (signInfoVO.continueDay < 7) { //表示明天还可以签到
......
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