You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <view class="content" v-if="value && list.length"> <view class="box"> <swiper class="swiper" :circular="true" indicator-active-color="#0091ff" :current="current" :indicator-dots="list.length > 1"> <swiper-item v-for="(item, index) in list" :key="index"> <image class="img" :src="item.image" mode="aspectFill" @click="clickAd(item)"></image> </swiper-item> </swiper> <view class="close" @click="close"> <text class="lf-iconfont icon-cuo1" style="color: #FFFFFF;"></text> </view> </view> </view></template>
<script> export default { props: { value: { type: Boolean, default: true }, list: { type: Array, default: [] } }, data(){ return { } }, created(){ }, methods: { clickAd(item){ this.$url(item.url); }, close(){ this.$emit('update:value', false); } } }</script>
<style lang="scss" scoped="scoped"> .content{ width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; position: fixed; left: 0; top: 0; z-index: 99; .box{ width: 600rpx; height: max-content; .swiper{ width: 600rpx; height: 840rpx; .img{ width: 100%; height: 100%; } } .close{ width: 70rpx; height: 70rpx; margin: 34rpx auto 0; border-radius: 50%; display: flex; justify-content: center; align-items: center; text{ font-size: 80rpx; } } } }</style>
|