Commit 2bbad10c by 施宇

轮播

parent d5a18b08
......@@ -27,7 +27,6 @@
<div class="fl time ellipsis">
<span>上次登录时间:<em class="last_login_time">--</em></span>
</div>
{:dump($roll_banners)}
</div>
</div>
</div>
......@@ -60,20 +59,20 @@
</div>
</div>
<!-- 轮播部分 -->
<if condition="empty($roll_banners) neq true">
<div class="sy-carousel">
<div class="swiper-wrapper">
<volist name="roll_banners" id="vo" key="k">
<a class="swiper-slide" href="www.baidu.com"></a>
<a class="swiper-slide" href="www.baidu.com"></a>
<a class="swiper-slide" href="www.baidu.com"></a>
<a class="swiper-slide" href="www.baidu.com"></a>
<a class="swiper-slide" href="www.baidu.com"></a>
<if condition="!empty($roll_banners['data'])">
<div class="sy-carousel">
<div class="swiper-wrapper">
<volist name="roll_banners['data']" id="vo">
<a class="swiper-slide" href="{$vo['url']}"
style="background:url({$vo['images']}) center center no-repeat;"
target="{$vo['window_open'] > 0 ? '_blank' : '_self'}"
title="{$vo['title']}"></a>
</volist>
</div>
<!-- Add Pagination -->
<div class="sy-pagination"></div>
</div>
<!-- Add Pagination -->
<div class="sy-pagination"></div>
</div>
</if>
</if>
<div class="my_xj">
<div class="my_xj_title xj_title">
<span class="lineBlock"></span>
......
......@@ -132,8 +132,6 @@
border-radius: 4px;
}
.home_content .sy-carousel .swiper-slide {
background: url('http://img.icsales.com/test/images/icsales/201909/12/fa7488c3e772f4f72032d95bf93cb00f.png') no-repeat;
background-size: cover;
cursor: pointer;
display: block;
}
......
......@@ -164,8 +164,6 @@
position: relative;
border-radius:4px;
.swiper-slide {
background: url('http://img.icsales.com/test/images/icsales/201909/12/fa7488c3e772f4f72032d95bf93cb00f.png') no-repeat;
background-size: cover;
cursor: pointer;
display: block;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment