annualreport.js 756 B

1234567891011121314151617181920212223242526272829303132333435
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. ImagePath: app.globalData.uploadImageUrl,
  7. },
  8. onLoad: function (options) {
  9. var that = this;
  10. that.setData({
  11. Containnerheight: main.getWindowHeight(),
  12. });
  13. var userid=app.globalData.userInfo.UserID;
  14. main.getData("GetAnnualReport?UserID=" + userid, function (data) {
  15. if (data){
  16. that.setData({
  17. Data:data,
  18. });
  19. }
  20. });
  21. },
  22. onShareAppMessage: function () {
  23. return {
  24. title: app.globalData.ShareTitle,
  25. path: app.globalData.SharePath + '?LessonID=all&UserID=' + app.globalData.userInfo.UserID,
  26. imageUrl: app.globalData.ShareImage,
  27. }
  28. },
  29. })