1、签到的逻辑更改:在打开签到成功的弹框是时就调接口,而不是在弹框确认按钮时才调用接口

This commit is contained in:
wangzimeng 2025-08-07 15:11:37 +08:00
parent 008f0505d6
commit afb770576e

View File

@ -293,18 +293,20 @@
if (code === 1) { if (code === 1) {
state.showModel = true; state.showModel = true;
state.signin = data; state.signin = data;
// getData(); getData();
} }
} }
function onShowRetroactive(e) { function onShowRetroactive(e) {
state.showRetroactive = true; state.showRetroactive = true;
state.date = e; state.date = e;
//
getData();
} }
// //
function onConfirm() { function onConfirm() {
state.showModel = false; state.showModel = false;
getData(); // getData();
} }
// //
async function onRetroactive() { async function onRetroactive() {
@ -316,7 +318,7 @@
}); });
if (code === 1) { if (code === 1) {
state.showRetroactive = false; state.showRetroactive = false;
getData(); // getData();
} }
} }