购物车计算

This commit is contained in:
wwz
2025-03-01 18:30:19 +08:00
parent 04a84aa17f
commit c0af79f666
10 changed files with 216 additions and 152 deletions

View File

@@ -46,19 +46,19 @@ export default (params) => {
resolve(res.data);
} else {
switch (res.code) {
case '-4':
resolve(res)
// uni.showToast({
// title: res.message || res.msg || res.error,
// icon: "none",
// success: () => {
// setTimeout(() => {
// uni.reLaunch({
// url: "/pages/login/index",
// })
// }, 1000);
// }
// })
case '501':
uni.cache.remove('shopId')
uni.showToast({
title: '',
icon: "none",
success: () => {
setTimeout(() => {
uni.reLaunch({
url: "/pages/index/index",
})
}, 1000);
}
})
break;
case 404:
uni.showToast({