award.js 726 B

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