reportList.js 529 B

1234567891011121314151617181920212223
  1. import request from '../../../util/http'
  2. import apiUrl from '../../../util/apiUrl'
  3. var app = getApp();
  4. Page({
  5. data: {
  6. reportList:[],
  7. },
  8. onLoad() {
  9. console.log(app.globalData);
  10. this.setData({
  11. reportList:app.globalData.reportList
  12. });
  13. },
  14. switchMonthReport(e){
  15. let reportIndex=e.target.dataset.reportIndex;
  16. app.globalData.reportInfo=this.data.reportList[reportIndex];
  17. console.log(app.globalData.reportInfo);
  18. my.navigateTo({
  19. url: '../monthReport/monthReport'
  20. });
  21. }
  22. });