index.js 831 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. List:[1],
  7. IsSelectGrade:false,
  8. GradeArr: [{ Name: "一年级" }, { Name: "二年级" }, { Name: "三年级"}],
  9. },
  10. onLoad: function (options) {
  11. var that = this;
  12. that.setData({
  13. Containnerheight: main.getWindowHeight(),
  14. });
  15. },
  16. showSelectGrade: function () {
  17. var that = this;
  18. that.setData({
  19. IsSelectGrade: true,
  20. });
  21. },
  22. closeSelectGrade:function(){
  23. var that = this;
  24. that.setData({
  25. IsSelectGrade: false,
  26. });
  27. },
  28. onShareAppMessage: function () {
  29. return {
  30. title: app.globalData.ShareTitle,
  31. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  32. imageUrl: app.globalData.ShareImage,
  33. }
  34. },
  35. })