import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { List: ['第一课', '第二课', '第三课', '第四课', '第五课', '第六课', '第七课', '第八课'], }, onLoad: function () { var that = this; that.setData({ CheckListUserID:app.globalData.userInfo.UserID, 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', }); }, gotoCheckList: function(){ var url = '../other/homework'; if (this.data.CheckListUserID) url+="?UserID="+this.data.CheckListUserID; wx.navigateTo({ url: url, }); }, onKeyInput: function (e) { var userid = e.detail.value; var that = this; that.setData({ CheckListUserID: userid, }); }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, })