From d3d22a3c87bd3bc9737eb400e51f2a9ea430ed14 Mon Sep 17 00:00:00 2001 From: linxi Date: Wed, 18 Sep 2024 14:28:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Fix=EF=BC=9A=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=AF=BB=E8=B6=A3=E5=91=B3?= =?UTF-8?q?=E4=B8=8A=E9=9D=A2=E7=9A=84=E5=88=86=E7=B1=BB=E6=94=BE=E5=A4=A7?= =?UTF-8?q?=E4=B8=80=E7=82=B9=EF=BC=8C=E8=B0=83=E6=95=B4=E4=B8=BA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA3=E4=B8=AA=E5=8D=8A=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cloud/haveFun.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/cloud/haveFun.vue b/pages/cloud/haveFun.vue index b5dc066..be16fe0 100644 --- a/pages/cloud/haveFun.vue +++ b/pages/cloud/haveFun.vue @@ -268,8 +268,8 @@ export default { padding: 20rpx 20rpx 0 48rpx; .item { - width: 160rpx; - height: 160rpx; + width: 175rpx; + height: 175rpx; margin-right: 20rpx; border-radius: 26rpx; From edcb64fbf6af0760aea21012f7a438d4b477e919 Mon Sep 17 00:00:00 2001 From: linxi Date: Wed, 18 Sep 2024 16:11:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Fix=EF=BC=9A=E6=B2=A1=E6=9C=89=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E6=97=B6=E6=9C=80=E5=A4=A7=E5=80=BC=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CouponsPopup.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue index eee1be7..62714b5 100644 --- a/components/CouponsPopup.vue +++ b/components/CouponsPopup.vue @@ -157,8 +157,10 @@ export default { return maxIndex }, largOne() { - this.selectCoupon(this.list[this.maxIndex].id) - return this.list[this.maxIndex] + if(this.list[this.maxIndex]) { + this.selectCoupon(this.list[this.maxIndex].id) + } + return this.list[this.maxIndex] || {} } }, @@ -171,7 +173,7 @@ export default { }, selectCoupon(id) { this.couponId = id - this.selectItem = this.list.find(e => e.id === id) + this.selectItem = this.list.find(e => e.id === id) || {} this.list.map(item => { item.checked = id === item.id })