From 08b8627ec9682e8e5a491947019dde5b0410a5a2 Mon Sep 17 00:00:00 2001 From: xuan Date: Mon, 27 Feb 2023 10:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf(=E5=B9=B3=E5=8F=B0=E6=9D=A5?= =?UTF-8?q?=E6=BA=90):=20=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=99=86=E7=9B=88?= =?UTF-8?q?=E5=AD=97=E7=9C=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerDetails/index.tsx | 8 +++++--- src/pages/customerPage/index.tsx | 2 +- src/pages/getColorCard/colorCardList/index.tsx | 1 + src/pages/order/components/itemList/index.tsx | 2 +- src/pages/orderDetails/index.tsx | 8 +++++--- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/pages/customerDetails/index.tsx b/src/pages/customerDetails/index.tsx index 5ece8ff..97b605f 100644 --- a/src/pages/customerDetails/index.tsx +++ b/src/pages/customerDetails/index.tsx @@ -86,9 +86,11 @@ const CustomerDetails = () => { {infoObj?.phone} - - {infoObj?.platform_source_name || '暂无'} - + { + infoObj?.platform_source !== 1 && + {infoObj?.platform_source_name || '暂无'} + + } {infoObj?.purchaser_type_name || '暂无'} diff --git a/src/pages/customerPage/index.tsx b/src/pages/customerPage/index.tsx index b97c364..b2621eb 100644 --- a/src/pages/customerPage/index.tsx +++ b/src/pages/customerPage/index.tsx @@ -138,7 +138,7 @@ const CustomerPage = () => { { item.name } { - item?.platform_source_name + (item?.platform_source_name && item.platform_source !== 1) && { item?.platform_source_name } diff --git a/src/pages/getColorCard/colorCardList/index.tsx b/src/pages/getColorCard/colorCardList/index.tsx index 58aca5f..bf6dbd9 100644 --- a/src/pages/getColorCard/colorCardList/index.tsx +++ b/src/pages/getColorCard/colorCardList/index.tsx @@ -195,6 +195,7 @@ const ColorCardList = () => { + {/* multipleSelection.current.some(mul => mul.id === item.id) 确保加载新数据时保持选中状态 */} mul.id === item.id)} diff --git a/src/pages/order/components/itemList/index.tsx b/src/pages/order/components/itemList/index.tsx index 9ef912d..1c86143 100644 --- a/src/pages/order/components/itemList/index.tsx +++ b/src/pages/order/components/itemList/index.tsx @@ -55,7 +55,7 @@ const ItemList = (props: propsObj) => { {obj?.purchaser_name} { - obj?.platform_source_name + (obj?.platform_source_name && obj?.platform_source !== 1) && { obj?.platform_source_name } diff --git a/src/pages/orderDetails/index.tsx b/src/pages/orderDetails/index.tsx index abe3bfc..283f9bd 100644 --- a/src/pages/orderDetails/index.tsx +++ b/src/pages/orderDetails/index.tsx @@ -834,9 +834,11 @@ const OrderDetails = () => { {infoObj.purchaser_name} - - {infoObj?.platform_source_name || '暂无'} - + { + infoObj?.platform_source !== 1 && + {infoObj?.platform_source_name || '暂无'} + + } {infoObj.purchaser_phone}