🎈 perf(修复色卡图片暂无问题):

This commit is contained in:
czm 2023-02-22 15:09:50 +08:00
parent f33deb7792
commit bbad78f212

View File

@ -39,13 +39,13 @@ export default (props: Param) => {
e.stopPropagation() e.stopPropagation()
onCancel?.(id) onCancel?.(id)
} }
const labAndImgObj = useMemo( // const labAndImgObj = useMemo(
() => { // () => {
const res = value.color_card_info[0] // const res = value.color_card_info[0]
return { lab: res.lab, rgb: res.rgb, texture_url: res.texture_url } // return { lab: res.lab, rgb: res.rgb, texture_url: res.texture_url }
}, // },
[value], // [value],
) // )
return <View className={styles.list_item} onClick={() => goLink('/pages/colorCardOrderDetail/index', { id: value.order_id })} > return <View className={styles.list_item} onClick={() => goLink('/pages/colorCardOrderDetail/index', { id: value.order_id })} >
<View className={styles.item_header}> <View className={styles.item_header}>
@ -54,7 +54,7 @@ export default (props: Param) => {
</View> </View>
<View className={styles.item_con}> <View className={styles.item_con}>
<View className={styles.image}> <View className={styles.image}>
<LabAndImg value={labAndImgObj} showStatus={false} /> <LabAndImg value={{}} showStatus={false} />
</View> </View>
<View className={styles.item_con_desc}> <View className={styles.item_con_desc}>