diff --git a/api/knowledge.js b/api/knowledge.js index 933960c..909296c 100644 --- a/api/knowledge.js +++ b/api/knowledge.js @@ -4,7 +4,7 @@ import request from "@/utils/request"; * 课程文章分类 */ export function getCategory(data) { - return request.get("/api/CourseCategory", data); + return request.get("/CourseCategory", data); } /** @@ -25,11 +25,25 @@ export function getArticleDetails(data) { * 获取学习榜单列表 */ export function getStudyList(data) { - return request.post("/api/StudyList/listStudyList",data); + return request.post("/StudyList/listStudyList",data); } /** * 获取课程列表 */ export function getCourses(data) { - return request.post("/api/cyCourse/listCourses",data); + return request.post("/Course/listCourses",data); +} + +/** + * 获取课程详情 + */ +export function getCourseDetail(data) { + return request.post("/Course/courseDetail",data); +} + +/** + * 报名 + */ +export function enterCourse(data) { + return request.post("/user/enterCourse",data); } \ No newline at end of file diff --git a/components/uni-countdown/uni-countdown.vue b/components/uni-countdown/uni-countdown.vue index 1631928..596ea63 100644 --- a/components/uni-countdown/uni-countdown.vue +++ b/components/uni-countdown/uni-countdown.vue @@ -1,13 +1,13 @@ \ No newline at end of file diff --git a/pages.json b/pages.json index 691ab8a..d25b70d 100644 --- a/pages.json +++ b/pages.json @@ -568,24 +568,6 @@ "selectedIconPath": "static/tab5.png", "text": "我的" } - // { - // "pagePath": "pages/shop/GoodsClass/index", - // "iconPath": "static/icon-class.png", - // "selectedIconPath": "static/icon-class-hot.png", - // "text": "分类" - // }, - // { - // "pagePath": "pages/shop/ShoppingCart/index", - // "iconPath": "static/icon-cart.png", - // "selectedIconPath": "static/icon-cart-hot.png", - // "text": "购物车" - // }, - // { - // "pagePath": "pages/user/User/index", - // "iconPath": "static/icon-user.png", - // "selectedIconPath": "static/icon-user-hot.png", - // "text": "我的" - // } ] } } diff --git a/pages/authorization/index.vue b/pages/authorization/index.vue index 68ea8b1..966ac6f 100644 --- a/pages/authorization/index.vue +++ b/pages/authorization/index.vue @@ -64,7 +64,7 @@ export default { ...mapMutations(['updateAuthorizationPage']), toLogin() { this.$yrouter.push({ - path: '/pages/user/Login/index', + path: '/pagesB/pages/user/Login/index', query: {}, }) }, diff --git a/pages/course/detail.vue b/pages/course/detail.vue index 9584582..6ea7919 100644 --- a/pages/course/detail.vue +++ b/pages/course/detail.vue @@ -1,201 +1,293 @@ @@ -255,6 +350,7 @@ .dialog-box{ width: 600rpx; border-radius: 12rpx; + overflow: hidden; position: absolute; top: 50%; left: 50%; @@ -313,6 +409,14 @@ height: 340rpx; swiper{ height: 100%; + .swiper-item{ + width: 100%; + height: 100%; + image{ + width: 100%; + height: 100%; + } + } } } .course-info-box{ @@ -393,26 +497,35 @@ color: #666666; line-height: 24px; } + .scroll-view_H{ + white-space: nowrap; + width: 100%; + } .info-box{ - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; + width: 100%; + display: inline-block; + text-align: center; image{ width: 100rpx; height: 100rpx; border-radius: 25px; } .name{ + width: 100%; font-size: 32rpx; color: #3C464F; line-height: 44rpx; } .tip{ + width: 100%; font-size: 24rpx; color: #999999; line-height: 34px; } + .desc{ + width: 100%; + white-space: pre-wrap; + } } .title-box{ font-size: 36rpx; @@ -427,6 +540,16 @@ margin-right: 16rpx; } } + .plan-box{ + font-size: 28rpx; + color: #666; + line-height: 32rpx; + margin-bottom: 12rpx; + .plan-time{ + width: 170rpx; + margin-right: 22rpx; + } + } .course-card-item{ font-size: 32rpx; image{ @@ -572,6 +695,7 @@ text-align: center; line-height: 80rpx; color: #fff; + font-size: 30rpx; } } diff --git a/pages/course/index.vue b/pages/course/index.vue index 321b7e3..f455566 100644 --- a/pages/course/index.vue +++ b/pages/course/index.vue @@ -37,7 +37,7 @@ - 国学·琴 + {{categoryTitle}} @@ -52,7 +52,7 @@ - + @@ -74,6 +74,7 @@