Update index.vue

This commit is contained in:
huxuejian 2026-10-15 18:33:02 +08:00
parent bf6106184d
commit aae91ddd91

View File

@ -72,7 +72,7 @@
}"> }">
<text class="username-text">{{ <text class="username-text">{{
chatMember[message.from]?.name chatMember[message.from]?.name
}}</text> }}</text>
</view> </view>
<view class="message-bubble" :class="getBubbleClass(message)"> <view class="message-bubble" :class="getBubbleClass(message)">
@ -1019,6 +1019,9 @@ const handleApplyConsult = async () => {
if (!groupInfo.success || !groupInfo.data) { if (!groupInfo.success || !groupInfo.data) {
throw new Error("获取群组信息失败"); throw new Error("获取群组信息失败");
} }
if (groupInfo.data.disabled) {
throw new Error("当前聊天已关闭, 请重新发起咨询");
}
const customerId = groupInfo.data.customerId; const customerId = groupInfo.data.customerId;
const groupCorpId = groupInfo.data.corpId; const groupCorpId = groupInfo.data.corpId;
@ -1033,6 +1036,7 @@ const handleApplyConsult = async () => {
corpId: groupCorpId || corpId.value, corpId: groupCorpId || corpId.value,
customerId: customerId, customerId: customerId,
customerImUserId: openid.value, customerImUserId: openid.value,
groupId: groupId.value,
}); });
uni.hideLoading(); uni.hideLoading();