From 655547c57ab746d3f0601cce936e1493947cd6e8 Mon Sep 17 00:00:00 2001 From: zoujing Date: Tue, 28 Oct 2025 18:07:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=97=AE=E9=A2=98=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Feedback/index.vue | 16 +++++++--------- src/request/api/FeedbackApi.js | 5 +++++ 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 src/request/api/FeedbackApi.js diff --git a/src/components/Feedback/index.vue b/src/components/Feedback/index.vue index 90d22bb..37f6c8e 100644 --- a/src/components/Feedback/index.vue +++ b/src/components/Feedback/index.vue @@ -66,9 +66,8 @@ import { ref, onMounted, nextTick, computed } from "vue"; import { SCROLL_TO_BOTTOM } from "@/constant/constant"; import { getCurrentConfig } from "@/constant/base"; -import { createWorkOrder } from "@/request/api/OrderApi"; +import { submitFeedback } from "@/request/api/FeedbackApi"; -const workOrderTypeId = ref(""); const contactPhone = ref(""); const contactText = ref(""); const isCallSuccess = ref(false); // 呼叫成功状态 @@ -93,16 +92,15 @@ const handleCall = async () => { return; } - sendCreateWorkOrder(); + sendFeedback(); }; -/// 创建工单 -const sendCreateWorkOrder = async () => { +/// 提交反馈意见 +const sendFeedback = async () => { try { - const res = await createWorkOrder({ - contactName: contactText.value, - contactPhone: contactPhone.value, - workOrderTypeId: workOrderTypeId.value, + const res = await submitFeedback({ + userPhone: contactPhone.value, + content: contactText.value, }); if (res.code === 0) { diff --git a/src/request/api/FeedbackApi.js b/src/request/api/FeedbackApi.js new file mode 100644 index 0000000..810fd78 --- /dev/null +++ b/src/request/api/FeedbackApi.js @@ -0,0 +1,5 @@ +import request from "../base/request"; + +export const submitFeedback = (args) => { + return request.post("/hotelBiz/feedback/submitFeedback", args); +};