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 7ad15ec..89ef64a 100644 --- a/pages/home/customer-archive.vue +++ b/pages/home/customer-archive.vue @@ -183,7 +183,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 ea16ddb..7e49509 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -8,7 +8,7 @@ - + + @@ -103,8 +105,8 @@ function select(team) { function toTeamDetail() { if (props.team && props.team.teamId) { - uni.navigateTo({ - url: `/pages/team/team-detail?teamId=${props.team.teamId}&corpId=${props.team.corpId}&corpName=${encodeURIComponent(props.team.corpName || '')}` + uni.navigateTo({ + url: `/pages/team/team-detail?teamId=${props.team.teamId}&corpId=${props.team.corpId}&corpName=${encodeURIComponent(props.team.corpName || '')}` }); } } @@ -190,11 +192,32 @@ onMounted(() => { overflow: visible; } +.team-introduce-border { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + border: 1px solid #fff; + border-radius: 16rpx; + pointer-events: none; + -webkit-mask-image: linear-gradient(to right, #000 0, #000 50rpx, transparent 50rpx, transparent 70rpx, #000 70rpx), + linear-gradient(#000, #000); + mask-image: linear-gradient(to right, #000 0, #000 50rpx, transparent 50rpx, transparent 70rpx, #000 70rpx), + linear-gradient(#000, #000); + -webkit-mask-size: 100% 1px, 100% 100%; + mask-size: 100% 1px, 100% 100%; + -webkit-mask-position: 0 0, 0 1px; + mask-position: 0 0, 0 1px; + -webkit-mask-repeat: no-repeat; + mask-repeat: no-repeat; +} + .triangle-wrapper { position: absolute; top: -12rpx; left: 60rpx; - width: 24rpx; + width: 32rpx; height: 12rpx; overflow: hidden; z-index: 10; @@ -204,13 +227,16 @@ onMounted(() => { .team-triangle { position: absolute; left: 50%; - bottom: -10rpx; + bottom: -9rpx; width: 16rpx; height: 16rpx; background: linear-gradient(186deg, rgba(255, 255, 255, 0.4) 13.34%, rgba(255, 255, 255, 0.6) 99.17%); transform: translateX(-50%) rotate(45deg); + border-top: 1px solid #fff; + border-left: 1px solid #fff; + box-sizing: border-box; } .introduce-text { 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 || '暂无联系电话' }}