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);