问题修复

This commit is contained in:
2025-12-05 19:22:28 +08:00
parent 2c2a87ab19
commit 7fdabf1507
10 changed files with 442 additions and 345 deletions

View File

@@ -188,7 +188,7 @@ export const useCartStore = defineStore("cart", {
})
);
}
if (msg.status == 0&&msg.type!="time_discount") {
if (msg.status == 0 && msg.type != "time_discount") {
uni.showToast({
title: "添加失败",
icon: "none",
@@ -204,6 +204,9 @@ export const useCartStore = defineStore("cart", {
this.limitTimeDiscount = msg.time_dis_info;
this.getOrder();
break;
case "reload":
this.getOrder();
break;
case "pad_add":
case "add":
break;
@@ -224,7 +227,7 @@ export const useCartStore = defineStore("cart", {
break;
case "pad_cleanup":
case "cleanup":
this.goodsList=[]
this.goodsList = [];
break;
case "product_update":
break;
@@ -277,6 +280,7 @@ export const useCartStore = defineStore("cart", {
*/
setOrder(order) {
this.order = order;
this.limitTimeDiscount = order.limitRate;
this.oldCartList = Object.values(order.detailMap).reduce((pre, cur) => {
pre.push(
...cur.map((v) => {