🐞 fix(ID1001344): 【内部商城】-功能{添加剪样}:剪样不能完全呈现,上划该页面无反应

【【内部商城】-功能{添加剪样}:剪样不能完全呈现,上划该页面无反应】 https://www.tapd.cn/53459131/bugtrace/bugs/view/1153459131001001344
This commit is contained in:
xuan 2023-02-24 19:10:51 +08:00
parent 78348efef9
commit bd53e19526
2 changed files with 32 additions and 23 deletions

View File

@ -30,6 +30,13 @@
"query": "id=1", "query": "id=1",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "",
"pathName": "pages/sampleCutting/sampleCuttingList/index",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }

View File

@ -298,30 +298,32 @@ const SampleCuttingList = () => {
</View> </View>
{ {
productList.length productList.length
? <View className={styles.productList}> ? <ScrollView scrollY style={{ flex: '1 1 auto', overflow: 'hidden', maxHeight: '60vh' }}>
{ <View className={styles.productList}>
productList?.map((item, index) => { {
const isChecked = productMultipleSelection.some(mul => mul.product_color_id === item.product_color_id) productList?.map((item, index) => {
return <View key={index} className={styles.item} onClick={() => handleClickProductColor(item)}> const isChecked = productMultipleSelection.some(mul => mul.product_color_id === item.product_color_id)
<View className={classNames(styles.item_color, isChecked ? styles.productColorActive : null)}> return <View key={index} className={styles.item} onClick={() => handleClickProductColor(item)}>
{ <View className={classNames(styles.item_color, isChecked ? styles.productColorActive : null)}>
isChecked {
? <View className={styles.activeIcon}> isChecked
<IconFont name="icon-xuanzhongyanse" size={32}></IconFont> ? <View className={styles.activeIcon}>
</View> <IconFont name="icon-xuanzhongyanse" size={32}></IconFont>
: null </View>
} : null
<LabAndImg }
value={item} <LabAndImg
round value={item}
name={formatRemoveHashTag(item.product_color_code)} round
/> name={formatRemoveHashTag(item.product_color_code)}
/>
</View>
<View className={styles.item_name}>{item.product_color_name}</View>
</View> </View>
<View className={styles.item_name}>{item.product_color_name}</View> })
</View> }
}) </View>
} </ScrollView>
</View>
: <Empty text="暂无数据" /> : <Empty text="暂无数据" />
} }