| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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,
- });
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?type=lesson&LessonID=all&UserID=' + app.globalData.userInfo.UserID,
- imageUrl: "../images/program_screenshot_lesson_a01.png",
- }
- },
- })
|