🐞 fix(ID1001050 首页列表商品信息缺少螺纹推荐的标识):

This commit is contained in:
czm 2023-01-12 11:32:11 +08:00
parent 8626fe71ba
commit 28bd494e93
3 changed files with 40 additions and 8 deletions

View File

@ -7,16 +7,18 @@
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
border-radius: 20px; border-radius: 20px;
padding: 20px; padding: 10px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
// height: 160px;
box-sizing: border-box;
justify-content: space-between; justify-content: space-between;
&:nth-child(n + 2) { &:nth-child(n + 2) {
margin-top: 16px; margin-top: 16px;
} }
.item_img { .item_img {
width: 198px; width: 160px;
height: 198px; height: 160px;
position: relative; position: relative;
image { image {
width: 100%; width: 100%;
@ -79,5 +81,33 @@
margin-top: 16px; margin-top: 16px;
@include common_ellipsis($params: 2); @include common_ellipsis($params: 2);
} }
.header_label {
width: 212px;
height: 40px;
background: #fcf4e9;
border-radius: 5px;
font-size: 24px;
display: flex;
text {
display: inline-block;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
&:nth-child(1) {
width: 80px;
height: 40px;
background: #fee5cd;
border-radius: 5px 0px 0px 5px;
color: #522b0fff;
}
&:nth-child(2) {
flex: 1;
background: #fcf4e9ff;
border-radius: 0px 5px 5px 0px;
color: #c57c26ff;
}
}
}
} }
} }

View File

@ -1,4 +1,4 @@
import { Image, View } from '@tarojs/components' import { Image, Text, View } from '@tarojs/components'
import Taro from '@tarojs/taro' import Taro from '@tarojs/taro'
import { useCallback, useMemo } from 'react' import { useCallback, useMemo } from 'react'
import LabAndImg from '../LabAndImg' import LabAndImg from '../LabAndImg'
@ -35,8 +35,10 @@ const Product = ({ desStatus = true, productList = [] }: Params) => {
<View className={styles.tag}>{item.width}</View> <View className={styles.tag}>{item.width}</View>
<View className={styles.tag_g}>{item.weight_density}</View> <View className={styles.tag_g}>{item.weight_density}</View>
</View> </View>
<View className={styles.introduce}>{`${item.craft}${item.component}`}</View> {!!item.product_screw_id && <View className={styles.header_label}>
{desStatus && <View className={styles.des}>{item.describe}</View>} <Text></Text>
<Text></Text>
</View>}
</View> </View>
</View> </View>
) )

View File

@ -23,7 +23,7 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
background-color: #fff; background-color: #fff;
z-index: 1600; z-index: 1800;
border-radius: 16px; border-radius: 16px;
padding: 32px; padding: 32px;
box-sizing: border-box; box-sizing: border-box;
@ -54,6 +54,6 @@
height: 100vh; height: 100vh;
width: 100vh; width: 100vh;
background: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.6);
z-index: 1500; z-index: 1700;
} }
} }