aboutUs.js 724 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Page({
  2. /**
  3. * 页面的初始数据
  4. */
  5. data: {
  6. currentTab: 0,
  7. winHeight: 0
  8. },
  9. switch1: function () {
  10. this.setData({
  11. currentTab: 1
  12. })
  13. },
  14. switch2: function () {
  15. this.setData({
  16. currentTab: 2
  17. })
  18. },
  19. switch3: function () {
  20. this.setData({
  21. currentTab: 3
  22. })
  23. },
  24. switch5: function () {
  25. this.setData({
  26. currentTab: 5
  27. })
  28. },
  29. switch6: function () {
  30. this.setData({
  31. currentTab: 6
  32. })
  33. },
  34. onLoad: function (options) {
  35. wx.getSystemInfo({
  36. success: function (res) {
  37. this.setData({
  38. winHeight: res.windowHeight
  39. })
  40. }.bind(this),
  41. })
  42. }
  43. })