Showing
1 changed file
with
2 additions
and
3 deletions
| ... | @@ -374,9 +374,8 @@ const toggleFavorite = (id) => { | ... | @@ -374,9 +374,8 @@ const toggleFavorite = (id) => { |
| 374 | * @param {Object} scooter 商品信息 | 374 | * @param {Object} scooter 商品信息 |
| 375 | */ | 375 | */ |
| 376 | const onProductClick = (scooter) => { | 376 | const onProductClick = (scooter) => { |
| 377 | - // 关闭弹窗 | 377 | + // 不关闭弹窗,直接跳转到详情页 |
| 378 | - handleClose() | 378 | + // 这样用户从详情页返回时,可以回到搜索页面 |
| 379 | - // 跳转到详情页 | ||
| 380 | Taro.navigateTo({ | 379 | Taro.navigateTo({ |
| 381 | url: `/pages/productDetail/index?id=${scooter.id}` | 380 | url: `/pages/productDetail/index?id=${scooter.id}` |
| 382 | }) | 381 | }) | ... | ... |
-
Please register or login to post a comment