index.js 897 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. if (options && options.UserID){
  10. app.globalData.userInfo={};
  11. app.globalData.userInfo.UserID=options.UserID;
  12. }
  13. wx.setNavigationBarColor({
  14. backgroundColor: '#ffffff',
  15. frontColor:"#000000",
  16. });
  17. this.setData({
  18. Containnerheight: main.getWindowHeight(),
  19. });
  20. },
  21. goto:function(e){
  22. var url=e.currentTarget.dataset.url;
  23. wx.navigateTo({
  24. url: url,
  25. });
  26. },
  27. onShareAppMessage: function () {
  28. return {
  29. title: "秒过推广",
  30. path: app.globalData.SharePath + '?type=marketing&UserID=' + app.globalData.userInfo.UserID,
  31. imageUrl: app.globalData.uploadImageUrl+"web/program_screenshot_promotion.png",
  32. }
  33. },
  34. });