扫码排队

This commit is contained in:
wwz
2025-04-02 14:12:57 +08:00
parent e352acbdd0
commit a95315f42a
8 changed files with 547 additions and 516 deletions

View File

@@ -45,22 +45,23 @@ export default (params) => {
if (res.code == 200) {
uni.hideLoading();
uni.hideToast();
resolve(res.data ?res.data: true);
resolve(res.data ? res.data : true);
} else {
switch (res.code) {
case '501':
uni.cache.remove('shopId')
uni.showToast({
title: '',
icon: "none",
success: () => {
setTimeout(() => {
uni.reLaunch({
url: "/pages/index/index",
})
}, 1000);
}
})
// uni.showToast({
// title: '',
// icon: "none",
// success: () => {
// }
// })
setTimeout(() => {
uni.reLaunch({
url: "/pages/index/index",
})
}, 1000);
break;
case 404:
uni.showToast({