myinfo.js 713 B

12345678910111213141516171819202122232425262728293031323334
  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. let that = this;
  9. that.setData({
  10. Containnerheight: main.getWindowHeight(),
  11. });
  12. },
  13. onShow:function(){
  14. this.setData({
  15. UnReadCount:app.globalData.UnReadCount,
  16. });
  17. },
  18. goto: function (e) {
  19. let that=this;
  20. var url=e.currentTarget.dataset.url;
  21. wx.navigateTo({
  22. url: url,
  23. });
  24. },
  25. onShareAppMessage: function () {
  26. return {
  27. title: app.globalData.ShareTitle,
  28. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  29. imageUrl: app.globalData.ShareImage,
  30. }
  31. },
  32. })