🐞 fix(#1000663#15#21): 修复提货列表|提货详情模块的样式问题

This commit is contained in:
xuan
2022-11-11 11:39:00 +08:00
parent 7070ec425e
commit adbdb80dc8
14 changed files with 57 additions and 38 deletions
+5 -3
View File
@@ -3,8 +3,8 @@ import React, { memo, ReactNode, useMemo, useState } from 'react'
import style from './index.module.scss'
import DotLoading from '@/components/dotLoading'
import LoadingCard from '../loadingCard'
import { useCustomTabItemTap } from '@/use/useCommon'
import Taro from '@tarojs/taro'
import Empty from '@/components/empty'
import { EMPTY_IMAGE, SEARCH_EMPTY_IMAGE } from '@/common/constant'
export type StatusParam = 0 | 1 | 2 | 3
@@ -27,6 +27,7 @@ type Params = {
refresherTriggered?: boolean
refresherEnabled?: boolean
enableBackToTop?: boolean
emptySlot?: React.ReactNode
}
export default memo(
({
@@ -48,6 +49,7 @@ export default memo(
moreStatus = true,
statusMore = 0,
enableBackToTop = true,
emptySlot
}: Params) => {
const scrollToLower = () => {
selfonScrollToLower?.()
@@ -105,7 +107,7 @@ export default memo(
</View>
)}
{statusMore == 0 && <LoadingCard />}
{statusMore == 1 && <LoadingCard loadingIcon={false} title='暂无数据' />}
{statusMore == 1 && emptySlot ? emptySlot : <Empty picUrl={SEARCH_EMPTY_IMAGE} text='暂无数据'/>}
</>
)
}