Bladeren bron

fix(red-packet): update threshold display logic and correct API endpoint for coupon retrieval

- Added a condition to display the threshold description if available, enhancing user clarity.
- Updated the API endpoint for fetching customer coupons to ensure accurate data retrieval.
ylong 1 week geleden
bovenliggende
commit
a60e9ffe28
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      src/views/customer/list/components/detail/red-packet.vue

+ 2 - 1
src/views/customer/list/components/detail/red-packet.vue

@@ -63,6 +63,7 @@
     }
 
     function formatThreshold(row) {
+        if (row.thresholdDesc) return row.thresholdDesc;
         if (row.thresholdText) return row.thresholdText;
         const money = row.thresholdMoney;
         if (money === 0 || money === '0') return '无门槛';
@@ -129,7 +130,7 @@
         () => props.row,
         (row) => {
             if (!row?.id) return;
-            pageConfig.pageUrl = '/shop/couponInfo/getClaimPagelist';
+            pageConfig.pageUrl = '/shop/couponInfo/getCustomerCouponPage';
             pageConfig.params = { userId: row.id };
             pageRef.value?.reload();
         },