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 || '暂无联系电话' }}