Commit 3fbed329 authored by wildfirecode's avatar wildfirecode

1

parent 96ed04f1
...@@ -5,6 +5,7 @@ import getResPath from "../../../libs/new_tc/getResPath"; ...@@ -5,6 +5,7 @@ import getResPath from "../../../libs/new_tc/getResPath";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl"; import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import { NetManager } from "../../../libs/tw/manager/NetManager"; import { NetManager } from "../../../libs/tw/manager/NetManager";
import CutTimer from "../../CutTimer"; import CutTimer from "../../CutTimer";
import Utils from "../../Utils";
export default class TurnPrize2Panel extends Panel { export default class TurnPrize2Panel extends Panel {
start(data) { start(data) {
...@@ -53,11 +54,13 @@ export default class TurnPrize2Panel extends Panel { ...@@ -53,11 +54,13 @@ export default class TurnPrize2Panel extends Panel {
case (status == 1): // 当前任务进行中 打开任务面板 case (status == 1): // 当前任务进行中 打开任务面板
loadSvga(getResPath() + 'resource/assets/svgas/sprize.svga').then(async (mv: any) => { loadSvga(getResPath() + 'resource/assets/svgas/sprize.svga').then(async (mv: any) => {
// await wait(100); // await wait(100);
res.data.mv = mv; const data = Utils.deepClone(res.data);
PanelCtrl.instance.show('scratch', res.data) data.mv = mv;
PanelCtrl.instance.show('scratch', data);
}); });
// PanelCtrl.instance.show('scratch', res.data); // PanelCtrl.instance.show('scratch', res.data);
break; break;
break;
case (status == 2): // 当前任务完成待领奖 请求领奖接口 case (status == 2): // 当前任务完成待领奖 请求领奖接口
NetManager.ins.scratchTakePrize((success, res) => { NetManager.ins.scratchTakePrize((success, res) => {
if (!success) { if (!success) {
......
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