🐞 fix(首页添加收藏标识):

This commit is contained in:
czm 2023-02-02 16:58:59 +08:00
parent f24ff9d6c1
commit 7e0fa9ad0f
2 changed files with 17 additions and 4 deletions

View File

@ -81,6 +81,11 @@
margin-top: 16px;
@include common_ellipsis($params: 2);
}
.header_con {
display: flex;
justify-content: space-between;
align-items: center;
}
.header_label {
width: 212px;
height: 40px;

View File

@ -1,7 +1,9 @@
import { Image, Text, View } from '@tarojs/components'
import Taro from '@tarojs/taro'
import { useCallback, useMemo } from 'react'
import classNames from 'classnames'
import LabAndImg from '../LabAndImg'
import IconFont from '../iconfont/iconfont'
import styles from './index.module.scss'
import { goLink } from '@/common/common'
import { formatHashTag, formatImgUrl } from '@/common/fotmat'
@ -35,11 +37,17 @@ const Product = ({ desStatus = true, productList = [] }: Params) => {
<View className={styles.tag}>{item.width}</View>
<View className={styles.tag_g}>{item.weight_density}</View>
</View>
{!!item.product_screw_id && <View className={styles.header_label}>
<View className={styles.header_con}>
<View>
{!!item.product_screw_id
&& <View className={styles.header_label}>
<Text></Text>
<Text></Text>
</View>}
</View>
<IconFont name="icon-shoucangchenggong" size={50} />
</View>
</View>
</View>
)
})}