Commit 936fa366 by 陈超

T

parent edc828c9
...@@ -306,6 +306,7 @@ ...@@ -306,6 +306,7 @@
onSearch: function() { onSearch: function() {
this.showHistory = false this.showHistory = false
this.searchCourse() this.searchCourse()
this.searchGoods()
}, },
onTab: function(idx) { onTab: function(idx) {
this.tab = idx this.tab = idx
...@@ -336,7 +337,16 @@ ...@@ -336,7 +337,16 @@
}, },
searchGoods: function() { searchGoods: function() {
let that = this
$.ajax({
type: "GET",
url: "{:U('mall/Goods/index')}"+"?api=1&search=" + that.keyword,
dataType: "json",
success: function(res) {
let array = res.data.length > 0 ? res.data : []
console.log(data)
}
})
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment