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 }}