menu.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. // pages/student/menu/menu.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. userInfo: '',
  8. menuStudent: [{
  9. 'title': '人脸自助',
  10. imagename: 'facephoto',
  11. left: '#fec38f',
  12. right: '#ff8980'
  13. },
  14. {
  15. 'title': '访客申请',
  16. imagename: 'application',
  17. left: '#bdc1ff',
  18. right: '#ac8efd'
  19. },
  20. {
  21. 'title': '通行记录',
  22. imagename: 'pass',
  23. left: '#9fd9fc',
  24. right: '#7abcf2'
  25. },
  26. {
  27. 'title': '考勤统计',
  28. imagename: 'statistics',
  29. left: '#ffca93',
  30. right: '#fdb957'
  31. }
  32. ],
  33. listStudent: [{
  34. 'title': '报修服务',
  35. nav: 'baoxiu'
  36. },
  37. {
  38. 'title': '快递物流',
  39. nav: 'kuaidi'
  40. },
  41. {
  42. 'title': '投诉建议',
  43. nav: 'tousu'
  44. },
  45. {
  46. 'title': '问卷调查',
  47. nav: 'diaocha'
  48. }
  49. ],
  50. menuTeacher: [{
  51. 'title': '人脸自助',
  52. imagename: 'facephoto',
  53. left: '#fec38f',
  54. right: '#ff8980'
  55. },
  56. {
  57. 'title': '访客审核',
  58. imagename: 'visitorcheck',
  59. left: '#bdc1ff',
  60. right: '#ac8efd'
  61. },
  62. {
  63. 'title': '通行记录',
  64. imagename: 'pass',
  65. left: '#9fd9fc',
  66. right: '#7abcf2'
  67. },
  68. {
  69. 'title': '考勤统计',
  70. imagename: 'statistics',
  71. left: '#ffca93',
  72. right: '#fdb957'
  73. }
  74. ],
  75. listTeacher: [{
  76. 'title': '预警提醒',
  77. nav: 'yujing-2',
  78. Url: 'warning',
  79. url: 'warning'
  80. }, {
  81. 'title': '报表管理',
  82. nav: 'baobiaoguanli'
  83. }, {
  84. 'title': '投诉建议',
  85. nav: 'tousu',
  86. Url: 'suggestion',
  87. url: 'list'
  88. }, {
  89. 'title': '报修管理',
  90. nav: 'baoxiu'
  91. }]
  92. },
  93. check: function() {
  94. wx.showToast({
  95. title: '模块开发中',
  96. icon: 'none'
  97. })
  98. },
  99. /**
  100. * 生命周期函数--监听页面加载
  101. */
  102. onLoad: function(options) {
  103. const that = this;
  104. let userInfo = wx.getStorageSync('user');
  105. that.setData({
  106. userInfo: userInfo
  107. })
  108. },
  109. /**
  110. * 生命周期函数--监听页面初次渲染完成
  111. */
  112. onReady: function() {
  113. },
  114. /**
  115. * 生命周期函数--监听页面显示
  116. */
  117. onShow: function() {
  118. },
  119. /**
  120. * 生命周期函数--监听页面隐藏
  121. */
  122. onHide: function() {
  123. },
  124. /**
  125. * 生命周期函数--监听页面卸载
  126. */
  127. onUnload: function() {
  128. },
  129. /**
  130. * 页面相关事件处理函数--监听用户下拉动作
  131. */
  132. onPullDownRefresh: function() {
  133. },
  134. /**
  135. * 页面上拉触底事件的处理函数
  136. */
  137. onReachBottom: function() {
  138. },
  139. /**
  140. * 用户点击右上角分享
  141. */
  142. onShareAppMessage: function() {
  143. }
  144. })