搜索页面-优惠券提示bug

parent 8fed8f85
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
} }
}, },
{ {
"path": "pages/searchPage/searchPage", "path": "pages/assistingAgriculture/searchPage/searchPage",
"style": { "style": {
"navigationBarTitleText": "搜索", "navigationBarTitleText": "搜索",
"navigationStyle":"custom" "navigationStyle":"custom"
......
...@@ -97,8 +97,10 @@ page { ...@@ -97,8 +97,10 @@ page {
} }
} }
.content { .content {
line-height: 120px; display: flex;
text-align: center; flex-direction: column;
align-content: center;
gap: 20rpx;
} }
} }
</style> </style>
...@@ -242,7 +242,7 @@ function showDetailFn(item) { ...@@ -242,7 +242,7 @@ function showDetailFn(item) {
* 选择优惠券 * 选择优惠券
*/ */
function selectShopCoupon(item) { function selectShopCoupon(item) {
if (item.cashCondition < orderInfo.value.orderItems[0].price) { if (item.cashCondition <= orderInfo.value.orderItems[0].price) {
activeCouponId.value = item.couponId; activeCouponId.value = item.couponId;
activeCouponInfo.value = item; activeCouponInfo.value = item;
showpopup.value = false; showpopup.value = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment