list.js 587 B

123456789101112131415161718192021222324252627282930
  1. import common from '../../utils/util';
  2. import server from '../../utils/main';
  3. const app = getApp()
  4. Page({
  5. data: {
  6. version: app.globalData.version,
  7. FileUrl: app.globalData.fileUrl,
  8. },
  9. onLoad: function () {
  10. this.setData({
  11. Containnerheight: server.getWindowHeight(),
  12. });
  13. },
  14. onShareAppMessage: function () {
  15. return {
  16. title: '',
  17. path: 'pages/index/index',
  18. success: function (res) {
  19. },
  20. fail: function (err) {
  21. console.log(err);
  22. },
  23. complete: function (res) {
  24. console.log(res);
  25. },
  26. }
  27. },
  28. })