Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-04 16:48:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c4a14bf95be8cc16880fb847ec1693966bb3732d
c4a14bf9
1 parent
e4bcebed
fix(SearchPopup): 修改商品点击逻辑不关闭弹窗
这样用户从详情页返回时可以保持搜索状态
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/components/SearchPopup.vue
src/components/SearchPopup.vue
View file @
c4a14bf
...
...
@@ -374,9 +374,8 @@ const toggleFavorite = (id) => {
* @param {Object} scooter 商品信息
*/
const onProductClick = (scooter) => {
// 关闭弹窗
handleClose()
// 跳转到详情页
// 不关闭弹窗,直接跳转到详情页
// 这样用户从详情页返回时,可以回到搜索页面
Taro.navigateTo({
url: `/pages/productDetail/index?id=${scooter.id}`
})
...
...
Please
register
or
login
to post a comment