From e70638b37a9db94df0a13e04242ce7781b83a400 Mon Sep 17 00:00:00 2001 From: xuan Date: Fri, 17 Feb 2023 16:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf(=E8=89=B2=E5=8D=A1):=20?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=89=B2=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../getColorCard/components/itemList/index.tsx | 13 ++++++------- src/pages/sampleCutting/index.tsx | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/pages/getColorCard/components/itemList/index.tsx b/src/pages/getColorCard/components/itemList/index.tsx index 06188b8..894bfa2 100644 --- a/src/pages/getColorCard/components/itemList/index.tsx +++ b/src/pages/getColorCard/components/itemList/index.tsx @@ -1,11 +1,7 @@ import type { ITouchEvent } from '@tarojs/components' import { ScrollView, View } from '@tarojs/components' -import Taro from '@tarojs/taro' import { memo, useCallback, useEffect, useMemo, useState } from 'react' -import classnames from 'classnames' import styles from './index.module.scss' -import BottomBtns from '@/components/BottomBtns' -import { formatPriceDiv } from '@/common/format' import LabAndImg from '@/components/LabAndImg' import NormalButton from '@/components/normalButton' import Divider from '@/components/divider' @@ -36,9 +32,12 @@ const ItemList = (props: PropsType) => { {data.purchaser_name} - - {data.sale_user_name} - + { + data.sale_user_name && + {data.sale_user_name} + + } + diff --git a/src/pages/sampleCutting/index.tsx b/src/pages/sampleCutting/index.tsx index 25e3455..040ed36 100644 --- a/src/pages/sampleCutting/index.tsx +++ b/src/pages/sampleCutting/index.tsx @@ -3,7 +3,7 @@ import { View } from '@tarojs/components' import Taro from '@tarojs/taro' import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import styles from './index.module.scss' -import ItemList from './components/itemList' +import ItemList from './components/itemList/index' import Search from '@/components/search' import NormalButton from '@/components/normalButton' import InfiniteScroll from '@/components/infiniteScroll'