From 5390d4854ccc30516a1eeb8569a06a8e9f8944ac Mon Sep 17 00:00:00 2001
From: lcc <805383944@qq.com>
Date: Fri, 1 Aug 2025 08:56:24 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=90=A5=E5=90=8E=E5=8F=B0=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0CPS=E9=87=91=E9=A2=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin/src/api/car/product/index.js | 8 ++
.../views/car/product/components/editCps.vue | 124 ++++++++++++++++++
admin/src/views/car/product/index.vue | 19 ++-
3 files changed, 149 insertions(+), 2 deletions(-)
create mode 100644 admin/src/views/car/product/components/editCps.vue
diff --git a/admin/src/api/car/product/index.js b/admin/src/api/car/product/index.js
index c28a6f8..852a5f1 100644
--- a/admin/src/api/car/product/index.js
+++ b/admin/src/api/car/product/index.js
@@ -68,3 +68,11 @@ export async function updateProductBrokerage(data) {
}
return Promise.reject(new Error(res.data.message));
}
+
+export async function updateProductCps(data) {
+ const res = await request.put('/car/product/cps', data);
+ if (res.data.code === 0) {
+ return res.data.message;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
diff --git a/admin/src/views/car/product/components/editCps.vue b/admin/src/views/car/product/components/editCps.vue
new file mode 100644
index 0000000..4a9e98a
--- /dev/null
+++ b/admin/src/views/car/product/components/editCps.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+ 取消
+
+ 保存
+
+
+
+
+
+
+
diff --git a/admin/src/views/car/product/index.vue b/admin/src/views/car/product/index.vue
index 54bbc73..2107fa2 100644
--- a/admin/src/views/car/product/index.vue
+++ b/admin/src/views/car/product/index.vue
@@ -191,6 +191,7 @@
+ CPS
产品
佣金
优惠券
@@ -218,6 +219,8 @@
:visible.sync="showEditBrokerage"
@done="reload"
/>
+
+