From 6ac1b9d415395c57c3a3d7765a1ffa85d6a2b078 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Tue, 25 Feb 2025 23:37:43 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E6=94=B6=E7=A4=BC=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E9=80=BB=E8=BE=91=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/GoodsCon/index.vue | 3 +- .../views/gift/components/AddressList.vue | 8 +- pkg_user/views/gift/components/GiftCard.vue | 116 ++++++++++++------ pkg_user/views/gift/components/giftTips.vue | 9 +- pkg_user/views/gift/receive.vue | 36 +++++- 5 files changed, 127 insertions(+), 45 deletions(-) diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 3d1eddc..785ae49 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -1427,8 +1427,9 @@ export default { return } if(news === 2) { + const coupId = that.couponId ? that.couponId : (that.couponList.usable[0] && that.couponList.usable[0].id || '') uni.navigateTo({ - url: '/pkg_user/views/gift/gift?cartId=' + res.data.cartId + '&couponId=' + (that.couponId ? that.couponId : '') + url: '/pkg_user/views/gift/gift?cartId=' + res.data.cartId + '&couponId=' + coupId }) } if(news === 0) { diff --git a/pkg_user/views/gift/components/AddressList.vue b/pkg_user/views/gift/components/AddressList.vue index 2cbe42b..fe99f91 100644 --- a/pkg_user/views/gift/components/AddressList.vue +++ b/pkg_user/views/gift/components/AddressList.vue @@ -19,7 +19,7 @@ class="address-item" > - + 收货地址: @@ -110,6 +110,9 @@ export default {