处理搜索

This commit is contained in:
2024-08-22 22:30:52 +08:00
parent b43246074a
commit 49226941c4
13 changed files with 628 additions and 4 deletions

View File

@@ -31,8 +31,8 @@ Page({
]
},
// 页面跳转
jumpPage(e) {
let jumpType = e.currentTarget.dataset.jumptype;
console.log(jumpType == 1);
if(jumpType == 1){
@@ -40,8 +40,21 @@ Page({
url: "/pages/list/list?id=1"
})
}
if(jumpType == 2){
wx.navigateTo({
url: "/pages/list/list?id=1"
})
}
if(jumpType == 3){
wx.navigateTo({
url: "/pages/search/index"
})
}
// wx.navigateTo({
// url: this.data.category[index].url
// })
},
bindFocus(e){
console.log(e);
}
})