mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:53:27 +08:00
uniapp【修复】: 首页轮播高度跟随后台设置而定
This commit is contained in:
@@ -3,6 +3,5 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
.swiper-img {
|
.swiper-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 300rpx;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<swiper class="swiper m-b-25" v-if="props.data.list.length > 0" :vertical="false" :indicator-dots="props.dotsSelect"
|
<swiper class="swiper m-b-25" v-if="props.data.list.length > 0" :vertical="false" :indicator-dots="props.dotsSelect"
|
||||||
:autoplay="props.autoplaySelect" :interval="props.data.duration" :circular="props.circularSelect"
|
:autoplay="props.autoplaySelect" :interval="props.data.duration" :circular="props.circularSelect"
|
||||||
:indicator-color="props.indicatorColor" :indicator-active-color="props.indicatorColorActive">
|
:indicator-color="props.indicatorColor" :indicator-active-color="props.indicatorColorActive" :style="{'height':`${props.data?.height}px`}">
|
||||||
<swiper-item v-for="item, index in props.data.list" :key="index" @click="hanldeClickImage(item)">
|
<swiper-item v-for="item, index in props.data.list" :key="index" @click="hanldeClickImage(item)">
|
||||||
<image class="swiper-img" :src="item.image"></image>
|
<image class="swiper-img" :src="item.image" :style="{'height':`${props.data?.height}px`}"></image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</template>
|
</template>
|
||||||
@@ -15,7 +15,6 @@
|
|||||||
data ?: any,
|
data ?: any,
|
||||||
dotsSelect ?: boolean,
|
dotsSelect ?: boolean,
|
||||||
autoplaySelect ?: boolean,
|
autoplaySelect ?: boolean,
|
||||||
intervalSelect ?: number,
|
|
||||||
circularSelect ?: boolean,
|
circularSelect ?: boolean,
|
||||||
indicatorColor ?: string,
|
indicatorColor ?: string,
|
||||||
indicatorColorActive ?: string,
|
indicatorColorActive ?: string,
|
||||||
@@ -23,7 +22,6 @@
|
|||||||
data: {},
|
data: {},
|
||||||
dotsSelect: true,
|
dotsSelect: true,
|
||||||
autoplaySelect: true,
|
autoplaySelect: true,
|
||||||
intervalSelect: 3000,
|
|
||||||
circularSelect: true,
|
circularSelect: true,
|
||||||
indicatorColor: '#EEF2F6',
|
indicatorColor: '#EEF2F6',
|
||||||
indicatorColorActive: '#E74435'
|
indicatorColorActive: '#E74435'
|
||||||
|
|||||||
Reference in New Issue
Block a user