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.
54 lines
805 B
54 lines
805 B
12 months ago
|
<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
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
props: {
|
||
|
|
||
|
},
|
||
|
|
||
|
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>
|