|
@@ -15,43 +15,7 @@
|
|
<div class="content_up">
|
|
<div class="content_up">
|
|
<div class="banner_one"></div>
|
|
<div class="banner_one"></div>
|
|
<div class="banner_two">
|
|
<div class="banner_two">
|
|
- <div class="container">
|
|
|
|
- <div class="course_info">
|
|
|
|
- <div
|
|
|
|
- class="left_box"
|
|
|
|
- :style="{
|
|
|
|
- backgroundImage: `url(${$tools.splitImgHost(goodsData.coverUrl,false)})`,
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- <div v-show="vid" id="player"></div>
|
|
|
|
- <div v-show="vidzb" id="playerzb"></div>
|
|
|
|
- </div>
|
|
|
|
- <div class="right-box">
|
|
|
|
- <div class="right-box__header">
|
|
|
|
- <div class="tabs">
|
|
|
|
- <el-tabs v-model="courseTabIndex">
|
|
|
|
- <el-tab-pane
|
|
|
|
- :name="tab.name"
|
|
|
|
- v-for="(tab, index) in menuTab"
|
|
|
|
- :key="index"
|
|
|
|
- >
|
|
|
|
- <div slot="label">
|
|
|
|
- <span class="label">{{ tab.label }}</span>
|
|
|
|
- </div>
|
|
|
|
- <!-- 章节目录 -->
|
|
|
|
- <template v-if="tab.name == '1'">
|
|
|
|
- <catalogue></catalogue>
|
|
|
|
- </template>
|
|
|
|
- </el-tab-pane>
|
|
|
|
- </el-tabs>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
+ <catalogue :goodsId='goodsId'></catalogue>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="content_down">
|
|
<div class="content_down">
|
|
@@ -183,7 +147,7 @@ export default {
|
|
subjectType: 0,
|
|
subjectType: 0,
|
|
type: 0,
|
|
type: 0,
|
|
goodsInfo: {},
|
|
goodsInfo: {},
|
|
- goodsData: {},
|
|
|
|
|
|
+ // goodsData: {},
|
|
vid: '',
|
|
vid: '',
|
|
vidzb: '',
|
|
vidzb: '',
|
|
vodPlayerJs: "https://player.polyv.net/script/player.js",
|
|
vodPlayerJs: "https://player.polyv.net/script/player.js",
|
|
@@ -200,6 +164,17 @@ export default {
|
|
goodsId: "",
|
|
goodsId: "",
|
|
gradeId: "",
|
|
gradeId: "",
|
|
orderGoodsId: "",
|
|
orderGoodsId: "",
|
|
|
|
+ needOpen: true, //是否需要一进来展开第一章节
|
|
|
|
+ menuIndex: [], //需要展开的章节索引值
|
|
|
|
+ courseList: [],
|
|
|
|
+ s_courseList: [],
|
|
|
|
+ goodsAuditionConfigIdList: [],
|
|
|
|
+ listenConfigList: [],
|
|
|
|
+ courserIndex: 0,
|
|
|
|
+ goodsDetail: {},
|
|
|
|
+ goodsExamConfig: [],
|
|
|
|
+ subList: [],
|
|
|
|
+ subIndex: 0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -207,18 +182,23 @@ export default {
|
|
this.getgoodsInfo()
|
|
this.getgoodsInfo()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
getgoodsInfo() {
|
|
getgoodsInfo() {
|
|
this.$axios({
|
|
this.$axios({
|
|
url: `/app/common/get/goodsInfo/${this.topicId}`,
|
|
url: `/app/common/get/goodsInfo/${this.topicId}`,
|
|
method: 'get',
|
|
method: 'get',
|
|
noToken: true
|
|
noToken: true
|
|
- }).then((res) => {
|
|
|
|
|
|
+ }).then(async(res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.goodsInfo = res.data
|
|
this.goodsInfo = res.data
|
|
- this.goodsId = res.data.goodsId
|
|
|
|
|
|
+ // this.goodsId = res.data.goodsId
|
|
|
|
+ this.goodsId = 823
|
|
|
|
+ console.log('goodsInfo: ', this.goodsInfo)
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+
|
|
togoBuy(subjectType, type) {
|
|
togoBuy(subjectType, type) {
|
|
this.subjectType = subjectType
|
|
this.subjectType = subjectType
|
|
this.type = type
|
|
this.type = type
|
|
@@ -257,8 +237,20 @@ export default {
|
|
height: 528px;
|
|
height: 528px;
|
|
background: url('../../assets/topic/banner_bg.png') center center no-repeat;
|
|
background: url('../../assets/topic/banner_bg.png') center center no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
- .container {
|
|
|
|
-
|
|
|
|
|
|
+ .con_header {
|
|
|
|
+ width: 1120px;
|
|
|
|
+ height: 44px;
|
|
|
|
+ background: #3F4449;
|
|
|
|
+ display: flex;
|
|
|
|
+ .con_item {
|
|
|
|
+ padding: 12px 20px;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ &.nactive {
|
|
|
|
+ background: #3F8DFD;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.course_info {
|
|
.course_info {
|
|
display: flex;
|
|
display: flex;
|