parent
6c74c30e6e
commit
dd7bb97b4b
@ -1,49 +1,56 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<u-swiper border-radius='1' :duration='duration' :interval='interval' :height="height" :list="swiperList"></u-swiper>
|
||||||
<image class="logo" src="/static/logo.png"></image>
|
<u-divider margin-top='20' margin-bottom='20' color="#F3AF28">热门推荐</u-divider>
|
||||||
<view class="text-area">
|
|
||||||
<text class="title">{{ title }}</text>
|
|
||||||
</view>
|
|
||||||
<u-button type="success">成功按钮</u-button>
|
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
export default {
|
import {
|
||||||
data() {
|
ref
|
||||||
return {
|
} from 'vue';
|
||||||
title: 'Hello',
|
//轮播图高度
|
||||||
}
|
const height = ref('400')
|
||||||
},
|
//是否显示面板指示点
|
||||||
onLoad() {},
|
const indicatorDots = ref(true)
|
||||||
methods: {},
|
//是否自动播放
|
||||||
}
|
const autoplay = ref(true)
|
||||||
|
//自动切换时间间隔
|
||||||
|
const interval = ref(2000)
|
||||||
|
//滑动动画时长
|
||||||
|
const duration = ref(500)
|
||||||
|
//定义轮播图数据
|
||||||
|
const swiperList = ref([{
|
||||||
|
image: '/static/swiper_1.png'
|
||||||
|
}, {
|
||||||
|
image: '/static/swiper_2.png'
|
||||||
|
}, {
|
||||||
|
image: '/static/swiper_3.png'
|
||||||
|
}])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
margin-top: 200rpx;
|
margin-top: 200rpx;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-bottom: 50rpx;
|
margin-bottom: 50rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-area {
|
.text-area {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #8f8f94;
|
color: #8f8f94;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 1.3 MiB |
Loading…
Reference in new issue