🎈 perf(优化):
This commit is contained in:
@@ -303,6 +303,11 @@ export default ({ show = false, onClose, intoStatus = 'shop', default_sale_mode
|
||||
setShowLabImage(() => false)
|
||||
}, [])
|
||||
|
||||
const goShop = useCallback(() => {
|
||||
onClose?.()
|
||||
goLink('/pages/index/index', null, 'switchTab')
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<View className={styles.shop_cart_main}>
|
||||
<Popup showTitle={false} show={showPopup} onClose={() => closePopup()}>
|
||||
@@ -341,7 +346,7 @@ 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} onClick={() => goLink('/pages/index/index', null, 'switchTab')}>
|
||||
<View className={styles.btn} onClick={goShop}>
|
||||
去选购
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user