revert(order): 移除订单站内聊天,沟通统一走官方客服

- 删除 pages/order/chat、聊天接口/仓储方法/order_messages 建表与客户端 API

- 买家「联系大神」、大神「联系老板」、大神详情「在线客服」、组局「私聊」统一改为 openSupportSheet(读取后台 customer_service 配置的客服微信/热线)

- 保留派单实时通知与雷达/大厅轮询

- 114 套件/742 用例全绿;聊天接口线上已 404
这个提交包含在:
xcbyy
2026-10-22 09:10:16 +08:00
父节点 aca35db200
当前提交 be1c7be5d3
共有 12 个文件被更改,包括 95 次插入 和 685 次删除

查看文件

@@ -262,6 +262,7 @@ import { onLoad, onShow } from '@dcloudio/uni-app';
import SkeletonScreen from '@/components/SkeletonScreen.vue';
import { getCompanionDetail, getExpertReviews, replyOrderReview, submitReport as submitReportApi, checkFavorite, addFavorite as addFavApi, removeFavorite as removeFavApi } from '@/common/api.js';
import { ICONS } from '@/common/icons.js';
import { openSupportSheet } from '@/common/support.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { ensureLoginOrRedirect } from '@/common/role.js';
@@ -532,36 +533,7 @@ const toggleVoice = () => {
};
const chatOnline = () => {
uni.showActionSheet({
itemList: [`联系 7x24h 官方在线客服`],
success: (res) => {
if (res.tapIndex === 0) {
uni.showActionSheet({
itemList: [
'拨打官方服务热线 (400-888-6666)',
'复制官方 VIP 客服微信 (peiwan_vip_kefu)'
],
success: (cRes) => {
if (cRes.tapIndex === 0) {
uni.makePhoneCall({
phoneNumber: '4008886666',
fail: () => {
uni.showToast({ title: '服务热线: 400-888-6666', icon: 'none' });
}
});
} else if (cRes.tapIndex === 1) {
uni.setClipboardData({
data: 'peiwan_vip_kefu',
success: () => {
uni.showToast({ title: '官方客服微信号已复制', icon: 'success' });
}
});
}
}
});
}
}
});
void openSupportSheet();
};
const previewImage = (index) => {

查看文件

@@ -466,6 +466,7 @@
import { ref, computed, onMounted, onUnmounted } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import { ICONS } from '@/common/icons.js';
import { openSupportSheet } from '@/common/support.js';
import { isExpertCertified } from '@/common/role.js';
import { getCurrentThemeKey } from '@/common/theme.js';
import {
@@ -1024,42 +1025,8 @@ const handleRejectOrder = (order) => {
};
const chatWithBuyer = (order) => {
const orderId = order && order.id;
if (orderId) {
uni.navigateTo({ url: `/pages/order/chat?orderId=${encodeURIComponent(orderId)}` });
return;
}
uni.showActionSheet({
itemList: ['联系 7x24h 官方客服'],
success: (res) => {
if (res.tapIndex === 0) {
uni.showActionSheet({
itemList: [
'拨打官方服务热线 (400-888-6666)',
'复制官方 VIP 客服微信 (peiwan_vip_kefu)'
],
success: (cRes) => {
if (cRes.tapIndex === 0) {
uni.makePhoneCall({
phoneNumber: '4008886666',
fail: () => {
uni.showToast({ title: '服务热线: 400-888-6666', icon: 'none' });
}
});
} else if (cRes.tapIndex === 1) {
uni.setClipboardData({
data: 'peiwan_vip_kefu',
success: () => {
uni.showToast({ title: '官方客服微信号已复制', icon: 'success' });
}
});
}
}
});
}
}
});
const chatWithBuyer = () => {
void openSupportSheet();
};
const completeOrder = (id) => {