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, }); }, 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 that = this; var url = 'GetMiaoguoCardList?UserID=' + app.globalData.userInfo.UserID; if (search) url += "&Key=" + search; main.getData(url, function (data) { if (data) { wx.setStorageSync("CardList", data); wx.navigateTo({ url: './searchCardList?search=' + search, }) } }); } else { wx.showToast({ title: '请输搜索内容', }) } }, close: function (e) { wx.navigateBack({ delta: 1, }); }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, })