diff --git a/src/components/Feedback/index.vue b/src/components/Feedback/index.vue index a68031b..ece6d51 100644 --- a/src/components/Feedback/index.vue +++ b/src/components/Feedback/index.vue @@ -64,7 +64,6 @@ const workOrderTypeId = ref(""); const contactPhone = ref(""); const contactText = ref(""); const isCallSuccess = ref(false); // 呼叫成功状态 -const workOrderId = ref(0); // 工单ID const appName = computed(() => getCurrentConfig().name); const handleCall = async () => { @@ -99,26 +98,23 @@ const sendCreateWorkOrder = async () => { }); if (res.code === 0) { - // 保存工单ID - workOrderId.value = res.data?.id || ""; - - // 设置呼叫成功状态 + // 设置成功状态 isCallSuccess.value = true; uni.showToast({ - title: "工单创建成功", + title: "反馈意见成功", icon: "success", duration: 2000, }); } else { uni.showToast({ - title: res.message || "创建工单失败", + title: res.message || "反馈意见失败", icon: "none", duration: 2000, }); } } catch (error) { - console.error("创建工单失败:", error); + console.error("反馈意见失败:", error); uni.showToast({ title: "网络错误,请重试", icon: "none", @@ -127,15 +123,6 @@ const sendCreateWorkOrder = async () => { } }; -// 查看工单 -const viewWorkOrder = () => { - console.log("查看工单:", workOrderId.value); - // 这里可以跳转到工单详情页面 - uni.navigateTo({ - url: `/pages-order/order/list?id=${workOrderId.value}`, - }); -}; - onMounted(() => { nextTick(() => { setTimeout(() => {