mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
feat: 更新商品详情封面图和底部图片
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
.wgt-imghot-zone {
|
||||
.img-hotzone {
|
||||
position: relative;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
&_zone {
|
||||
position: absolute;
|
||||
|
||||
@@ -706,11 +706,11 @@ const getMultipleImageInfo = async (imageUrls) => {
|
||||
.catch(error => {
|
||||
console.log('获取图片信息失败:', url, error)
|
||||
// 返回一个默认高度或 null
|
||||
return { width: 0, height: 750 }
|
||||
return { width: 0, height: 650 }
|
||||
})
|
||||
)
|
||||
const results = await Promise.all(promises)
|
||||
return results.map(info => info.height / 2)
|
||||
return results.map(info => (info.height) / 2 > 650 ? 650 : info.height / 2)
|
||||
}
|
||||
|
||||
const getRecommendList = async () => {
|
||||
@@ -775,9 +775,10 @@ const getMultipleImageInfo = async (imageUrls) => {
|
||||
return {
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
backgroundSize: '100% auto',
|
||||
backgroundSize: 'cover',
|
||||
backgroundImage: `url(${item})`,
|
||||
backgroundRepeat: 'no-repeat'
|
||||
backgroundRepeat: 'no-repeat',
|
||||
backgroundPosition: 'center'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
.wgt-imghot-zone {
|
||||
.img-hotzone {
|
||||
position: relative;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
&_zone {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user