Files
2026-10-08 18:34:09 +08:00

82 lines
1.5 KiB
Vue

<template>
<view class="wrap">
<view class="layout layout-swiper">
<u-swiper
:list="list"
radius="0"
:indicator="false"
:height="height"
></u-swiper>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [],
};
},
props: {
page: {
type: String,
default: "index"
},
height: {
type: String | Number,
default: "150rpx"
},
width: {
type: String,
default: "100%"
},
},
methods: {
getSwiperList() {
vk.callFunction({
url: 'client/album/pub/list',
data: {
page: this.page
},
success: res => {
this.list = res.swiper
}
})
},
},
mounted() {
this.getSwiperList()
}
}
</script>
<style lang="scss">
.wrap{
background-color: white;
}
.layout-fourth {
padding: 20rpx 30rpx;
.item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.icon {
width: 60rpx;
height: 60rpx;
}
.text {
margin-top: 8rpx;
font-size: 26rpx;
font-weight: bold;
color: #101010;
text-align: center;
}
}
</style>