|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div v-if="!isMobile" class="images" :style="{backgroundImage:`url(${require('@/assets/images/project/hotspot_bg.jpg')})`}">
|
|
|
- <div class="title">{{hotspot.title}}</div>
|
|
|
+ <div class="title" v-html="hotspot.title"></div>
|
|
|
<div class="img-con">
|
|
|
- <span @click="handlePage('prev')" >上一张</span>
|
|
|
+ <span v-if="hotspot.images.length>1" @click="handlePage('prev')" >上一张</span>
|
|
|
<img v-viewer :src="hotspot.images[active]" alt="">
|
|
|
- <span @click="handlePage('next')">下一张</span>
|
|
|
+ <span v-if="hotspot.images.length>1" @click="handlePage('next')">下一张</span>
|
|
|
<ul class="pagna">
|
|
|
<li v-for="(item,i) in hotspot.images" :class="{active:i==active}" :key="i"></li>
|
|
|
</ul>
|
|
@@ -13,7 +13,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else class="mbimages" :style="{backgroundImage:`url(${require('@/assets/images/project/mb_hostpot.jpg')})`}">
|
|
|
- <div class="title">{{hotspot.title}}</div>
|
|
|
+ <div class="title" v-html="hotspot.title"></div>
|
|
|
<div class="swcon" v-swiper:mySwiper="swiperOption">
|
|
|
<ul class="swiper-wrapper swiper-wrapper-n">
|
|
|
<div class="swiper-slide" v-for="(item,index) in hotspot.images" :key="index">
|
|
@@ -26,7 +26,6 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-if="hotspot.content" class="desc">
|
|
|
- <p>简介:</p>
|
|
|
<div v-html="hotspot.content"></div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -76,7 +75,7 @@ export default {
|
|
|
autoplay: false,
|
|
|
centeredSlides: true,
|
|
|
watchSlidesProgress: true,
|
|
|
- loop: true,
|
|
|
+ loop: this.hotspot.images.length>1,
|
|
|
pagination: {
|
|
|
el: '.swiper-pagination'
|
|
|
},
|
|
@@ -104,13 +103,13 @@ export default {
|
|
|
text-align: center;
|
|
|
.title{
|
|
|
max-width: 94%;
|
|
|
- padding: 0 60px;
|
|
|
+ padding: 8px 60px;
|
|
|
display: inline-block;
|
|
|
color: #DBA761;
|
|
|
font-weight: bold;
|
|
|
font-size: 30px;
|
|
|
min-height: 60px;
|
|
|
- line-height: 60px;
|
|
|
+ // line-height: 60px;
|
|
|
background: #BC1515;
|
|
|
border-radius: 60px;
|
|
|
margin: 45px auto;
|
|
@@ -173,9 +172,10 @@ export default {
|
|
|
margin: 20px auto 0;
|
|
|
color: #DBA761;
|
|
|
text-align: left;
|
|
|
- line-height: 2;
|
|
|
- max-height: 200px;
|
|
|
+ line-height: 1.5;
|
|
|
+ max-height: 250px;
|
|
|
overflow-y: auto;
|
|
|
+ font-size: 18px;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -195,7 +195,7 @@ export default {
|
|
|
font-weight: bold;
|
|
|
font-size: 18px;
|
|
|
background: #BC1515;
|
|
|
- border-radius: 60px;
|
|
|
+ border-radius: 44px;
|
|
|
margin: 20px auto;
|
|
|
}
|
|
|
.swcon{
|