wxml
<mynav title="定位" />
<view class="page">
<view class="touch-container">
<image class="img" src="{
{src}}" style="width: {
{width}}rpx; height: {
{height}}rpx; left: {
{left}}rpx; top: {
{top}}rpx; transform: translate(-50%, -50%) scale({
{ scale }}) rotate({
{ rotate }}deg);" bindload="bindload" catchtouchstart="touchstart" catchtouchmove="touchmove" catchtouchend="touchend"></image>
</view>
<view class="button">
<view class="btn" bindtap="add">+</view>
<view class="btn" bindtap="cut">-</view>
</view>
</view>
js
var canOnePointMove = false
var onePoint = {
x: 0,
y: 0
}
var twoPoint = {
x1: 0,
y1: 0,
x2: 0,
y2: 0
}
Page({
data: {
msg: '',
src: '/images/icons/7f55677d60d2b8ce452f55715c03dd8.png',
width: 0,
height: 0,
left: 375,
top: 600,
scale: 1,
rotate: 0
},
onReachBottom: function () {
return
},
bindload: function (e)