🎈 perf(优化电子商城):
This commit is contained in:
@@ -52,13 +52,13 @@ export default memo(({ orderInfo, onClick, fixedBottom = true }: Param) => {
|
||||
return false
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
label: '质检结果',
|
||||
validatarFunc: (orderInfo) => {
|
||||
return orderInfo?.is_quality_check
|
||||
},
|
||||
},
|
||||
// {
|
||||
// id: 4,
|
||||
// label: '质检结果',
|
||||
// validatarFunc: (orderInfo) => {
|
||||
// return orderInfo?.is_quality_check
|
||||
// },
|
||||
// },
|
||||
{
|
||||
id: 5,
|
||||
label: '上传物流',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MovableArea, MovableView, View } from '@tarojs/components'
|
||||
import Taro, { useReady } from '@tarojs/taro'
|
||||
import Taro, { useDidShow, useReady, useRouter } from '@tarojs/taro'
|
||||
import { ReactElement, useEffect, useLayoutEffect, useRef, useState } from 'react'
|
||||
import classnames from 'classnames'
|
||||
import styles from './index.module.scss'
|
||||
@@ -28,9 +28,9 @@ export default ({ children = null, onClick }: param) => {
|
||||
setShowMoveBtn(true)
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
useDidShow(() => {
|
||||
getShopCount()
|
||||
}, [])
|
||||
})
|
||||
|
||||
const dragEnd = (e) => {}
|
||||
|
||||
|
||||
@@ -374,7 +374,9 @@ export default ({ show = false, onClose, intoStatus = 'shop', default_sale_mode
|
||||
{!loading && list?.length == 0 && (
|
||||
<View className={styles.empty}>
|
||||
<View className={styles.title}>暂未选择商品</View>
|
||||
<View className={styles.btn}>去选购</View>
|
||||
<View className={styles.btn} onClick={() => goLink('/pages/index/index')}>
|
||||
去选购
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
</View>
|
||||
|
||||
@@ -341,7 +341,9 @@ export default ({ show = false, onClose, intoStatus = 'shop', default_sale_mode
|
||||
{!loading && listData?.length == 0 && (
|
||||
<View className={styles.empty}>
|
||||
<View className={styles.title}>暂未选择商品</View>
|
||||
<View className={styles.btn}>去选购</View>
|
||||
<View className={styles.btn} onClick={() => goLink('/pages/index/index', null, 'switchTab')}>
|
||||
去选购
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user