移除轮播图背景色

This commit is contained in:
wangxiaowei
2025-10-23 09:34:19 +08:00
parent 188211891f
commit adb889f5e1

View File

@ -1,6 +1,7 @@
<template>
<view class="diy-banner-box mb20 pr" :class="itemData.style.imgShape"
:style="'background-color:'+itemData.style.background+';'">
<!-- <view class="diy-banner-box mb20 pr" :class="itemData.style.imgShape"
:style="'background-color:'+itemData.style.background+';'"> -->
<view class="diy-banner-box mb20 pr" :class="itemData.style.imgShape">
<swiper class="swiper" :autoplay="autoplay" :interval="interval" :duration="duration" @change="changeSwiper" :style="itemData.style.imgShape=='square'?'height:'+itemData.style.height+'rpx;':'height:'+(itemData.style.height*0.92)+'rpx;'">
<swiper-item v-for="(item,index) in itemData.data" :key="index" @click="gotoPages(item)">
<image :style="itemData.style.imgShape=='square'?'height:'+itemData.style.height+'rpx;':'height:'+(itemData.style.height*0.92)+'rpx;'" :src="item.imgUrl"></image>