

<template>
	<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
		<van-swipe-item v-for="item in 3" :key="item">
			<img @click="() => {
        push({
          name:'extraWeb',
          query:{
            src:src

          }
        })

      }" src="@/assets/img/banner1.jpg" class="banner" />
		</van-swipe-item>
	</van-swipe>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";
//extraWeb
const router = useRouter()
const push = router.push
let src = import.meta.env.MODE === "production" ? "https://mn.zzxcx.net/#/aprilExam/test" : "https://mn1.zzxcx.net/#/aprilExam/test";



</script>

<style lang="scss" scoped>
.my-swipe {
	background-color: red;
	width: 345px;
	height: 100px;
	margin: auto;
	margin-top: 12px;
	.banner {
		width: 100%;
		height: 100%;
	}
}
</style>
