<template>
	<view>
		<view class="scan_float" @click="goScan('bottom')">
			<image src="@/static/icons_ui/icon_scan_white.svg"></image>
			<view>扫描</view>
		</view>
		<!-- <movable-area>
			<movable-view class="max" direction="all">扫描</movable-view>
		</movable-area> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				x: 0,
				y: 0,
				old: {
					x: 0,
					y: 0
				}
			}
		},
		created() {

		},
		methods: {
			goScan(content) {
				this.$emit("goScan", '');
			},
			tap: function(e) {
				this.x = this.old.x
				this.y = this.old.y
				this.$nextTick(function() {
					this.x = 30
					this.y = 30
				})
			},
			onChange: function(e) {
				this.old.x = e.detail.x
				this.old.y = e.detail.y
			}
		},
	}
</script>

<style>
</style>
