shareuser.js 756 B

123456789101112131415161718192021222324252627282930313233
  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. this.init();
  12. },
  13. init:function(){
  14. var that = this;
  15. main.getData('GetMiaoguoShareInfo?Version=' + app.globalData.Version, function (data) {
  16. wx.hideLoading();
  17. if (data) {
  18. that.setData({
  19. List: data,
  20. });
  21. }
  22. });
  23. },
  24. onShareAppMessage: function () {
  25. return {
  26. title: app.globalData.ShareTitle,
  27. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  28. imageUrl: "../../pages/images/program_screenshot_main.png",
  29. }
  30. },
  31. });