mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-16 23:45:53 +08:00
延时展示提示信息,防止被删除
This commit is contained in:
@@ -367,6 +367,7 @@
|
||||
storage.setUserInfo(user.data.result);
|
||||
storage.setHasLogin(true);
|
||||
}else {
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
title: user.data.message,
|
||||
icon: "none",
|
||||
@@ -376,6 +377,7 @@
|
||||
uni.switchTab({
|
||||
url: "/pages/tabbar/user/my",
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
getCurrentPages().length > 1 ?
|
||||
@@ -515,6 +517,7 @@
|
||||
});
|
||||
}
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
title: user.data.message,
|
||||
icon: "none",
|
||||
@@ -524,6 +527,7 @@
|
||||
uni.switchTab({
|
||||
url: "/pages/tabbar/user/my",
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -591,13 +595,15 @@
|
||||
storage.setAutoCp(0)
|
||||
// 登录成功
|
||||
uni.showToast({
|
||||
title: "登录成功!",
|
||||
title:"提示",
|
||||
content: "登录成功!",
|
||||
icon: "none",
|
||||
});
|
||||
|
||||
|
||||
whetherNavigate();
|
||||
}else{
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
title: user.data.message,
|
||||
icon: "none",
|
||||
@@ -607,6 +613,8 @@
|
||||
uni.switchTab({
|
||||
url: "/pages/tabbar/user/my",
|
||||
});
|
||||
}, 500);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user