From bf80f95eadc3fac8991fc9f4dcfe02d4aaa43f82 Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Thu, 24 Nov 2022 17:15:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8):=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/order/components/itemList/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/order/components/itemList/index.tsx b/src/pages/order/components/itemList/index.tsx index ba8bd6a..42fb86b 100644 --- a/src/pages/order/components/itemList/index.tsx +++ b/src/pages/order/components/itemList/index.tsx @@ -5,6 +5,7 @@ import classnames from 'classnames' import BottomBtns from '@/components/BottomBtns' import { formatPriceDiv } from '@/common/format' import Taro from '@tarojs/taro' +import LabAndImg from "@/components/LabAndImg" interface propsObj { obj: any, @@ -38,6 +39,9 @@ export default memo((props: propsObj) => { } }, [props?.obj]) + const labAndImgObj = useCallback((item) => { + return { lab: item.lab, rgb: item.rgb, texture_url: item.texture_url } + }, []) return ( navTo(e)}> @@ -49,7 +53,8 @@ export default memo((props: propsObj) => { - + + 颜色 ({props?.obj?.total_colors})