import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { }, onLoad: function () { wx.hideShareMenu(); var that = this; that.setData({ Containnerheight: main.getWindowHeight(), IsShowNull: false, }); }, onShow:function(){ if (wx.getStorageSync("SearchNull")){ this.setData({ IsShowNull:true, }) wx.removeStorageSync("SearchNull"); } }, onKeyInput: function (e) { var search = e.detail.value; var that = this; that.setData({ SearchInfo: search, }); }, onSearch: function (e) { if (this.data.SearchInfo && this.data.SearchInfo.length>0){ var search = this.data.SearchInfo; var arr=wx.getStorageSync("SearchWord"); if (!arr) arr=[]; var obj = {}; obj.Key = search; for(var i=0;i