Commit 1e34cdf1 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx]: 如果关键字是空,则不查询后台类似关键字

parent 149c7d20
...@@ -49,12 +49,14 @@ Page({ ...@@ -49,12 +49,14 @@ Page({
}, },
inputChange: function (e) { inputChange: function (e) {
this.setData({ this.setData({
keyword: e.detail.value, keyword: e.detail.value,
searchStatus: false searchStatus: false
}); });
this.getHelpKeyword();
if (e.detail.value) {
this.getHelpKeyword();
}
}, },
getHelpKeyword: function () { getHelpKeyword: function () {
let that = this; let that = this;
......
Supports Markdown
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