revert(order): 移除订单站内聊天,沟通统一走官方客服
- 删除 pages/order/chat、聊天接口/仓储方法/order_messages 建表与客户端 API - 买家「联系大神」、大神「联系老板」、大神详情「在线客服」、组局「私聊」统一改为 openSupportSheet(读取后台 customer_service 配置的客服微信/热线) - 保留派单实时通知与雷达/大厅轮询 - 114 套件/742 用例全绿;聊天接口线上已 404
这个提交包含在:
@@ -80,7 +80,7 @@
|
||||
</view>
|
||||
<text class="creator-sub">同城组局召集人</text>
|
||||
</view>
|
||||
<button class="btn-chat btn-active" @click.stop="chatWithHost">私聊</button>
|
||||
<button class="btn-chat btn-active" @click.stop="openSupportSheet">联系客服</button>
|
||||
</view>
|
||||
|
||||
<view class="info-list">
|
||||
@@ -422,6 +422,7 @@ import {
|
||||
normalizeUserId
|
||||
} 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';
|
||||
import { preloadSubscribeTemplates, requestSubscribeFor } from '@/common/subscribe.js';
|
||||
@@ -711,34 +712,6 @@ const openHostProfile = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const chatWithHost = () => {
|
||||
uni.showActionSheet({
|
||||
itemList: [
|
||||
'复制组局信息',
|
||||
'查看发起人主页'
|
||||
],
|
||||
success: (res) => {
|
||||
if (res.tapIndex === 0) {
|
||||
const parts = [
|
||||
`【组局】${activity.value.title || ''}`,
|
||||
`时间:${activity.value.startTime || '待定'}`,
|
||||
`地点:${activity.value.location || '待定'}`
|
||||
];
|
||||
const contact = String(activity.value.contactPhone || '').trim();
|
||||
if (contact) parts.push(`联络方式:${contact}`);
|
||||
uni.setClipboardData({
|
||||
data: parts.join(' | '),
|
||||
success: () => {
|
||||
uni.showToast({ title: '组局信息已复制', icon: 'success' });
|
||||
}
|
||||
});
|
||||
} else if (res.tapIndex === 1) {
|
||||
openHostProfile();
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const goToMyTicket = (code) => {
|
||||
if (!ensureLoginOrRedirect(`/pages/activity/detail?id=${currentActId.value}`)) {
|
||||
return;
|
||||
|
||||
在新工单中引用
屏蔽一个用户