import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { List: ['预备课','第1课','第2课','第3课'], }, onLoad: function () { var that = this; that.setData({ Containnerheight: main.getWindowHeight(), }); }, gotoLesson: function (e) { var id=e.currentTarget.dataset.id; wx.navigateTo({ url: '../other/lesson?LessonID='+id, }); }, gotoUserList: function (e) { wx.navigateTo({ url: '../other/userlist', }); }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, })