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'