invite.js 855 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import common from '../../utils/util';
  2. import server from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. List:[],
  7. },
  8. onLoad: function (options) {
  9. this.setData({
  10. Containnerheight: common.getSystemHeight(),
  11. });
  12. this.init();
  13. },
  14. init: function () {
  15. var that = this;
  16. wx.showLoading({
  17. title: '请稍后',
  18. });
  19. server.getData('GetInviteUser500?ProductID=' + app.globalData.ProgramID + '&UserID=' + app.globalData.userInfo.UserID, function (data) {
  20. if (data) {
  21. that.setData({
  22. List: data,
  23. });
  24. }
  25. wx.hideLoading();
  26. });
  27. },
  28. onShareAppMessage: function () {
  29. return {
  30. title: app.globalData.ShareTitle,
  31. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  32. imageUrl: app.globalData.ShareImage,
  33. }
  34. },
  35. })