优化打印机

This commit is contained in:
gyq
2024-04-03 17:25:22 +08:00
parent a57b45160e
commit ca4eec636a
9 changed files with 175 additions and 31 deletions

View File

@@ -331,8 +331,8 @@ async function addCart(params, type = "add") {
shopId: store.userInfo.shopId,
skuId: type == "add" ? params.id : params.skuId,
number: params.number || 1,
isPack: allSelected.value ? true : params.isPack || false,
isGift: params.isGift || false,
isPack: params.isPack || "false",
isGift: params.isGift || 'false',
cartId: type == "add" ? "" : params.id,
uuid: params.uuid || store.userInfo.uuid,
type: type,
@@ -367,6 +367,8 @@ async function queryCartAjax() {
});
if (i == res.list.length) {
allSelected.value = true;
} else {
allSelected.value = false;
}
} catch (error) {
console.log("获取购物车商品", error);