consumer模块完成90%,完善店铺商品优惠券领取

This commit is contained in:
2026-02-05 17:27:22 +08:00
parent 0ee4577b31
commit 06b7369494
22 changed files with 2096 additions and 1286 deletions

View File

@@ -123,9 +123,6 @@ const loadShopProducts = async (id: string) => {
}
}
}
if (images.length === 0 && item.image) {
images.push(item.image!)
}
if (images.length === 0 && item.main_image_url) {
images.push(item.main_image_url!)
}
@@ -137,10 +134,10 @@ const loadShopProducts = async (id: string) => {
name: item.name,
description: item.description || '',
images: images,
price: item.price,
original_price: item.original_price || item.price,
stock: item.stock || 0,
sales: item.sales || 0,
price: item.base_price,
original_price: item.market_price || item.base_price,
stock: item.total_stock || 0,
sales: item.sale_count || 0,
status: 1,
created_at: item.created_at || ''
}