index.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. Menu:0,
  7. Sheets:[],
  8. ArrList:[{ID:1,Name:"识字"},{ID: 2,Name:"写字"},{ID:3,Name:"词语"},{ID:4,Name:"古诗文"},{ID:5,Name:"日积月累"},],
  9. ArrList2:[{ID:1,Name:"励志小古文\n240句",Remark:"这里最多写两行对本书的描述,多的人工打…",Count:99}],
  10. ArrList3:[{ID:1,Name:"剑桥KET/PET\n常用固定搭配",Remark:"这里最多写两行对本书的描述,多的人工打…",Count:99},{ID:1,Name:"高频单词",Remark:"这里最多写两行对本书的描述,多的人工打…",Count:99},{ID:1,Name:"高频单词",Remark:"这里最多写两行对本书的描述,多的人工打…",Count:99},{ID:1,Name:"高频单词",Remark:"这里最多写两行对本书的描述,多的人工打…",Count:99},{ID:1,Name:"高频单词",Remark:"这里最多写两行对本书的描述,多的人工打…",Count:99}],
  11. },
  12. onPullDownRefresh: function () {
  13. wx.stopPullDownRefresh();
  14. },
  15. onLoad: function (options) {
  16. var that = this;
  17. that.setData({
  18. Containnerheight: main.getWindowHeight(),
  19. });
  20. },
  21. onShow:function(){
  22. var that = this;
  23. },
  24. setMenu:function(e){
  25. var that=this;
  26. var index=e.currentTarget.dataset.index;
  27. that.setData({
  28. Menu:index,
  29. });
  30. },
  31. goto: function (e) {
  32. var url = e.currentTarget.dataset.url;
  33. wx.navigateTo({
  34. url: url,
  35. });
  36. },
  37. onShareAppMessage: function () {
  38. return {
  39. title: app.globalData.ShareTitle,
  40. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  41. imageUrl: app.globalData.ShareImage,
  42. }
  43. },
  44. })