🎈 perf(优化电子商城):

This commit is contained in:
2022-11-30 17:14:28 +08:00
parent c2ca7f9e4e
commit c9b4dbdec3
8 changed files with 278 additions and 233 deletions
+7 -7
View File
@@ -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: '上传物流',
+3 -3
View File
@@ -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) => {}
+3 -1
View File
@@ -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>
+3 -1
View File
@@ -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>