Commit 27dd5b8f by Lin

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

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