From fd6ce7c7998c7f873758df85041c38dcf51eb41c Mon Sep 17 00:00:00 2001
From: lccsw <805383944@qq.com>
Date: Fri, 5 Dec 2025 14:59:44 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=91=E9=80=81=E4=BC=98?=
=?UTF-8?q?=E6=83=A0=E5=88=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pingan/src/api/car/product/index.js | 16 +
pingan/src/api/receiver/clues/index.js | 13 +
.../receiver/clues/components/send-coupon.vue | 152 ++++
pingan/src/views/receiver/clues/index.vue | 660 +++++++++---------
4 files changed, 520 insertions(+), 321 deletions(-)
create mode 100644 pingan/src/views/receiver/clues/components/send-coupon.vue
diff --git a/pingan/src/api/car/product/index.js b/pingan/src/api/car/product/index.js
index 63949ce..ed4d9b7 100644
--- a/pingan/src/api/car/product/index.js
+++ b/pingan/src/api/car/product/index.js
@@ -99,3 +99,19 @@ export async function exportProduct(params) {
}
return Promise.reject(new Error(res.data.message));
}
+
+/**
+ * 优惠券列表
+ * @param params
+ * @returns {Promise<*>}
+ */
+export async function pageCouponList(params) {
+ const res = await request.get('/car/product/couponList', {
+ params
+ });
+ if (res.data.code === 0) {
+ return res.data.data;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
+
diff --git a/pingan/src/api/receiver/clues/index.js b/pingan/src/api/receiver/clues/index.js
index e13cfb4..42af149 100644
--- a/pingan/src/api/receiver/clues/index.js
+++ b/pingan/src/api/receiver/clues/index.js
@@ -98,3 +98,16 @@ export async function updateLevel(data) {
}
return Promise.reject(new Error(res.data.message));
}
+
+/**
+ * 发送优惠券
+ * @param data
+ * @returns {Promise<*>}
+ */
+export async function sendCoupon(data) {
+ const res = await request.post('/receiver/clues/sendCoupon', data);
+ if (res.data.code === 0) {
+ return res.data.message;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
diff --git a/pingan/src/views/receiver/clues/components/send-coupon.vue b/pingan/src/views/receiver/clues/components/send-coupon.vue
new file mode 100644
index 0000000..f8eec3c
--- /dev/null
+++ b/pingan/src/views/receiver/clues/components/send-coupon.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+
+ 保存
+
+
+
+
+
+
+
+
diff --git a/pingan/src/views/receiver/clues/index.vue b/pingan/src/views/receiver/clues/index.vue
index e45c8c9..ee162d9 100644
--- a/pingan/src/views/receiver/clues/index.vue
+++ b/pingan/src/views/receiver/clues/index.vue
@@ -147,7 +147,8 @@
icon="el-icon-download"
type="primary"
@click="exportData"
- >导出导出
+
@@ -182,12 +183,13 @@
{{
- item
- }}
+ item
+ }}
+
{{ row.statusCn }}
-
{{ row.isUnlock }}
+
{{ row.isUnlock }}
拨打电话
+
+ 发券
+
+