var t = getApp().requirejs("core"); Page({ data: { type: 1, shop_type: "in", sh: "" }, onLoad: function(t) { this.setData({ type: t.type }), this.getList("in", ""); }, getList: function(e, s) { var n = this; t.get("transfer_account/transferLog", { type: this.data.type, listType: e, keyword: s }, function(t) { n.setData({ list: t.list, sysset: t.sysset }); }); }, myTab: function(t) { this.getList(t.target.dataset.type, ""), this.setData({ shop_type: t.target.dataset.type, sh: "" }); }, onReady: function() {}, onShow: function() {}, onHide: function() {}, onUnload: function() {}, onPullDownRefresh: function() {}, onReachBottom: function() {}, onShareAppMessage: function() {}, doinput: function(t) { var e = t.detail.value; "" != e && this.getList(this.data.shop_type, e), this.setData({ sh: t.detail.value }); }, flexIconSearch: function(t) { console.log(this.data.sh); } });