about.js 860 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import common from '../../utils/util';
  2. import server from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. ListProgram: [],
  7. },
  8. onLoad: function (options) {
  9. this.setData({
  10. ListProgram: server.getProgramList(),
  11. })
  12. },
  13. switchProgram: function (e) {
  14. wx.navigateToMiniProgram({
  15. appId: e.currentTarget.dataset.appid,
  16. path: e.currentTarget.dataset.path,
  17. extraData: {
  18. },
  19. success(res) {
  20. // 打开成功
  21. }
  22. });
  23. },
  24. onShareAppMessage: function () {
  25. return {
  26. title: '识字练习——让阅读赢在起点',
  27. path: 'pages/index/index',
  28. imageUrl: '../../images/07001.png',
  29. success: function (res) {
  30. },
  31. fail: function (err) {
  32. console.log(err);
  33. },
  34. complete: function (res) {
  35. console.log(res);
  36. },
  37. }
  38. },
  39. })