diff --git a/src/App.vue b/src/App.vue index bb73eb2..ed74f41 100644 --- a/src/App.vue +++ b/src/App.vue @@ -106,7 +106,7 @@ export default { if(options?.path?.includes('ticketsBuy/ticketsBuy') && options?.query.couponsId) { setTimeout(() => { uni.reLaunch({ - url: 'pages/common/groupbuy/detail?id=' + options?.query.couponsId + url: 'pages/common/groupbuy/detail?couponId=' + options?.query.couponsId }); }, 500); } diff --git a/src/pages/common/groupbuy/detail.vue b/src/pages/common/groupbuy/detail.vue index 8813680..e0fcf55 100644 --- a/src/pages/common/groupbuy/detail.vue +++ b/src/pages/common/groupbuy/detail.vue @@ -17,7 +17,7 @@ {{ groupBuyBean?.payPrice || 0 }} - ¥{{ groupBuyBean?.price || 0 }} + ¥{{ groupBuyBean?.price || 0 }} {{ countdownTime?.days || 0 }}天 @@ -104,7 +104,7 @@ - + 赠送优惠券 @@ -646,6 +646,8 @@ const placeOrder = async () => { .goods-container { padding: 30rpx; position: relative; + margin-left: 20rpx; + margin-right: 20rpx; image { width: 200rpx; @@ -688,7 +690,14 @@ const placeOrder = async () => { } } +.coupon-container { + margin-left: 20rpx; + margin-right: 20rpx; +} + .record-container { + margin-left: 20rpx; + margin-right: 20rpx; .item-view { margin: 10rpx 30rpx; diff --git a/src/pages/common/groupbuy/order-coupon-confirm.vue b/src/pages/common/groupbuy/order-coupon-confirm.vue index 7c1be1a..08ad7c0 100644 --- a/src/pages/common/groupbuy/order-coupon-confirm.vue +++ b/src/pages/common/groupbuy/order-coupon-confirm.vue @@ -75,7 +75,11 @@ onLoad((e: any) => { const countChange = (isPlus: boolean) => { if(isPlus) { - goodsCount.value += 1; + if(goodsCount.value < (groupBuyBean.value?.publicNum || 0)) { + goodsCount.value += 1; + } else { + showToast('超出最大购买数量'); + } } else { if(goodsCount.value > 1) { goodsCount.value -= 1; @@ -178,7 +182,7 @@ const payment = () => { } .date { - font-size: 25rpx; + font-size: 30rpx; color: #999999; margin-left: 10rpx; margin-top: 10rpx; diff --git a/src/pages/coupons/ticketsBuy/ticketsBuy.vue b/src/pages/coupons/ticketsBuy/ticketsBuy.vue index e2620cb..917e7e9 100644 --- a/src/pages/coupons/ticketsBuy/ticketsBuy.vue +++ b/src/pages/coupons/ticketsBuy/ticketsBuy.vue @@ -3,20 +3,21 @@