...
|
...
|
@@ -163,12 +163,24 @@ Page({ |
|
|
this.productList(params);
|
|
|
},
|
|
|
|
|
|
searchRecent: function() {
|
|
|
searchRecent: function(e) {
|
|
|
const key = e.target.dataset.key;
|
|
|
|
|
|
this.confirmQuery({
|
|
|
detail: {
|
|
|
value: key
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
|
|
|
deleteRecent: function() {
|
|
|
|
|
|
wx.setStorage({
|
|
|
key: 'search_hot_keys',
|
|
|
data: []
|
|
|
});
|
|
|
this.setData({
|
|
|
recentKeys: []
|
|
|
});
|
|
|
},
|
|
|
|
|
|
setRecentKeys: function(key) {
|
...
|
...
|
|