修改样式
This commit is contained in:
@@ -11,6 +11,7 @@ import RemoveStore from "./components/remove-store.vue";
|
||||
import StoreCartSkeleton from "./components/store-cart-skeleton.vue";
|
||||
import { onBeforeUnmount, ref } from "vue";
|
||||
import {useConfigStore} from "@/store";
|
||||
import { parseMerchantCartPayload } from "@/utils/utils";
|
||||
const configStore = useConfigStore();
|
||||
// 骨架屏加载状态
|
||||
const loading = ref(true);
|
||||
@@ -219,8 +220,9 @@ function getCartInfo() {
|
||||
}
|
||||
}).then((res: any)=> {
|
||||
console.log('购物车列表', res)
|
||||
cartDataList.value = res.data
|
||||
syncItemCountCache(res.data || [])
|
||||
const items = parseMerchantCartPayload(res?.data).items as MerchantCartVo[]
|
||||
cartDataList.value = items
|
||||
syncItemCountCache(items)
|
||||
|
||||
// 购物车有菜品,查询菜品会员折扣价
|
||||
if(cartDataList.value.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user