|
@@ -69,17 +69,29 @@
|
|
|
<div class="content">
|
|
|
<div class="video" v-if="reportDetails.video_urls?.length" v-show="currentTab == 1 ? true : false">
|
|
|
<!--视频开始-->
|
|
|
- <video v-for="(item, index) in reportDetails.video_urls" :key="index"
|
|
|
- style="width: 100%; object-fit: fill" :src="item"
|
|
|
- :poster="item?.replace(' ', '') + '?x-oss-process=video/snapshot,t_100,f_jpg,w_0,h_0,ar_auto'" controls
|
|
|
- autoplay>
|
|
|
- 您的浏览器不支持 video 标签。
|
|
|
- </video>
|
|
|
+ <swiper ref="swiperVideoRef" :slides-per-view="1" :slides-per-group="1" :space-between="0"
|
|
|
+ :modules="[Navigation, Pagination]" :navigation="{
|
|
|
+ prevEl: '.btn-left1',
|
|
|
+ nextEl: '.btn-right1',
|
|
|
+ }" :pagination="{ el: '.swiper-pagination-new1', type: 'fraction' }">
|
|
|
+ <swiper-slide v-for="(item, index) in reportDetails.video_urls" :key="index">
|
|
|
+ <video style="width: 100%; object-fit: fill" :src="item"
|
|
|
+ :poster="item?.replace(' ', '') + '?x-oss-process=video/snapshot,t_100,f_jpg,w_0,h_0,ar_auto'"
|
|
|
+ controls autoplay>
|
|
|
+ 您的浏览器不支持 video 标签。
|
|
|
+ </video>
|
|
|
+ </swiper-slide>
|
|
|
+ </swiper>
|
|
|
+ <div class="navigationBox1">
|
|
|
+ <div class="btn-left1"></div>
|
|
|
+ <div class="swiper-pagination-new1"></div>
|
|
|
+ <div class="btn-right1"></div>
|
|
|
+ </div>
|
|
|
<!--视频结束-->
|
|
|
</div>
|
|
|
<div class="pic" v-if="reportDetails.image_urls?.length" v-show="currentTab == 2 ? true : false">
|
|
|
<!--图片开始-->
|
|
|
- <swiper ref="refSwiper" :slides-per-view="1" :slides-per-group="1" :space-between="0"
|
|
|
+ <swiper ref="swiperPicRef" :slides-per-view="1" :slides-per-group="1" :space-between="0"
|
|
|
:modules="[Navigation, Pagination]" :navigation="{
|
|
|
prevEl: '.btn-left',
|
|
|
nextEl: '.btn-right',
|
|
@@ -321,6 +333,7 @@ defineExpose({
|
|
|
margin: 0 auto 2vh auto;
|
|
|
box-sizing: border-box;
|
|
|
border: 0.44rem solid rgba(26, 41, 58, 0.6315);
|
|
|
+ position: relative;
|
|
|
|
|
|
img {
|
|
|
width: 100%;
|
|
@@ -506,10 +519,49 @@ defineExpose({
|
|
|
$maxHeight: calc(77.5vh - 40px - 3.2rem - 16px - 13vh - 2rem);
|
|
|
|
|
|
.video {
|
|
|
+ position: relative;
|
|
|
+
|
|
|
video {
|
|
|
max-height: $maxHeight;
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
+
|
|
|
+ .navigationBox1 {
|
|
|
+ width: 14rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 2;
|
|
|
+ left: 50%;
|
|
|
+ bottom: -1.6rem;
|
|
|
+ margin-left: -7rem;
|
|
|
+
|
|
|
+ .btn-left1 {
|
|
|
+ cursor: pointer;
|
|
|
+ width: 2.2rem;
|
|
|
+ height: 2.2rem;
|
|
|
+ background: url("@/assets/images/ranking/btn-left.png") center center no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-right1 {
|
|
|
+ cursor: pointer;
|
|
|
+ width: 2.2rem;
|
|
|
+ height: 2.2rem;
|
|
|
+ background: url("@/assets/images/ranking/btn-right.png") center center no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .swiper-pagination-new1 {
|
|
|
+ width: 7rem;
|
|
|
+ height: 2.2rem;
|
|
|
+ line-height: 2.2rem;
|
|
|
+ color: #1F3A4F;
|
|
|
+ font-size: 1.6rem;
|
|
|
+ border-radius: 1.6rem;
|
|
|
+ background: #D8D8D8;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.pic {
|