fix[litemall-wx]: 如果关键字是空,则不查询后台类似关键字
This commit is contained in:
@@ -49,12 +49,14 @@ Page({
|
||||
},
|
||||
|
||||
inputChange: function (e) {
|
||||
|
||||
this.setData({
|
||||
keyword: e.detail.value,
|
||||
searchStatus: false
|
||||
});
|
||||
this.getHelpKeyword();
|
||||
|
||||
if (e.detail.value) {
|
||||
this.getHelpKeyword();
|
||||
}
|
||||
},
|
||||
getHelpKeyword: function () {
|
||||
let that = this;
|
||||
|
||||
Reference in New Issue
Block a user