From 5e57deb4c7a53c3307f59b2267127b4dd7fd0b02 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期日, 29 九月 2024 15:05:10 +0800
Subject: [PATCH] ll
---
wechat_jiaxuan/components/authCard/authCard.js | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/wechat_jiaxuan/components/authCard/authCard.js b/wechat_jiaxuan/components/authCard/authCard.js
index 97e2db3..6182d46 100644
--- a/wechat_jiaxuan/components/authCard/authCard.js
+++ b/wechat_jiaxuan/components/authCard/authCard.js
@@ -34,11 +34,15 @@
model: {
longitude,
latitude
- }
+ },
+ capacity: 3,
+ page: 1
}).then(res => {
- this.setData({
- shopList: res.data.records
- })
+ if (res.data && res.data.records) {
+ this.setData({
+ shopList: res.data.records || []
+ })
+ }
})
},
shopDetail(e) {
--
Gitblit v1.9.3