Commit bb8cc5c5 authored by wildfirecode's avatar wildfirecode

1

parent d66d6712
......@@ -42,6 +42,11 @@ export default class SignPanel extends Panel {
const func = (data,item:SignItem) => {
NetManager.ins.doSign((s)=>{
if(s) {
const {customInfo} =DataManager.ins.getData(['dosign']);
if(customInfo.code==100004 || !customInfo.success) {
showToast('哎呀!奖励与您擦肩而过~');
return;
}
item.setSinged();
// showToast('签到成功!快去闯关吧~');
PanelCtrl.instance.show('signPrize');
......@@ -52,6 +57,8 @@ export default class SignPanel extends Panel {
}, window['collectRuleId']);
});
}else {
showToast('哎呀!奖励与您擦肩而过~');
}
}, window['signActivityId'])
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