index.js 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. if (options && options.UserID){
  9. app.globalData.userInfo={};
  10. app.globalData.userInfo.UserID=options.UserID;
  11. }
  12. this.setData({
  13. Containnerheight: main.getWindowHeight(),
  14. });
  15. },
  16. gogoExtendUser: function(e){
  17. wx.navigateTo({
  18. url: './extenduser?PageType='+e.currentTarget.dataset.id,
  19. });
  20. },
  21. gogoShareUser: function () {
  22. wx.navigateTo({
  23. url: './shareuser',
  24. });
  25. },
  26. gotoWeb:function(){
  27. wx.navigateTo({
  28. url: '../../pages/other/webview?PageID=7',
  29. });
  30. },
  31. onShareAppMessage: function () {
  32. return {
  33. title: app.globalData.ShareTitle,
  34. path: app.globalData.SharePath + '?type=marketing&UserID=' + app.globalData.userInfo.UserID,
  35. imageUrl: app.globalData.uploadImageUrl+"web/program_screenshot_promotion.png",
  36. }
  37. },
  38. });