diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue index 6e42d75..2c213c3 100644 --- a/components/CouponsPopup.vue +++ b/components/CouponsPopup.vue @@ -204,6 +204,7 @@ export default { selectCoupon(id) { this.couponId = id this.selectItem = this.list.find(e => e.id === id) || {} + this.$emit('max', this.selectItem) this.list.map(item => { item.checked = id === item.id }) diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue index 76986df..6d883a9 100644 --- a/pages/order/OrderSubmission/index.vue +++ b/pages/order/OrderSubmission/index.vue @@ -438,6 +438,7 @@ export default { methods: { isNullOrEmpty, couponMax(e) { + console.log(e, 'dxdhkasjhdajks'); this.couponTitle = e.couponTitle this.couponId = this.$yroute.query.couponId || uni.getStorageSync('couponId') || 0 },