<template>
	<view @click="goback" class="top" :class="bottomtop==1?'':'activebottom' ">
		<img class="imgTop" src="/static/back_top.png" />
	</view>
</template>

<script>
	export default {
		props: {
			isTop: {
				default: false,
				type: Boolean
			},
			bottomtop: {
				default: 1,
			}
		},
		methods: {
			goback() {
				this.$emit('getop')
			},
		}
	}
</script>

<style>
	.top {
		width: 80upx;
		height: 80upx;
		border-radius: 50%;
		background-color: #fff;
		border: 1px solid #ccc;
		position: fixed;
		right: 32upx;
		bottom: 15upx;
		background-color: transparent;
	}
	.activebottom {
		width: 90upx;
		height: 90upx;
		border-radius: 50%;
		background-color: #fff;
		border: 1px solid #ccc;
		position: fixed;
		right: 32upx;
		bottom: 130upx;
		background-color: transparent;
	}
	.imgTop {
		width: 100%;
		height: 100%;
	}
</style>
