From d41f1f707dc643b726a42b9d2a63b186dd9e4f28 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 06 八月 2024 16:12:38 +0800
Subject: [PATCH] ll
---
wechat_staff/pages/index/index.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/wechat_staff/pages/index/index.js b/wechat_staff/pages/index/index.js
index 547bff8..8507d8d 100644
--- a/wechat_staff/pages/index/index.js
+++ b/wechat_staff/pages/index/index.js
@@ -49,8 +49,6 @@
rect.top // 鑺傜偣鐨勪笂杈圭晫鍧愭爣
rect.bottom // 鑺傜偣鐨勪笅杈圭晫鍧愭爣
}).exec(res => {
- console.log('res', res);
- console.log(windowInfo.windowHeight)
this.setData({ videoTop: res[0].top,windowHeight: windowInfo.windowHeight})
})
}, 2000)
@@ -61,7 +59,7 @@
fileType: '0'
}).then(res => {
this.setData({
- DailyUpdates: res.data
+ DailyUpdates: res.data || {}
})
})
// 浜у搧瑙嗛
@@ -69,7 +67,7 @@
pageSize: 1,
pageNum: 1
}).then(res => {
- if (res.data.records && res.data.records.length > 0) {
+ if (res.data && res.data.records && res.data.records.length > 0) {
this.setData({
productVideo: res.data.records
})
--
Gitblit v1.9.3