From f14ea940fb32105de8b592992e3f53c62f31d84d Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 22 一月 2026 16:42:51 +0800
Subject: [PATCH] 2026.1.22
---
component/mygallery/mygallery.js | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/component/mygallery/mygallery.js b/component/mygallery/mygallery.js
index 08bf58c..948c72f 100644
--- a/component/mygallery/mygallery.js
+++ b/component/mygallery/mygallery.js
@@ -33,8 +33,8 @@
let query = this.createSelectorQuery().in(this); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
setTimeout(() => {
query.select('.fyui-gallery__img').boundingClientRect(function (rect) {
- console.log('observer');
- console.log(rect);
+ // console.log('observer');
+ // console.log(rect);
that.setData({
imgHeight: rect.height,
imgWidth: rect.width,
@@ -195,8 +195,8 @@
touchStart(e) {
const touches = e.touches
- console.log('touchStart:');
- console.log(touches);
+ // console.log('touchStart:');
+ // console.log(touches);
const { translateX, translateY } = this.data
const { clientX, clientY } = touches[0]
this.setData({
@@ -211,7 +211,7 @@
},
touchMove(e) {
- console.log('touchMove:');
+ // console.log('touchMove:');
const touches = e.touches
const { clientX: onePageX, clientY: onePageY } = touches[0]
const { startMove, scale, distance: oldDistance, startTouches, oldRotate } = this.data
@@ -259,7 +259,7 @@
return Math.atan2(y, x) * 180 / Math.PI
},
touchEnd() {
- console.log('touchEnd:');
+ // console.log('touchEnd:');
// 淇濆瓨褰撳墠鏃嬭浆瑙掑害锛屾竻绌哄弻鎸囪窛绂�
const oldRotate = this.data.rotate
this.setData({
@@ -294,16 +294,16 @@
xLimit,
yLimit
})
- console.log('yLimit');
- console.log(yLimit);
+ // console.log('yLimit');
+ // console.log(yLimit);
let that = this;
let query = this.createSelectorQuery().in(this); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
query.select('.fyui-gallery__img').boundingClientRect(function (rect) {
- console.log('imgHeight:' + that.data.imgHeight);
- console.log('imgWidth:' + that.data.imgWidth);
- console.log(rect);
- console.log('endScale:' + that.data.endScale);
+ // console.log('imgHeight:' + that.data.imgHeight);
+ // console.log('imgWidth:' + that.data.imgWidth);
+ // console.log(rect);
+ // console.log('endScale:' + that.data.endScale);
}).exec();
// 缂╂斁鍚庡洖褰掕嚦褰撳墠绉诲姩浣嶇疆
--
Gitblit v1.9.3