default.js 633 B

123456789101112131415161718192021222324252627282930313233
  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. ProgramList: server.getProgramList(),
  13. });
  14. },
  15. onShareAppMessage: function () {
  16. return {
  17. title: '',
  18. path: 'pages/index/index',
  19. success: function (res) {
  20. },
  21. fail: function (err) {
  22. console.log(err);
  23. },
  24. complete: function (res) {
  25. console.log(res);
  26. },
  27. }
  28. },
  29. })