|
@@ -1,22 +1,19 @@
|
|
|
<template>
|
|
|
<!-- 课程详情 -->
|
|
|
<div v-if="CourseData" class="CourseDetail">
|
|
|
- <div v-if="CourseData" v-loading="loading" class="main">
|
|
|
+ <div v-loading="loading" class="main">
|
|
|
<div class="bookDetail">
|
|
|
<div class="rightUp">
|
|
|
<span>HOT</span>
|
|
|
</div>
|
|
|
<div class="text">
|
|
|
<p class="p1">{{ CourseData.name }}</p>
|
|
|
+ <!-- 机构名称 -->
|
|
|
<p>Beijing language and Culture University</p>
|
|
|
<p>
|
|
|
{{ CourseData.teacher_list.length > 0 ? CourseData.teacher_list[0].teacher_name : '' }}
|
|
|
</p>
|
|
|
<p>
|
|
|
- <!-- Learn to design data models, build data warehouses and data lakes,
|
|
|
- automate data pipelines, and work with massive datasets. At the end
|
|
|
- of the program, you’ll combine your new skills by completing a
|
|
|
- capstone project. -->
|
|
|
{{ CourseData.intro }}
|
|
|
</p>
|
|
|
<p>
|
|
@@ -25,32 +22,32 @@
|
|
|
<span> {{ CourseData.end_date }} </span>
|
|
|
</p>
|
|
|
|
|
|
+ <p v-if="backTime">距离关闭购买渠道还有</p>
|
|
|
<div class="operation">
|
|
|
- <!-- <div class="countdown" v-if="backTime">
|
|
|
- <p>距离关闭购买渠道还有</p>
|
|
|
+ <div v-if="backTime" class="countdown">
|
|
|
<div class="time">
|
|
|
<div>
|
|
|
- <p>{{ backTime.days }}</p>
|
|
|
- <p>天</p>
|
|
|
+ <div class="time-num">{{ backTime.days }}</div>
|
|
|
+ <div class="time-name">天</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <p>{{ backTime.hours }}</p>
|
|
|
- <p>小时</p>
|
|
|
+ <div class="time-num">{{ backTime.hours }}</div>
|
|
|
+ <div class="time-name">小时</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <p>{{ backTime.minutes }}</p>
|
|
|
- <p>分钟</p>
|
|
|
+ <div class="time-num">{{ backTime.minutes }}</div>
|
|
|
+ <div class="time-name">分钟</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <p>{{ backTime.seconds }}</p>
|
|
|
- <p>秒</p>
|
|
|
+ <div class="time-num">{{ backTime.seconds }}</div>
|
|
|
+ <div class="time-name">秒</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-else>The purchase channel has been closed</div>-->
|
|
|
+ <div v-else>The purchase channel has been closed</div>
|
|
|
<div>
|
|
|
<span class="price">
|
|
|
- ¥
|
|
|
+ ¥ {{ CourseData.price }}
|
|
|
<span class="price_1" v-text="changePrice('1', CourseData.price)"></span>
|
|
|
<span class="price_2" v-text="changePrice('2', CourseData.price)"></span>
|
|
|
</span>
|
|
@@ -61,7 +58,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="more">
|
|
|
- <div class="moreTitle">教学材料</div>
|
|
|
+ <div class="moreTitle">配套教材</div>
|
|
|
<div class="moreList">
|
|
|
<div v-for="(item, i) in CourseData.book_list" :key="i" class="moreOne">
|
|
|
<div>
|
|
@@ -73,7 +70,7 @@
|
|
|
<p>{{ item.book_author }}</p>
|
|
|
<div class="operation">
|
|
|
<span class="price">
|
|
|
- ¥
|
|
|
+ ¥ {{ item.book_price }}
|
|
|
<span class="price_1" v-text="changePrice('1', item.book_price)"></span>
|
|
|
<span class="price_2" v-text="changePrice('2', item.book_price)"></span>
|
|
|
</span>
|
|
@@ -85,7 +82,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="more">
|
|
|
- <div class="moreTitle">老师</div>
|
|
|
+ <div class="moreTitle">授课教师</div>
|
|
|
<div class="moreList teacherList">
|
|
|
<div v-for="(item, i) in CourseData.teacher_list" :key="i" class="moreOne">
|
|
|
<div>
|
|
@@ -101,7 +98,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="coursearrangement">
|
|
|
+ <div class="course-arrangement">
|
|
|
<div class="moreTitle">课程安排</div>
|
|
|
<div v-for="(item, i) in CourseData.cs_item_list" :key="i" class="angement">
|
|
|
<div class="courseOne">
|
|
@@ -119,16 +116,14 @@
|
|
|
<div slot="title" class="Coursetasks">
|
|
|
课程任务
|
|
|
<img
|
|
|
- v-show="openList.indexOf(item.id) != -1"
|
|
|
+ v-show="openList.indexOf(item.id) !== -1"
|
|
|
class="open1"
|
|
|
src="../../assets/course_details/open1.png"
|
|
|
- alt=""
|
|
|
/>
|
|
|
<img
|
|
|
- v-show="openList.indexOf(item.id) == -1"
|
|
|
+ v-show="openList.indexOf(item.id) === -1"
|
|
|
class="open2"
|
|
|
src="../../assets/course_details/open2.png"
|
|
|
- alt=""
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="courseContent">
|
|
@@ -145,7 +140,7 @@
|
|
|
>
|
|
|
<div
|
|
|
slot="title"
|
|
|
- :class="openList.indexOf(it.id) != -1 ? 'contenttitle2' : 'contenttitle'"
|
|
|
+ :class="openList.indexOf(it.id) !== -1 ? 'contenttitle2' : 'contenttitle'"
|
|
|
>
|
|
|
<span>{{ it.name }}</span>
|
|
|
<span>
|
|
@@ -273,7 +268,7 @@
|
|
|
>
|
|
|
<div
|
|
|
slot="title"
|
|
|
- :class="openList.indexOf(it.id) != -1 ? 'contenttitle2' : 'contenttitle'"
|
|
|
+ :class="openList.indexOf(it.id) !== -1 ? 'contenttitle2' : 'contenttitle'"
|
|
|
>
|
|
|
<span>{{ it.name }}</span>
|
|
|
<span>
|
|
@@ -401,7 +396,7 @@
|
|
|
>
|
|
|
<div
|
|
|
slot="title"
|
|
|
- :class="openList.indexOf(it.id) != -1 ? 'contenttitle2' : 'contenttitle'"
|
|
|
+ :class="openList.indexOf(it.id) !== -1 ? 'contenttitle2' : 'contenttitle'"
|
|
|
>
|
|
|
<span>{{ it.name }}</span>
|
|
|
<span>
|
|
@@ -522,6 +517,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<el-dialog
|
|
|
class="orderDialog"
|
|
|
title="商品详情"
|
|
@@ -529,7 +525,7 @@
|
|
|
width="720px"
|
|
|
:before-close="closeaudit"
|
|
|
>
|
|
|
- <audit :data="data" :goods_type="201" />
|
|
|
+ <audit :id="id" :data="CourseData" :goods_type="$route.query.goodsType" />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -545,37 +541,15 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ id: this.$route.query.id,
|
|
|
enshrine: false,
|
|
|
IsPurchase: false,
|
|
|
SelectShow: '1', // 选择展示课程资源还是下载
|
|
|
- courseRW: null,
|
|
|
openList: [],
|
|
|
timer: null, // 获取倒计时
|
|
|
backTime: new Date(),
|
|
|
- CouserId: null,
|
|
|
auditShow: false,
|
|
|
loading: false,
|
|
|
- data: {
|
|
|
- articleId: '2',
|
|
|
- coverFileId: '00101-20210705-17-RBB2NLXL',
|
|
|
- coverUrl:
|
|
|
- 'http://gcls.helxsoft.cn/GCLSFileStore/00101/D-WFXZJCY3AK1XES1JUR/F-EN7NXT1LSO6XZEZZLK.png',
|
|
|
- createTime: '2021-07-05 17:36:55',
|
|
|
- id: 2,
|
|
|
- isFavorite: false,
|
|
|
- isPurchased: false,
|
|
|
- name: '录播课程1',
|
|
|
- price: '19.9',
|
|
|
- status: 4,
|
|
|
- tag: [''],
|
|
|
- teacher: '王老师',
|
|
|
- tenantId: '2021052017-HFTZIRVKWOWPAUU',
|
|
|
- updateTime: '2021-07-05 17:39:42',
|
|
|
- userId: '20210702-1013-3JVWVHHRGVUX',
|
|
|
- videoDuration: 60,
|
|
|
- visitCount: 132,
|
|
|
- weight: 1
|
|
|
- },
|
|
|
CourseData: null
|
|
|
};
|
|
|
},
|
|
@@ -583,7 +557,7 @@ export default {
|
|
|
// 获取课程详情
|
|
|
this.loading = true;
|
|
|
GetCourseInfoBox({
|
|
|
- id: this.$route.query.id
|
|
|
+ id: this.id
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.CourseData = res;
|
|
@@ -683,70 +657,6 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.CourseDetail {
|
|
|
- .nav {
|
|
|
- // background: url('../../assets/learncenter/Homebg2.png') no-repeat center;
|
|
|
- background-size: 100% 100%;
|
|
|
- height: 60px;
|
|
|
- border-bottom-left-radius: 20px;
|
|
|
- border-bottom-right-radius: 20px;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- .shade {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- background: rgba(0, 0, 0, 0.5);
|
|
|
- display: flex;
|
|
|
- color: #fff;
|
|
|
- font-weight: bold;
|
|
|
- font-size: 18px;
|
|
|
- justify-content: space-around;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- .el-menu-demo {
|
|
|
- background: rgba(0, 0, 0, 0);
|
|
|
- }
|
|
|
-
|
|
|
- // 取消组件默认的样式
|
|
|
- .el-menu.el-menu--horizontal {
|
|
|
- border-bottom: none;
|
|
|
-
|
|
|
- li:hover {
|
|
|
- background: none;
|
|
|
- }
|
|
|
-
|
|
|
- li {
|
|
|
- background: none;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .nav_title {
|
|
|
- text-align: left;
|
|
|
- }
|
|
|
-
|
|
|
- .seek {
|
|
|
- input {
|
|
|
- width: 450px;
|
|
|
- height: 46px;
|
|
|
- background: #979797;
|
|
|
- border: none;
|
|
|
- outline: none;
|
|
|
- color: white;
|
|
|
- font-size: 18px;
|
|
|
- opacity: 0.5;
|
|
|
- }
|
|
|
-
|
|
|
- img {
|
|
|
- position: relative;
|
|
|
- right: 40px;
|
|
|
- top: 8px;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
.main {
|
|
|
min-height: 100%;
|
|
|
padding-top: 52px;
|
|
@@ -814,32 +724,32 @@ export default {
|
|
|
|
|
|
.operation {
|
|
|
display: flex;
|
|
|
- align-items: flex-end;
|
|
|
+ align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- margin-top: 52px;
|
|
|
+ margin-top: 20px;
|
|
|
|
|
|
.countdown {
|
|
|
> p {
|
|
|
color: rgba(255, 255, 255, 0.7);
|
|
|
}
|
|
|
-
|
|
|
+ // 倒计时
|
|
|
.time {
|
|
|
- margin-top: 16px;
|
|
|
display: flex;
|
|
|
+ margin-top: 24px;
|
|
|
|
|
|
div {
|
|
|
width: 48px;
|
|
|
margin-right: 48px;
|
|
|
text-align: center;
|
|
|
+ }
|
|
|
|
|
|
- p:nth-child(1) {
|
|
|
- font-size: 40px;
|
|
|
- }
|
|
|
+ &-num {
|
|
|
+ font-size: 30px;
|
|
|
+ }
|
|
|
|
|
|
- p:nth-child(2) {
|
|
|
- margin-top: 5px;
|
|
|
- font-size: 24px;
|
|
|
- }
|
|
|
+ &-name {
|
|
|
+ font-size: 24px;
|
|
|
+ margin-top: 12px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -848,7 +758,7 @@ export default {
|
|
|
.get {
|
|
|
width: 200px;
|
|
|
height: 56px;
|
|
|
- background: #f90;
|
|
|
+ background: $basicColor;
|
|
|
border-radius: 4px;
|
|
|
border: none;
|
|
|
outline: none;
|
|
@@ -895,8 +805,8 @@ export default {
|
|
|
|
|
|
.moreTitle::before {
|
|
|
content: '|';
|
|
|
- background: #f90;
|
|
|
- color: #f90;
|
|
|
+ background: $basicColor;
|
|
|
+ color: $basicColor;
|
|
|
margin-right: 16px;
|
|
|
}
|
|
|
|
|
@@ -952,7 +862,7 @@ export default {
|
|
|
.get {
|
|
|
width: 120px;
|
|
|
height: 40px;
|
|
|
- background: #f90;
|
|
|
+ background: $basicColor;
|
|
|
border-radius: 4px;
|
|
|
border: none;
|
|
|
outline: none;
|
|
@@ -999,7 +909,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .coursearrangement {
|
|
|
+ .course-arrangement {
|
|
|
width: 1200px;
|
|
|
margin: 0 auto;
|
|
|
margin-top: 30px;
|
|
@@ -1012,8 +922,8 @@ export default {
|
|
|
|
|
|
.moreTitle::before {
|
|
|
content: '|';
|
|
|
- background: #f90;
|
|
|
- color: #f90;
|
|
|
+ background: $basicColor;
|
|
|
+ color: $basicColor;
|
|
|
margin-right: 16px;
|
|
|
}
|
|
|
|
|
@@ -1224,7 +1134,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.select {
|
|
|
- background: #f90;
|
|
|
+ background: $basicColor;
|
|
|
color: white;
|
|
|
box-shadow: 0 2px 8px rgba(255, 153, 0, 0.15);
|
|
|
}
|