<template>
	<view class="">
	<u-swiper :list="list"></u-swiper>
	</view>
</template>

<script>
	import api from '@/utils/api'
	import utils from '@/utils'
	import md5 from 'js-md5'
	import store from '@/store'
	import cont from "@/components/navigation/navigation.vue"
	export default {
		data() {
			return {
						list: [],
				ticket:'',
			}
		},

		onLoad() {
	        this.ticket= uni.getStorageSync('logInfo').data;
			this.init();
		},
		
			onReady() {
			
			},
		methods: {
			init(){
				const post = api.banner({})
				.then(res =>{
					this.list=res.data;
					for(var i=0;i<this.list.length;i++){
						 this.list[i].adImgPath='https://apitest.luck-work.com'+this.list[i].adImgPath
					}
				})
			},
			},
	
		}
	
</script>

<style>
	@import './index.css';
</style>
