|
@@ -50,6 +50,28 @@ const contentTabs = [
|
|
|
}
|
|
|
]
|
|
|
|
|
|
+const tabContentState = ref({
|
|
|
+ 公告摘要: true,
|
|
|
+ 公告正文: true,
|
|
|
+ '招标/采购进度': true,
|
|
|
+ 投标服务: true,
|
|
|
+ 商机推荐: true,
|
|
|
+ 客户推荐: true
|
|
|
+})
|
|
|
+
|
|
|
+const tabContentShow = computed(() => {
|
|
|
+ return tabContentState.value
|
|
|
+})
|
|
|
+const tabContentHeaderList = computed(() => {
|
|
|
+ return contentTabs.filter((v) => {
|
|
|
+ return tabContentState.value[v.label]
|
|
|
+ })
|
|
|
+})
|
|
|
+
|
|
|
+function doHideTabContent(label) {
|
|
|
+ tabContentState.value[label] = false
|
|
|
+}
|
|
|
+
|
|
|
function scrollToTop(element, diff = 0) {
|
|
|
if (element) {
|
|
|
const topOffset = element.getBoundingClientRect().top + window.pageYOffset
|
|
@@ -135,6 +157,9 @@ const originLinkElement = ref(null)
|
|
|
function doOpenOriginLink() {
|
|
|
originLinkElement.value?.doGetLinkAction()
|
|
|
}
|
|
|
+
|
|
|
+// 客户推荐
|
|
|
+function doOpenMore(key) {}
|
|
|
</script>
|
|
|
<template>
|
|
|
<ContentLayout :need-ad="true">
|
|
@@ -157,7 +182,7 @@ function doOpenOriginLink() {
|
|
|
<div
|
|
|
class="content-tab-label"
|
|
|
:class="{ 'is-active': item.label === activeContentTab }"
|
|
|
- v-for="item in contentTabs"
|
|
|
+ v-for="item in tabContentHeaderList"
|
|
|
:key="item.label"
|
|
|
@click="doSelectTab(item)"
|
|
|
>
|
|
@@ -168,7 +193,7 @@ function doOpenOriginLink() {
|
|
|
<div
|
|
|
class="content-tab-label"
|
|
|
:class="{ 'is-active': item.label === activeContentTab }"
|
|
|
- v-for="item in contentTabs"
|
|
|
+ v-for="item in tabContentHeaderList"
|
|
|
:key="item.label"
|
|
|
@click="doSelectTab(item)"
|
|
|
>
|
|
@@ -311,9 +336,22 @@ function doOpenOriginLink() {
|
|
|
<recommend-opportunities></recommend-opportunities>
|
|
|
</div>
|
|
|
|
|
|
- <div class="content-card watch-tab-content" name="客户推荐">
|
|
|
- <div class="content-block-header">客户推荐</div>
|
|
|
- <recommend-customers-list />
|
|
|
+ <div
|
|
|
+ class="content-card watch-tab-content"
|
|
|
+ name="客户推荐"
|
|
|
+ v-if="tabContentShow['客户推荐']"
|
|
|
+ >
|
|
|
+ <div class="flex flex-(row items-center justify-between)">
|
|
|
+ <div class="content-block-header">客户推荐</div>
|
|
|
+ <span
|
|
|
+ class="more-text"
|
|
|
+ v-if="ContentExpandsModel.recommendCustomers.more"
|
|
|
+ @click="doOpenMore('recommendCustomers')"
|
|
|
+ >
|
|
|
+ 查看更多 <i class="iconfont icon-more"></i>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <recommend-customers-list @doHide="doHideTabContent('客户推荐')" />
|
|
|
</div>
|
|
|
|
|
|
<Nps></Nps>
|