From 4e5991030ff256a57b87b7c82db2dd67f2f34e6e Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 18 Sep 2024 16:36:49 +0800 Subject: [PATCH] =?UTF-8?q?1.diy---=E5=9B=BE=E7=89=87=E9=AD=94=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/hot-zone.vue | 3 +++ components/diy/notice.vue | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/diy/hot-zone.vue b/components/diy/hot-zone.vue index 85a665b9..0d4b965d 100644 --- a/components/diy/hot-zone.vue +++ b/components/diy/hot-zone.vue @@ -52,11 +52,13 @@ }, // 图片加载完成 获取宽高 on_load_img(e) { + console.log('123'); const query = uni.createSelectorQuery(); // 选择我们想要的元素 query .select('.container') .boundingClientRect((res) => { + console.log('1:' + res); if ((res || null) != null) { // data包含元素的宽度、高度等信息 this.setData({ @@ -70,6 +72,7 @@ query .select('.hot') .boundingClientRect((res) => { + console.log('2:' + res); if ((res || null) != null) { // data包含元素的宽度、高度等信息 this.setData({ diff --git a/components/diy/notice.vue b/components/diy/notice.vue index 5d4589ca..ae93d27e 100644 --- a/components/diy/notice.vue +++ b/components/diy/notice.vue @@ -38,7 +38,7 @@ - + 更多 @@ -47,7 +47,7 @@ {{ index + 1 }} - {{ item.notice_title }} + {{ item.notice_title }}