health.js 772 B

123456789101112131415161718192021222324252627282930313233343536
  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. var that = this;
  9. that.setData({
  10. Containnerheight: main.getWindowHeight(),
  11. });
  12. },
  13. goto: function (e) {
  14. var url=e.currentTarget.dataset.url;
  15. wx.navigateTo({
  16. url: url,
  17. });
  18. },
  19. getList:function(e){
  20. var dataType=e.currentTarget.dataset.datatype;
  21. wx.navigateTo({
  22. url: '../main/mainlist?source=health&dataType='+dataType,
  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. })