From 3963587535f9de516228a4300f10a67728234485 Mon Sep 17 00:00:00 2001 From: Jafeng <2998840497@qq.com> Date: Fri, 6 Feb 2026 10:54:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/article/article-cate-list.vue | 77 ++++++++++++++++++----------- pages/home/article-list.vue | 22 +++------ pages/home/team-head.vue | 34 +++++++++++-- 3 files changed, 86 insertions(+), 47 deletions(-) diff --git a/pages/article/article-cate-list.vue b/pages/article/article-cate-list.vue index 97ed96b..421ad22 100644 --- a/pages/article/article-cate-list.vue +++ b/pages/article/article-cate-list.vue @@ -1,22 +1,14 @@ @@ -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 || '暂无联系电话' }}