import { imageBasUrl } from '../../utils/config' Page({ data: { searchKeyword: '', searchFlag: false, searchList: [], historySearch: [] }, onLoad(query) { console.log('page onLoad', query) }, onShow() { }, handleSearchClear() { this.setData({ searchKeyword: '' }) }, handleSearchSubmit(event) { this.setData({ searchKeyword: event }) }, handleSearchInput(event) { this.setData({ searchKeyword: event }) }, setHistorySearch(historySearch = []) { this.setData({ historySearch, }) my.setStorageSync('historySearch', historySearch); }, clearHistoryList() { my.confirm({ title: '温馨提示', content: '你确定要删除历史记录吗', confirmButtonText: '是', cancelButtonText: '否', success: (result) => { console.log(result, "resultresult") if (result.confirm) { this.setHistorySearch(); } }, }); }, historuNavigator(event) { this.setData({ searchKeyword: '' }) }, onDelItem() { console.log("[[[[[[[[[[") } })