| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- const _Http = getApp().globalData.http;
- let content = null;
- Page({
- data: {
- },
- onLoad(options) {},
- getList() {
- _Http.basic({
- "classname": "saletool.courseware.courseware",
- "method": "selectMenu",
- "content": {
- pageSize: 999
- }
- }).then(res => {
- console.log('分类', res)
- if (res.msg != '成功') return wx.showToast({
- title: res.msg,
- icon: "none"
- });
- this.setData({
- list: res.data
- })
- })
- _Http.basic({
- "classname": "saletool.courseware.courseware",
- "method": "queryReadLog",
- "content": {
- "pageNumber": 1,
- "pageSize": 10,
- "where": {
- "condition": ""
- }
- }
- }).then(res => {
- console.log('学习足迹', res)
- if (res.msg != '成功') return wx.showToast({
- title: res.msg,
- icon: "none"
- });
- this.setData({
- history: res.data
- })
- })
- },
- onShow() {
- this.getList()
- },
- })
|