This commit is contained in:
2019-12-24 21:54:49 +08:00
parent ef6a5868f1
commit 01d1215d5d
5 changed files with 31 additions and 5 deletions

View File

@@ -4,5 +4,11 @@ Component({
data: {
},
methods: {
search(a){
console.log(a)
wx.navigateTo({
url:"/pages/search/search?key=" + a.detail.value
})
}
}
})

View File

@@ -1,4 +1,4 @@
<view class="search">
<image></image>
<input type="text" placeholder="输入您要搜索的产品" />
<input type="text" confirm-type="search " bindconfirm="search" placeholder="输入您要搜索的产品" />
</view>