| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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 + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: "../images/program_screenshot_lesson1.png",
- }
- },
- })
|