Fix:收礼相关逻辑补充

This commit is contained in:
modendeveloper
2025-02-25 23:37:43 +08:00
parent 12fa155630
commit 6ac1b9d415
5 changed files with 127 additions and 45 deletions
+2 -1
View File
@@ -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) {