<template>
	<view class="u-relative  bg-gray fixed yodwbsHlmJ-all">
		<view class="jdwbHJCFxl ydwbzNqTbj" v-if="time<=0" @click="enter"><text>进入</text></view>
		<view class="jdwbHJCFxl" v-else ><text>{{time}}</text></view>
		<image src="./asz.JPG" v-if="false" mode=""></image>
		<view class="w-full dumdwbwauP">
			<image src="/static/images/share_bg2.png" class="img"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				time:3
			}
		},
		onLoad() {
			this.init()
		},
		methods: {
			enter(){
				uni.reLaunch({
					url:'/pages/index/index'
				})
			},
			init(){
				this.timer=setInterval(()=>{
					this.time--
					if(this.time<=0){
						clearInterval(this.timer)
					}
				},1000)
			}
		}
	}
</script>

<style lang="scss" scoped>
.yodwbsHlmJ-all{
	position: fixed;
	inset: 0;
	.jdwbHJCFxl{
		position: absolute;
		z-index: 10;
		width: 50rpx;
		height: 50rpx;
		text-align: center;
		display: flex;
		justify-content: center;
		font-size: 14px;
		color: #555;
		align-items: center;
		right: 30rpx;
		border-radius: 50%;
		background-color: rgba(255, 255, 255, .5);
		border: 1px solid rgba(255, 255, 255, .8);
		top: calc(var(--status-bar-height) + 20rpx );
	}
	.ydwbzNqTbj{
		border-radius: 100rpx;
		white-space: nowrap;
		width: auto;
		height: auto;
		padding: 4rpx 20rpx;
	}
	.dumdwbwauP{
		position: absolute;
		inset: 0;
		.img{
			width: 100%;
			height: 100%;
		}
	}
	
}
</style>
