<template>
	<view>
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" circular>
			<swiper-item v-for="(item,i) in swiperList" :key="i">
				<view class="swiper-item">
					<image :src="item.src"></image>
				</view>
			</swiper-item>
		</swiper>
		<uni-easyinput v-model="phone" placeholder="请输入手机号" prefixIcon="phone" clearable type="number" maxlength="11" />
		<uni-easyinput v-model="verificationCode" placeholder="请输入验证码" prefixIcon="phone" clearable type="number" maxlength="4" />
		<login></login>
		<userInfo></userInfo>
		<button @click="increment">123</button>
	</view> 
</template>

<script>
	export default {
		data() {
			return {
				swiperList: [],
				phone: '',
				verificationCode: '',
			}; 
		},
		methods: {
			getSwiperList() {
				this.swiperList = [{ 
						"id": 1,
						"src": "../../static/ad1.png"
					},
					{
						"id": 2,
						"src": "../../static/ad2.png"
					},
					{
						"id": 3,
						"src": "../../static/ad3.png"
					}
				]
			},
		},
		onLoad() {
			this.getSwiperList() 
		},
	}
</script>

<style lang="scss">
	swiper {
		height: 180rpx;

		.swiper-item,
		image {
			width: 100%;
			height: 100%;
		}
	}
</style>