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); +};