购物车和订单中心以及优惠券相关功能初版

This commit is contained in:
xiaowang
2026-02-27 16:44:41 +08:00
parent 3529a73d84
commit 43f31eed53
36 changed files with 1785 additions and 24 deletions
+3 -2
View File
@@ -308,8 +308,9 @@ const fetchCoupons = async () => {
loading.value = true
try {
const res = await adminCouponApi.listAllCoupons()
couponList.value = res || []
pagination.total = res.length || 0
// 处理后端返回的分页数据结构
couponList.value = res?.list || []
pagination.total = res?.total || 0
} catch (error) {
message.error('获取优惠券列表失败')
} finally {