欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

微信小程序?qū)崿F(xiàn)輪播圖效果

 更新時(shí)間:2017年09月07日 08:39:54   作者:切切歆語  
這篇文章主要為大家詳細(xì)介紹了微信小程序?qū)崿F(xiàn)輪播圖效果,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

微信小程序?qū)崿F(xiàn)輪播圖,和網(wǎng)站,APP的效果差不多,代碼少,效率高。

先來看看效果圖:

主要用swiper + swiper-item來實(shí)現(xiàn)

 <view class='swiper'>滑塊視圖容器</view>

<!--
 indicator-dots='true' 是否顯示指示點(diǎn) 默認(rèn) false
 indicator-color:指示點(diǎn)顏色
 indicator-active-color:選中的指示點(diǎn)顏色
 autoplay:是否自動(dòng)切換 默認(rèn):false
 interval:自動(dòng)切換時(shí)間間隔
 duration:滑動(dòng)動(dòng)畫時(shí)長(zhǎng)
 vertical 是否改成縱向, 默認(rèn) false
 -->

<swiper indicator-dots='true' indicator-color='gray' indicator-active-color='green' autoplay='true' interval='5000' duration='500'>
 <block wx:for="{{imgUrl}}">
  <swiper-item class="item_image">
   <image src='{{item}}' class='swiper_image' mode="aspectFill"></image>
  </swiper-item>
 </block>

</swiper>

一個(gè)簡(jiǎn)單的小案例,輪播圖,代碼簡(jiǎn)潔,功能強(qiáng)大。

源碼點(diǎn)擊下載

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論