From 30dc57816fe4c78156e142eeb543e531848e9093 Mon Sep 17 00:00:00 2001 From: "LAPTOP-S9RBPPM6\\bjxask-2201" <752743406@qq.com> Date: Tue, 31 May 2022 15:53:27 +0800 Subject: [PATCH] =?UTF-8?q?t=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/study/index.vue | 65 +++++++++++-------------------------------- 1 file changed, 16 insertions(+), 49 deletions(-) diff --git a/pages/study/index.vue b/pages/study/index.vue index 4b51eda..1a09170 100644 --- a/pages/study/index.vue +++ b/pages/study/index.vue @@ -362,56 +362,23 @@ statust: '', status: '', loadstatus: '', - typeArray: [{ - name: '全部', - value: '' - }, - { - name: '录播课', - value: 'online-course' - }, - { - name: '线下课', - value: 'face-course' - }, - - { - name: '学习项目', - value: 'project' - } - + typeArray: [ + {name: '全部',value: ''}, + {name: '录播课',value: 'online-course'}, + {name: '线下课',value: 'face-course'}, + {name: '学习项目',value: 'project'} ], - statustList: [{ - name: '全部', - value: '' - }, - { - name: '未开始', - value: 0 - }, - { - name: '进行中', - value: 1 - }, - { - name: '已完成', - value: 2 - } + statustList: [ + {name: '全部',value: ''}, + {name: '未开始',value: 0}, + {name: '进行中',value: 1}, + {name: '已完成',value: 2} ], statustArray: [ - [{ - name: '在线课', - value: 'online-course' - }, - { - name: '面授班', - value: 'face-course' - }, - { - name: '学习项目', - value: 'project' - } + [{name: '在线课',value: 'online-course'}, + {name: '面授班',value: 'face-course'}, + {name: '学习项目',value: 'project'} ] ], windowHeight: 0, @@ -431,7 +398,7 @@ }, onLoad() { this.loadBoeData(true); - this.getLearning(); //这里应该是切换时再调用 + // this.getLearning(); //这里应该是切换时再调用 //检查是否显示弹窗 let curTime = new Date(); curTime = parseInt(curTime.getTime() / 1000); @@ -688,8 +655,8 @@ clicktab(idx) { this.tabIndex = idx; if (this.tabIndex == 1) { - // this.getLearning() - this.searchData(); + this.getLearning() + // this.searchData(); } else if (this.tabIndex == 2) { this.history() } else if (this.tabIndex == 0) {