✨ feat(发货单详情): 已完成发货单详情

This commit is contained in:
xuan
2022-09-22 15:53:30 +08:00
parent d2a1441810
commit b51c53a73a
69 changed files with 651 additions and 369 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import Taro, { FC } from '@tarojs/taro'
import Taro from '@tarojs/taro'
import { memo, useEffect, useState } from 'react'
import useUploadCDNImg from '@/use/useUploadImage'
import { Image, Text, View } from '@tarojs/components'
@@ -10,9 +10,9 @@ import styles from './index.module.scss'
type ImageParam = {
onChange?: (val: string[]) => void
defaultList?: string[]
onlyRead?: false | true
onlyRead?: boolean
}
const PictureItem: FC<ImageParam> = memo(({ onChange, defaultList, onlyRead = false }) => {
const PictureItem = memo<ImageParam>(({ onChange, defaultList, onlyRead = false }) => {
const { getWxPhoto } = useUploadCDNImg()
const [imageList, setImageLise] = useState<string[]>([])