zs il y a 2 ans
Parent
commit
9f23020774
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 })