var t = require("../../lib/aes.js"), e = getApp(); Page({ data: { currentBook: {}, currentPageIndex: 1, programList: [], advertisement: void 0, showAdv: !1, showNotice: !1, notice: void 0, showTest: !1, gradeList: void 0 }, onLoad: function(t) {}, onReady: function() {}, onShow: function() {}, onUnload: function() {}, gotoPoetry: function(t) { wx.navigateTo({ url: "../poetry/poetry?type=kewen" }); }, gotoBibei: function(t) { wx.navigateTo({ url: "../poetry-album/poetry-album?id=1&type=textbook&title=小学必备129首" }); }, gotoTangShi: function(t) { wx.navigateTo({ url: "../poetry-album/poetry-album?id=2&title=唐诗300首" }); }, gotoGuwen: function(t) { var e = t.currentTarget.dataset.id, a = t.currentTarget.dataset.title; wx.navigateTo({ url: "../poetry-album/poetry-album?id=".concat(e, "&title=").concat(a) }); }, clickTest: function(t) { this.setData({ showTest: !0 }), this.data.gradeList || this.getGradeList(); }, gotoTest: function(t) { var e = t.currentTarget.dataset.item; this.setData({ showTest: !1 }), wx.navigateTo({ url: "../kewen-exercise/kewen-exercise?type=test&id=" + e.id }); }, onClose: function() { this.setData({ showTest: !1 }); }, getGradeList: function() { var a = this, o = e.globalData.API_URL + "/h5/api/textbook/version/13"; wx.request({ url: o, data: {}, success: function(o) { var i = t.decrypt(o.data, e.globalData.key), n = JSON.parse(i); a.setData({ gradeList: n }); } }); }, onShareAppMessage: function(t) { return { title: e.globalData.share_title, path: "/pages/index/index", success: function(t) {}, fail: function(t) {} }; } });