<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      uniapp自定義卡片輪播圖

       

       1,組件封裝

      <template>
          <view>
      
              <!-- 自定義卡片輪播 -->
              <swiper class="swiperBox" :previous-margin="swiper.margin" :next-margin='swiper.margin' :circular="true"
                  @change="swiperChange">
                  <swiper-item class="swiperItem" v-for="(item,index) in swiper.list" :key="index">
                      <view class="swiperWrap" :class="{'active':swiper.index == index}">
                          <view class="swiperPic">
                              <image :src="item.url"></image>
                          </view>
                          <view class="swiperCon">
                              <view class="swiperName">{{item.title}}</view>
                              <view class="swiperPrice">
                                  <view class="group">
                                      <image src="/static/index/swiperGroup.png" mode="aspectFill"></image>
                                  </view>
                                  <view class="price"><text>{{item.price}}</text>
                                  </view>
                              </view>
                          </view>
                      </view>
                  </swiper-item>
              </swiper>
      
          </view>
      </template>
      
      <script>
          export default {
              data() {
                  return {
                      swiper: {
                          margin: "150rpx",
                          index: 0,
                          list: [{
                              url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
                              title: '誰念西風獨自涼',
                              price: '0.01',
                          }, {
                              url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
                              title: '沉思往事立殘陽',
                              price: '0.02',
                          }, {
                              url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
                              title: '沉思往事立殘陽',
                              price: '0.03',
                          }]
                      },
                  }
              },
              components: {
      
              },
              mounted() {
      
              },
              methods: {
                  //swiper滑動事件
                  swiperChange(e) {
                      this.swiper.index = e.detail.current;
                  },
              }
          }
      </script>
      
      <style scoped lang="scss">
          .swiperBox {
              height: 500rpx;
              overflow: hidden;
          }
      
          .swiperItem {
              border-radius: 20rpx;
              overflow: hidden;
          }
      
          .swiperWrap {
              transform: scale(0.9);
              transition: transform 0.3s ease-in-out 0s;
          }
      
          .swiperWrap.active {
              transform: scale(1);
          }
      
          .swiperPic {
              width: 100%;
              height: 325rpx;
          }
      
          .swiperPic image {
              width: 100%;
              height: 100%;
          }
      
          .swiperCon {
              padding: 20rpx;
              background-color: #fff;
          }
      
          .swiperName {
              font-size: 32rpx;
              font-weight: bold;
              text-align: center;
          }
      
          .swiperPrice {
              width: 160rpx;
              height: 54rpx;
              border-radius: 28rpx;
              border: 2rpx solid $uni-theme;
              overflow: hidden;
              margin: 20rpx auto 0;
              display: flex;
              justify-content: center;
              align-items: center;
          }
      
          .group {
              width: 60rpx;
              height: 54rpx;
              background: $uni-theme;
              display: flex;
              justify-content: center;
              align-items: center;
          }
      
          .group image {
              width: 28rpx;
              height: 28rpx;
          }
      
          .price {
              width: 100rpx;
              height: 54rpx;
              font-size: 24rpx;
              color: $uni-theme;
              background-color: #fff;
              display: flex;
              justify-content: center;
              align-items: center;
          }
      
          .price text {
              font-size: 32rpx;
          }
      </style>

      2,組件引用

      <template>
          <view>
      
              <swiperCard></swiperCard>
      
          </view>
      </template>
      
      <script>
          import swiperCard from "@/components/swiperCard/swiperCard"
      
          export default {
              components: {
                  swiperCard
              },
              data() {
                  return {
                      
                  }
              },
      
          }
      </script>

       

      posted @ 2024-07-12 13:55  shuihanxiao  閱讀(491)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 欧美高清freexxxx性| 狠狠色综合久久狠狠色综合| 综合色一色综合久久网| 苏尼特右旗| 国产亚洲亚洲国产一二区| 精品亚洲精品日韩精品| 日韩中文字幕人妻一区| 99久久无码一区人妻a黑| 国产美女自慰在线观看| 视频一区视频二区亚洲视频| 久久亚洲精品11p| 无码一区二区三区久久精品| 特级av毛片免费观看| 国产一区二区精品偷系列| 99久久久国产精品免费蜜臀| 你懂的一区二区福利视频| 久久久天堂国产精品女人| 日韩区一区二区三区视频| 一区二区三区精品不卡| 福利一区二区1000| 最近中文字幕日韩有码| 香港日本三级亚洲三级| 和黑人中出一区二区三区| 久久久国产精品VA麻豆| 国产又黄又爽又不遮挡视频 | 久热视频这里只有精品6| 亚洲aⅴ无码专区在线观看春色| 日韩中文字幕一区二区不卡| 婷婷99视频精品全部在线观看| 无码av岛国片在线播放| 欧美情侣性视频| 韩国美女福利视频在线观看| 四虎国产精品永久入口| 亚洲高清国产成人精品久久| 在线免费成人亚洲av| 国色天香成人一区二区| 亚洲AVAV天堂AV在线网阿V| 亚洲天堂亚洲天堂亚洲天堂| 40岁成熟女人牲交片20分钟| 亚洲av综合久久成人网| 国产精品中文字幕观看|