|
@@ -112,21 +112,11 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="down">
|
|
<el-col :span="24" class="down">
|
|
- <div class="swiper-container">
|
|
|
|
- <div class="swiper-wrapper">
|
|
|
|
- <div
|
|
|
|
- v-for="(item, index) in videoData"
|
|
|
|
- :key="index"
|
|
|
|
- :class="`${menuIndex == index ? 'indexClass' : 'videodata'} swiper-slide`"
|
|
|
|
- @click="changeMenu(index, item)"
|
|
|
|
- >
|
|
|
|
- <p>第{{ index + 1 }}辑</p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <!-- 如果需要导航按钮 -->
|
|
|
|
- <div class="swiper-button-prev"></div>
|
|
|
|
- <div class="swiper-button-next"></div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <swiper :list="videoData" :options="options">
|
|
|
|
+ <template v-slot="{ index, item }">
|
|
|
|
+ <p :class="`${menuIndex == index ? 'indexClass' : 'videodata'}`" @click="changeMenu(index, item)">第{{ index + 1 }}辑</p>
|
|
|
|
+ </template>
|
|
|
|
+ </swiper>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" class="right">
|
|
<el-col :span="12" class="right">
|
|
@@ -293,6 +283,7 @@ import { schoolList } from '@/util/school.js';
|
|
import { adveronetList } from '@/util/adveronet.js';
|
|
import { adveronetList } from '@/util/adveronet.js';
|
|
// 业务联系
|
|
// 业务联系
|
|
import ywlx from './parts/ywlx.vue';
|
|
import ywlx from './parts/ywlx.vue';
|
|
|
|
+import swiper from '@c/swiper-frame.vue';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
const { mapActions: expertsuser } = createNamespacedHelpers('expertsuser');
|
|
const { mapActions: expertsuser } = createNamespacedHelpers('expertsuser');
|
|
@@ -321,6 +312,7 @@ export default {
|
|
dockchat,
|
|
dockchat,
|
|
// 业务联系
|
|
// 业务联系
|
|
ywlx,
|
|
ywlx,
|
|
|
|
+ swiper,
|
|
},
|
|
},
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
@@ -376,6 +368,15 @@ export default {
|
|
menuIndex: '0',
|
|
menuIndex: '0',
|
|
videoData: [],
|
|
videoData: [],
|
|
videoPath: '',
|
|
videoPath: '',
|
|
|
|
+ options: {
|
|
|
|
+ slidesPerView: 7,
|
|
|
|
+ spaceBetween: 10,
|
|
|
|
+ // 分页
|
|
|
|
+ navigation: {
|
|
|
|
+ nextEl: '.swiper-button-next',
|
|
|
|
+ prevEl: '.swiper-button-prev',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
@@ -526,18 +527,6 @@ export default {
|
|
let res = await this.dockFetch(this.id);
|
|
let res = await this.dockFetch(this.id);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `videoData`, res.data.videodata);
|
|
this.$set(this, `videoData`, res.data.videodata);
|
|
- this.$nextTick(() => {
|
|
|
|
- var mySwiper = new Swiper('.swiper-container', {
|
|
|
|
- slidesPerView: 7,
|
|
|
|
- centeredSlides: true,
|
|
|
|
- centeredSlidesBounds: true,
|
|
|
|
- // 如果需要前进后退按钮
|
|
|
|
- navigation: {
|
|
|
|
- nextEl: '.swiper-button-next',
|
|
|
|
- prevEl: '.swiper-button-prev',
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
this.changeMenu('0', this.videoData[0]);
|
|
this.changeMenu('0', this.videoData[0]);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -741,7 +730,7 @@ export default {
|
|
.left {
|
|
.left {
|
|
margin: 0 15px 0 0;
|
|
margin: 0 15px 0 0;
|
|
.top {
|
|
.top {
|
|
- height: 390px;
|
|
|
|
|
|
+ height: 400px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
background: url('~@a/dock1.png');
|
|
background: url('~@a/dock1.png');
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
@@ -773,20 +762,15 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.down {
|
|
.down {
|
|
- height: 50px;
|
|
|
|
|
|
+ height: 40px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
border: 1px solid #ccc;
|
|
border: 1px solid #ccc;
|
|
- .swiper-container {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 50px;
|
|
|
|
- }
|
|
|
|
.videodata {
|
|
.videodata {
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
background: #cccccc8f;
|
|
background: #cccccc8f;
|
|
height: 39px;
|
|
height: 39px;
|
|
line-height: 39px;
|
|
line-height: 39px;
|
|
text-align: center;
|
|
text-align: center;
|
|
- margin: 0 5px;
|
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
.videodata:hover {
|
|
.videodata:hover {
|
|
@@ -799,7 +783,6 @@ export default {
|
|
height: 39px;
|
|
height: 39px;
|
|
line-height: 39px;
|
|
line-height: 39px;
|
|
text-align: center;
|
|
text-align: center;
|
|
- margin: 0 5px;
|
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
color: #fff;
|
|
background: #409eff;
|
|
background: #409eff;
|