goback.vue 957 Bytes
<template>
	<view class="back" @click="goback" v-if="!$isMobile">
		<u-image src="/static/images/icon/back.png" mode="witFix" class="ImageCss"></u-image>
	</view>
</template>

<script>
	export default {
		components: {},
		props: {

		},
		data() {
			return {

			}
		},
		computed: {

		},
		onLoad() {

		},
		methods: {
			goback() {
			  if (window.history.length > 1) {
			    window.history.back();
			  } else {
			    window.location.href = '/mobile';
			  }
			}
		}
	}
</script>

<style lang="scss" scoped>
	/deep/.u-image__image{
		width: 50px !important;
		height: 50px !important;
	}
	/deep/.u-image{
		width: 0 !important;
		height: 0 !important;
	}
	.ImageCss{
		width: 50px !important;
		height: 50px !important;
	}
	.back {
		width: 50px;
		height: 50px;
		border-radius: 50px;
		position: fixed;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		left:10px;
		top: 10%;
		bottom: 0;
	}
</style>