zoukankan      html  css  js  c++  java
  • 微信小程序轮播图的制作与跳转

      <!--轮播图 -->
      <view class='swiperBanner'>
        <swiper indicator-dots='{{indicatorDots}}' autoplay='{{autoplay}}' interval='{{interval}}' duration='{{duration}}' circular='{{circular}}'>
          <swiper-item  wx:for="{{imgUrls}}" wx:key='{{index}}'>
            <navigator url='{{item.link}}'>
              <image src="{{item.url}}" class="slide-image" mode="aspectFill"></image>
            </navigator>  
          </swiper-item>
        </swiper>
      </view>
    </view>
    

      

    /* 轮播 */
    .swiperBanner{
      100%;
      height:420rpx !important;
      margin:0 auto;  
    }
    .swiperBanner image{
      100%;
      height:420rpx !important;
    }
    swiper {
      100%;
      height:420rpx !important;
    }
    

      

     indicatorDots:false,
        autoplay:true,
        interval:3000,
        duration: 800,
        circular:true,
         // 轮播图
        imgUrls: [
          {
            link:'../activity/washCar1/index/index',
            url:'https://ttcf.cheleu.com/static/ttcf/img/banner8.png',
    
          },
          {
            link: '../activity/Odysseus/index/index',
            url: 'https://ttcf.cheleu.com/static/ttcf/img/banner9.png',
    
          },
          // "https://ttcf.cheleu.com/static/ttcf/img/banner8.png",
          // "https://ttcf.cheleu.com/static/ttcf/img/banner9.png",
    
        ],
    

      

  • 相关阅读:
    c++11之智能指针
    SurfaceFlinger与Surface概述
    android GUI 流程记录
    文章收藏
    android performance
    POJ3349
    java中的volatile和synchronized
    [原创]分期还款的名义利率与真实利率
    Java IO 流总结
    telegram
  • 原文地址:https://www.cnblogs.com/xinheng/p/10244642.html
Copyright © 2011-2022 走看看