index.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. var app = getApp();
  2. var that;
  3. Page({
  4. data: {
  5. incidentList: [1, 2, 2, 2, 2, 2, 2, 2, 2],
  6. isAdministrator:false,//是否管理员角色
  7. },
  8. onLoad(query) {
  9. that = this;
  10. this.setData({isAdministrator:app.globalData.isAdministrator})
  11. dd.setNavigationBar({ title: "统计"});
  12. },
  13. //跳转
  14. openView(e) {
  15. var index = e.target.dataset.index-1;
  16. var urls = [
  17. { url: '../my_PrizeBuckle/my_PrizeBuckle', query: "index=" },
  18. { url: '../my_apply/my_apply', query: "index=" },
  19. { url: '../glz_execute/glz_execute', query: '' },
  20. { url: '../integralEvent/integralEvent', query: '' },
  21. { url: '../check_top/check_top', query: '' },
  22. { url: '../sectionRanking/sectionRanking', query: '' },
  23. { url: '../B_ranking/B_ranking', query: '' },
  24. { url: '../customRamking/customRamking', query: '' },
  25. ];
  26. dd.navigateTo({
  27. url: urls[index].url+'?'+urls[index].query
  28. })
  29. },
  30. //打开更多
  31. openMore() {
  32. },
  33. onReady() {
  34. // 页面加载完成
  35. },
  36. onShow() {
  37. // 页面显示
  38. },
  39. onHide() {
  40. // 页面隐藏
  41. },
  42. onUnload() {
  43. // 页面被关闭
  44. },
  45. //下拉
  46. onPullDownRefresh() {
  47. dd.stopPullDownRefresh()
  48. },
  49. onReachBottom() {
  50. console.log("到底了")
  51. // 页面被拉到底部
  52. },
  53. onShareAppMessage() {
  54. // 返回自定义分享信息
  55. return {
  56. title: 'My App',
  57. desc: 'My App description',
  58. path: 'pages/index/index',
  59. };
  60. },
  61. });