<template>
	<view class="detail">
		<!-- 轮播图 -->
		<view class="uni-margin-wrap">
			<swiper class="swiper" circular :indicator-dots="true" indicator-color="white" :autoplay="3000" :interval="2000" :duration="500">
				<swiper-item v-for="(item,index) in bannerList" :key="index">
					<image class="pictures" :src="item.pic" mode=""></image>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>

<script>
	import { prodInfo } from '../../api/detail.js'
	export default {
		data() {
			return {
				prodList:[],
				bannerList: []
			}
		},
		async	onLoad(options) {
			console.log(options)
			let result = await prodInfo({prodId: 71})
			console.log(result)
			this.bannerList = result.skuList;
		}
	}
</script>

<style lang="less">
	.uni-margin-wrap {
		.swiper {
			width: 100%;
			height: 600rpx;
			image {
				width: 100%;
				height: 100%;
			}
		}
	}
</style>