Compare commits

3 Commits

Author SHA1 Message Date
3055d49644 Merge branch 'fix-109' of https://git.nianxx.cn/zoujing/YGChatCS 2025-10-20 18:28:02 +08:00
a08f3b65be feat: 问题反馈调整 2025-10-20 18:27:49 +08:00
9a2b5b0c73 feat: 首页样式的调整 2025-10-20 17:50:38 +08:00
3 changed files with 6 additions and 21 deletions

View File

@@ -64,7 +64,6 @@ const workOrderTypeId = ref("");
const contactPhone = ref(""); const contactPhone = ref("");
const contactText = ref(""); const contactText = ref("");
const isCallSuccess = ref(false); // 呼叫成功状态 const isCallSuccess = ref(false); // 呼叫成功状态
const workOrderId = ref(0); // 工单ID
const appName = computed(() => getCurrentConfig().name); const appName = computed(() => getCurrentConfig().name);
const handleCall = async () => { const handleCall = async () => {
@@ -99,26 +98,23 @@ const sendCreateWorkOrder = async () => {
}); });
if (res.code === 0) { if (res.code === 0) {
// 保存工单ID // 设置成功状态
workOrderId.value = res.data?.id || "";
// 设置呼叫成功状态
isCallSuccess.value = true; isCallSuccess.value = true;
uni.showToast({ uni.showToast({
title: "工单创建成功", title: "反馈意见成功",
icon: "success", icon: "success",
duration: 2000, duration: 2000,
}); });
} else { } else {
uni.showToast({ uni.showToast({
title: res.message || "创建工单失败", title: res.message || "反馈意见失败",
icon: "none", icon: "none",
duration: 2000, duration: 2000,
}); });
} }
} catch (error) { } catch (error) {
console.error("创建工单失败:", error); console.error("反馈意见失败:", error);
uni.showToast({ uni.showToast({
title: "网络错误,请重试", title: "网络错误,请重试",
icon: "none", 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(() => { onMounted(() => {
nextTick(() => { nextTick(() => {
setTimeout(() => { setTimeout(() => {

View File

@@ -1,7 +1,5 @@
<template> <template>
<view <view class="w-full border-box flex flex-col overflow-hidden pl-12 mt-6 mb-6">
class="chat-other border-box flex flex-col overflow-hidden pl-12 mt-6 mb-6"
>
<text class="font-size-14 color-333">{{ text }}</text> <text class="font-size-14 color-333">{{ text }}</text>
<slot></slot> <slot></slot>
</view> </view>

View File

@@ -5,7 +5,7 @@
.item { .item {
border: 1px solid #fff; border: 1px solid #fff;
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
padding: 4px 8px; padding: 4px 12px;
} }
.icon { .icon {