🎈 perf(优化):

This commit is contained in:
2022-12-01 20:53:38 +08:00
parent d973905bbe
commit 461744054e
11 changed files with 120 additions and 79 deletions
+6 -1
View File
@@ -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>