Fix: 【商城小程序】结算页面直接默认使用当前可用减免金额最大的优惠券

This commit is contained in:
linxi
2024-09-19 18:00:55 +08:00
parent cb3b92a2b2
commit 2f2497270a
2 changed files with 9 additions and 2 deletions
+2
View File
@@ -159,7 +159,9 @@ export default {
largOne() {
if(this.list[this.maxIndex]) {
this.selectCoupon(this.list[this.maxIndex].id)
uni.setStorageSync('couponId', this.list[this.maxIndex].id)
}
this.$emit('max', this.list[this.maxIndex] || {})
return this.list[this.maxIndex] || {}
}