2017-10-10 20:54:12 +08:00
|
|
|
<div class="do-sliders" :class="{fullscreen: fullScreen}">
|
|
|
|
<div class="skin" :class="{{skin}}">
|
2017-09-27 01:05:17 +08:00
|
|
|
|
2017-10-10 20:54:12 +08:00
|
|
|
<div class="slider-content" :class="{'h-83': preview && !fullScreen, 'h-100': !preview || fullScreen}" :if="sliderList.length" :mouseenter="$stopSlide()" :mouseleave="$startSlide()">
|
|
|
|
<a class="do-ui-font slider-btn" href="javascript:;"
|
|
|
|
:if="sliderType < 3"
|
|
|
|
:click="$go(-1)"></a>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="box"
|
|
|
|
:if="sliderType == 1"
|
|
|
|
:css="{width: sliderList.length * 100 + '%', transform: animation}">
|
|
|
|
<a class="page" target="_blank"
|
|
|
|
:repeat="sliderList"
|
|
|
|
:css="{width: currWidth + '%'}"
|
|
|
|
:attr="{href: el.link || 'javascript:;'}">
|
|
|
|
<img :if="el.src && el.src != ''" :attr-src="el.src">
|
|
|
|
<p :if="el.title"
|
|
|
|
:html="el.title"
|
|
|
|
class="title-class"></p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="box"
|
|
|
|
:if="sliderType == 2">
|
|
|
|
<a target="_blank"
|
|
|
|
class="page fadeType"
|
|
|
|
:repeat="sliderList"
|
|
|
|
:css="{opacity: curr != $index ? 0 : 1}"
|
|
|
|
:attr="{href: el.link || 'javascript:;'}">
|
|
|
|
<img :if="el.src && el.src != ''" :attr-src="el.src">
|
|
|
|
|
|
|
|
<p :if="el.title"
|
|
|
|
:html="el.title"
|
|
|
|
class="title-class"></p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="box"
|
|
|
|
:if="sliderType == 3"
|
|
|
|
:css="{height: sliderList.length * 100 + '%', transform: animation}">
|
|
|
|
<a class="page" target="_blank"
|
|
|
|
:repeat="sliderList"
|
|
|
|
:css="{width: '100%', height: (100 / sliderList.length) + '%'}"
|
|
|
|
:attr="{href: el.link || 'javascript:;'}">
|
|
|
|
<img :if="el.src && el.src != ''" :attr-src="el.src">
|
|
|
|
<p :if="el.title"
|
|
|
|
:html="el.title"
|
|
|
|
class="title-class"></p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="box"
|
|
|
|
:if="sliderType == 4">
|
|
|
|
<a target="_blank"
|
|
|
|
class="page fadeType"
|
|
|
|
:repeat="sliderList"
|
|
|
|
:css="{opacity: curr != $index ? 0 : 1}"
|
|
|
|
:attr="{href: el.link || 'javascript:;'}">
|
|
|
|
<img :if="el.src && el.src != ''" :attr-src="el.src">
|
|
|
|
{{el.elm | html}}
|
|
|
|
<p :if="el.title"
|
|
|
|
:html="el.title"
|
|
|
|
class="title-class"></p>
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-09-27 19:27:31 +08:00
|
|
|
</div>
|
2017-09-27 01:05:17 +08:00
|
|
|
|
2017-10-10 20:54:12 +08:00
|
|
|
<a class="do-ui-font slider-btn" href="javascript:;"
|
|
|
|
:if="sliderType < 3"
|
|
|
|
:click="$go(1)"></a>
|
|
|
|
</div>
|
2017-09-17 18:49:58 +08:00
|
|
|
|
2017-09-27 01:05:17 +08:00
|
|
|
|
2017-10-10 20:54:12 +08:00
|
|
|
<div class="slider-preview-btn"
|
|
|
|
:class="{'slider-preview-btn-vertical': sliderType > 2}"
|
|
|
|
:css="{padding: !preview && sliderType < 3 ? '2%' : ''}" >
|
|
|
|
<span href="javascript:;"
|
|
|
|
:if="!preview || fullScreen"
|
|
|
|
:class="{'no-preview-act': curr === $index}"
|
|
|
|
:repeat="sliderList"
|
|
|
|
:click="$jump($index)">
|
|
|
|
</span>
|
2017-09-27 01:05:17 +08:00
|
|
|
|
2017-10-10 20:54:12 +08:00
|
|
|
<a class="btn-img" href="javascript:;"
|
|
|
|
:if="preview && !fullScreen"
|
|
|
|
:class="{act: curr === $index || (curr >= maxNum && $index == maxNum - 1), 'default-btn': !el.src}"
|
|
|
|
:click="$jump($index)"
|
|
|
|
:repeat="sliderBtnList">
|
|
|
|
<img
|
|
|
|
:class="{'preview-act': curr === $index || (curr >= maxNum && $index == maxNum - 1)}"
|
|
|
|
:if="el.src && el.src != ''"
|
|
|
|
:attr-src="el.src" />
|
|
|
|
<div class="btn-background" ms-if="el.src"></div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-09-17 18:49:58 +08:00
|
|
|
</div>
|
2017-09-30 15:01:15 +08:00
|
|
|
</div>
|