import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { }, onLoad: function () { var that = this; that.setData({ CheckListUserID: app.globalData.userInfo.UserID, Containnerheight: main.getWindowHeight(), UserID: app.globalData.userInfo.UserID, }); var userid = app.globalData.userInfo.UserID; main.getData("GetMiaoguoCheckList?UserID=" + userid, function (data) { if (data) { that.setData({ List: data.List, }); } }); }, gotoLesson: function (e) { var id = e.currentTarget.dataset.id; wx.navigateTo({ url: '../other/lesson?LessonID=' + id, }); }, gotoUserList: function (e) { wx.navigateTo({ url: '../other/userlist', }); }, gotoMarketingUserList: function (e) { wx.navigateTo({ url: '../../marketing/main/index', }); }, 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 + '?LessonID=all&UserID=' + app.globalData.userInfo.UserID, imageUrl: "../images/program_screenshot_lesson1.png", } }, })