index.js 843 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. ImageUrl:app.globalData.uploadImageUrl,
  7. },
  8. onLoad: function (options) {
  9. let that = this;
  10. that.setData({
  11. Containnerheight: main.getWindowHeight(),
  12. });
  13. main.getData('GetReaderBooks?UserID=' + app.globalData.userInfo.UserID, function (data) {
  14. if (data) {
  15. that.setData({
  16. List:data,
  17. });
  18. }
  19. });
  20. },
  21. goto: function (e) {
  22. let that=this;
  23. var url=e.currentTarget.dataset.url;
  24. wx.navigateTo({
  25. url: url,
  26. });
  27. },
  28. onShareAppMessage: function () {
  29. return {
  30. title: app.globalData.ShareTitle,
  31. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  32. imageUrl: app.globalData.ShareImage,
  33. }
  34. },
  35. })