123456789101112131415161718192021222324252627 |
- const app = require('../../utils/util.js');
- const tools = require('../../utils/tools.js');
- Page({
- data: {
- dataArr: []
- },
- getjj(sessionKey) {
- wx.request({
- url: app.globalData.publicUrl + '/wx/student/selClasToo',
- method: "post",
- data: {
- sessionKey: sessionKey,
- isActive: "0"
- },
- success: (res)=> {
- console.log(res.data, "我是即将开班的列表")
- this.setData({
- dataArr: res.data.data
- })
- }
- })
- },
- async onLoad() {
- const sessionKey = await tools.checkSessionAndLogin();
- this.getjj(sessionKey);
- }
- })
|