Commit 3275d414 authored by wildfirecode's avatar wildfirecode

1

parent 9a85a188
...@@ -3,6 +3,9 @@ import SignItem from "./SignItem"; ...@@ -3,6 +3,9 @@ import SignItem from "./SignItem";
import { NetManager } from "../../libs/tw/manager/NetManager"; import { NetManager } from "../../libs/tw/manager/NetManager";
import { DataManager } from "../../libs/tw/manager/DataManager"; import { DataManager } from "../../libs/tw/manager/DataManager";
import { showToast } from "../../libs/new_wx/ctrls/toastCtrl"; import { showToast } from "../../libs/new_wx/ctrls/toastCtrl";
import { updateMainTimer } from "../../libs/new_wx/MainBase";
import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import wait from "../../libs/new_tc/wait";
// export const getSignInfo = ()=> { // export const getSignInfo = ()=> {
// return new Promise((r) => { // return new Promise((r) => {
...@@ -58,7 +61,14 @@ export default class SignPanel extends Panel { ...@@ -58,7 +61,14 @@ export default class SignPanel extends Panel {
NetManager.ins.doSign((s)=>{ NetManager.ins.doSign((s)=>{
if(s) { if(s) {
item.setSinged(); item.setSinged();
showToast('签到成功!快去闯关吧~') showToast('签到成功!快去闯关吧~');
wait(200).then(()=>{
NetManager.ins.hc_home(() => {
updateMainTimer();
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
});
} }
}, window['signActivityId']) }, window['signActivityId'])
console.log(data); console.log(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