From f4e2f87b6ea701304e55bbf5216cc5d7f14528d7 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Fri, 6 Feb 2026 17:20:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/consult.vue | 27 ++++++++++++--------------- pages/home/customer-archive.vue | 1 - pages/home/home.vue | 2 +- pages/team/homepage.vue | 4 ++-- 4 files changed, 15 insertions(+), 19 deletions(-) diff --git a/pages/home/consult.vue b/pages/home/consult.vue index 4e7fe79..103cf6a 100644 --- a/pages/home/consult.vue +++ b/pages/home/consult.vue @@ -3,12 +3,7 @@ 咨询互动 - + @@ -17,14 +12,8 @@ - + @@ -41,6 +30,10 @@ const props = defineProps({ type: String, default: "", }, + team: { + type: Object, + default: () => ({}) + }, teamId: { type: String, default: "", @@ -84,6 +77,10 @@ const consultItems = ref([ function handleItemClick(item) { // 聊天咨询需要选择咨询人 if (item.needSelectConsultant) { + if (!props.team || !props.team.creator) { + return toast('该团队暂未开放咨询服务') + } + if (!props.customers || props.customers.length === 0) { toast("请先添加档案"); // 跳转到档案管理页面 @@ -121,7 +118,7 @@ async function handleConsultantConfirm(customer) { const res = await api("createConsultGroup", { teamId: props.teamId, corpId: props.corpId, - customerId: customer._id, + customerId: customer._id, customerImUserId: account.value.openid, }); uni.hideLoading(); diff --git a/pages/home/customer-archive.vue b/pages/home/customer-archive.vue index 59e700e..f3dae7b 100644 --- a/pages/home/customer-archive.vue +++ b/pages/home/customer-archive.vue @@ -170,7 +170,6 @@ const baseInfo = computed(() => ); const baseInfoError = computed(() => { const requiredTitles = baseInfo.value - .filter((i) => i.required) .map((i) => i.title); return current.value && requiredTitles.some((i) => !current.value[i]); }); diff --git a/pages/home/home.vue b/pages/home/home.vue index ecd7106..401a57f 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -8,7 +8,7 @@ - + diff --git a/pages/team/homepage.vue b/pages/team/homepage.vue index 3e5826a..9e30862 100644 --- a/pages/team/homepage.vue +++ b/pages/team/homepage.vue @@ -36,8 +36,8 @@ 对外联系电话 - - {{ member.callNumber || '暂无联系电话' }} + + {{ member.externalContact || '暂无联系电话' }}