zs 2 年之前
父节点
当前提交
9f23020774
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/stuAdmin/course/list.js

+ 2 - 2
pages/stuAdmin/course/list.js

@@ -85,9 +85,9 @@ Page({
         wx.getStorage({
             key: 'user',
             success: async res => {
-                let info = { skip: that.data.skip, limit: that.data.limit, type: that.data.tabs.active, student_id: res.data.info._id };
+                let info = { skip: that.data.skip, limit: that.data.limit, type: that.data.tabs.active, student_id: res.data.info._id, is_pay: '1' };
                 let arr = await app.$get(`/studentView/lessonList`, { ...info });
-                if (arr.errcode == '0') {
+                if (arr.errcode == '0') { 
                     for (const val of arr.data) { let status = statusList.find(i => i.value == val.status); if (status) val.zhStatus = status.label; }
                     that.setData({ list: [...that.data.list, ...arr.data] })
                     that.setData({ total: arr.total })