consumer模块完成90%,完善店铺商品优惠券领取
This commit is contained in:
@@ -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 || ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user