From 43a26d4943d95549294fabb296198336eb508e43 Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 20 Sep 2024 14:21:50 +0800 Subject: [PATCH] =?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=E6=8F=90=E4=BA=A4=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2=E2=80=941.=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=80=89=E6=8B=A9=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=EF=BC=9B2.=E9=80=89=E6=8B=A9=E5=85=B6=E4=BB=96=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=EF=BC=8C=E4=B9=8B=E5=89=8D=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=9A=84=E4=BC=98=E6=83=A0=E5=88=B8=E4=BB=8D=E7=84=B6=E4=B8=BA?= =?UTF-8?q?=E8=A2=AB=E5=8B=BE=E9=80=89=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CouponsPopup.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue index b4c5795..cb2eaf6 100644 --- a/components/CouponsPopup.vue +++ b/components/CouponsPopup.vue @@ -161,11 +161,14 @@ export default { this.selectCoupon(this.list[this.maxIndex].id) uni.setStorageSync('couponId', this.list[this.maxIndex].id) } - this.$emit('max', this.list[this.maxIndex] || {}) + // this.$emit('max', this.list[this.maxIndex] || {}) return this.list[this.maxIndex] || {} } }, + mounted() { + this.$emit('max', this.largOne) + }, methods: { force2Decimal(value) { return this.$force2Decimal(value);