Commit 27dd5b8f by Lin

feat: 学习中心推荐课程模块开发

1 parent 29803e64
...@@ -523,6 +523,14 @@ module.exports = { ...@@ -523,6 +523,14 @@ module.exports = {
...data ...data
}) })
}, },
// 新 学习中心 - 推荐课程
getRecommendCourseList(data) {
return http.post({
method: 'dj.api.pad.learning.center.myself.course.recommend',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 查询考试分页接口 // 新 学习中心 - 查询考试分页接口
getExamPage(data) { getExamPage(data) {
return http.post({ return http.post({
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 1 const index = 2
/** /**
* *
0本地 0本地
......
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
pageSize pageSize
} }
const res = await uni.$api.commonApi.getMyCourseList(params) const res = await uni.$api.commonApi.getMyCourseList(params)
console.log("已完成课程",res);
if (pageNum == 1) { if (pageNum == 1) {
this.completedCourseList = res.list this.completedCourseList = res.list
} else { } else {
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
<Studying v-else-if="currentTab === 1" ref="studying" :cardWidth="530" /> <Studying v-else-if="currentTab === 1" ref="studying" :cardWidth="530" />
<!-- 已学完 tab:使用 CompletedCourse 组件 --> <!-- 已学完 tab:使用 CompletedCourse 组件 -->
<CompletedCourse v-else-if="currentTab === 2" ref="completedCourse" :cardWidth="530" /> <CompletedCourse v-else-if="currentTab === 2" ref="completedCourse" :cardWidth="530" />
<!-- 推荐学习 tab:使用 CompletedCourse 组件 -->
<RecommendClass v-else-if="currentTab === 3" ref="completedCourse" :cardWidth="530" />
</view> </view>
</view> </view>
</template> </template>
...@@ -45,13 +47,15 @@ ...@@ -45,13 +47,15 @@
import ToLearnCourse from './components/ToLearnCourse.vue' import ToLearnCourse from './components/ToLearnCourse.vue'
import Studying from './components/Studying.vue' import Studying from './components/Studying.vue'
import CompletedCourse from './components/CompletedCourse.vue' import CompletedCourse from './components/CompletedCourse.vue'
import RecommendClass from './components/RecommendClass.vue'
export default { export default {
name: 'MyCoursePage', name: 'MyCoursePage',
components: { components: {
ToLearnCourse, ToLearnCourse,
Studying, Studying,
CompletedCourse CompletedCourse,
RecommendClass
}, },
data() { data() {
return { return {
...@@ -59,7 +63,8 @@ export default { ...@@ -59,7 +63,8 @@ export default {
tabList: [ tabList: [
{ label: '待学习', count: '0', key: 'unLearnCount' }, { label: '待学习', count: '0', key: 'unLearnCount' },
{ label: '正在学习', count: '0', key: 'learningCount' }, { label: '正在学习', count: '0', key: 'learningCount' },
{ label: '已学完', count: '0', key: 'completedCount' } { label: '已学完', count: '0', key: 'completedCount' },
{ label: '推荐学习', count: '0', key: 'recommendCount' }
], ],
residueInfo: { residueInfo: {
remindType: 0 remindType: 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!