diff --git a/common/api/customer.js b/common/api/customer.js
index 761629f..bc6a10f 100644
--- a/common/api/customer.js
+++ b/common/api/customer.js
@@ -280,3 +280,19 @@ export const getWechatList = () => {
});
};
+/**
+ * 删除客户
+ * @param {string|string[]} ids 客户ID或ID数组(多个ID用逗号分隔或传入数组)
+ * @returns {Promise} 返回删除结果
+ */
+export const deleteCustomer = (ids) => {
+ // 如果传入的是数组,转换为逗号分隔的字符串
+ const idsParam = Array.isArray(ids) ? ids.join(',') : ids;
+
+ return uni.$uv.http.delete(`bst/customer/${idsParam}`,{}, {
+ custom: {
+ auth: true // 启用 token 认证
+ }
+ });
+};
+
diff --git a/components/CustomerManagement.vue b/components/CustomerManagement.vue
index 85e6ab7..908ee69 100644
--- a/components/CustomerManagement.vue
+++ b/components/CustomerManagement.vue
@@ -129,10 +129,10 @@
diff --git a/pages/customer/detail/index.vue b/pages/customer/detail/index.vue
index 6ee72a1..e38f7fe 100644
--- a/pages/customer/detail/index.vue
+++ b/pages/customer/detail/index.vue
@@ -125,7 +125,7 @@