diff --git a/src/api/match/coupon.js b/src/api/match/coupon.js
index 5449253..a0798fd 100644
--- a/src/api/match/coupon.js
+++ b/src/api/match/coupon.js
@@ -9,7 +9,7 @@ import { http } from '../../utils/request';
* @param {number} [data.pageNo] - 当前页码
* @param {number} [data.pageSize] - 每页条数
* @param {string} [data.name] - 优惠券名称 (模糊查询)
- * @param {number} [data.type] - 优惠券类型 (1:满减券, 2:折扣券, 3:代金券)
+ * @param {number} [data.type] - 优惠券类型 (0:折扣券, 1:定额券)
* @returns {Promise<{
* pageNo: number,
* pageSize: number,
@@ -41,7 +41,7 @@ export const couponPage = (data) => {
* 添加优惠券
* @param {Object} data - 优惠券信息
* @param {string} data.name - 优惠券名称
- * @param {number} data.type - 优惠券类型 (1:满减券, 2:折扣券, 3:代金券)
+ * @param {number} data.type - 优惠券类型 (0:折扣券, 1:定额券)
* @param {number} data.value - 优惠券面值
* @param {string} data.startTime - 开始时间 (格式:2026-03-08T18:23:19.664Z)
* @param {string} data.endTime - 结束时间 (格式:2026-03-08T18:23:19.664Z)
@@ -57,7 +57,7 @@ export const couponAdd = (data) => {
* @param {Object} data - 优惠券信息
* @param {number} data.id - 优惠券ID
* @param {string} data.name - 优惠券名称
- * @param {number} data.type - 优惠券类型 (1:满减券, 2:折扣券, 3:代金券)
+ * @param {number} data.type - 优惠券类型 (0:折扣券, 1:定额券)
* @param {number} data.value - 优惠券面值
* @param {string} data.startTime - 开始时间 (格式:2026-03-08T18:23:19.665Z)
* @param {string} data.endTime - 结束时间 (格式:2026-03-08T18:23:19.665Z)
diff --git a/src/views/match/coupon/index.vue b/src/views/match/coupon/index.vue
index 518194a..770dfc9 100644
--- a/src/views/match/coupon/index.vue
+++ b/src/views/match/coupon/index.vue
@@ -13,10 +13,10 @@
{{ $t(scope.row.name) }}
- {{ scope.row.type == 1 ? '折扣券' : '代金券' }}
+ {{ scope.row.type == 0 ? '折扣券' : '定额券' }}
- {{ scope.row.type == 1 ? scope.row.value + '%' : scope.row.value + '元' }}
+ {{ scope.row.type == 0 ? scope.row.value + '%' : scope.row.value + '元' }}
{{ formatDate(scope.row.startTime) }} - {{ formatDate(scope.row.endTime) }}
@@ -49,20 +49,20 @@
-
-
+
+
-
+
%
-
+
元
@@ -213,7 +213,7 @@ const columns = ref([
el: 'input',
},
},
- { prop: 'type', label: '优惠券类型', search: { el: 'select', }, enum: [{ label: '全部', value: '' }, { label: '折扣', value: 1 }, { label: '定价', value: 2 },] },
+ { prop: 'type', label: '优惠券类型', search: { el: 'select', }, enum: [{ label: '全部', value: '' }, { label: '折扣', value: 0 }, { label: '定额', value: 1 },] },
{ prop: 'value', label: '详情', },
{ prop: 'startTime', label: '有效期' },
{ prop: 'eventNames', label: '可用赛事' },