lessonlistselect.js 796 B

1234567891011121314151617181920212223242526272829303132333435
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. ImagePath: app.globalData.uploadImageUrl,
  7. },
  8. onLoad: function () {
  9. var that = this;
  10. that.setData({
  11. Containnerheight: main.getWindowHeight(),
  12. });
  13. wx.setNavigationBarColor({
  14. frontColor: "#ffffff",
  15. backgroundColor: "#009942",
  16. });
  17. },
  18. goto: function (e) {
  19. var url=e.currentTarget.dataset.url;
  20. wx.navigateTo({
  21. url: url,
  22. });
  23. },
  24. onShareAppMessage: function () {
  25. return {
  26. title: "课程教材",
  27. path: app.globalData.SharePath + '?type=lesson&LessonID=all&UserID=' + app.globalData.userInfo.UserID,
  28. imageUrl: app.globalData.uploadImageUrl+"web/program_screenshot_lesson_a00.png",
  29. }
  30. },
  31. })