|
@@ -16,6 +16,7 @@ import CollectInfo from '@/components/collect-info/CollectInfo.vue'
|
|
|
import Reward from '@/views/article-content/components/Reward.vue'
|
|
|
import TimeLine from '@/components/time-line/TimeLine.vue'
|
|
|
import ContentMask from '@/views/article-content/components/ContentMask.vue'
|
|
|
+import ContentTextMask from '@/views/article-content/components/ContentTextMask.vue'
|
|
|
import Nps from '../components/Nps.vue'
|
|
|
import adsense from '@/views/order/components/adsense/index.vue'
|
|
|
import ContentLayout from '@/components/common/ContentLayout.vue'
|
|
@@ -32,6 +33,7 @@ import {
|
|
|
ContentModel,
|
|
|
ContentId,
|
|
|
IsCustomTopNet,
|
|
|
+ IsSunPublishContent,
|
|
|
ContentPageLoading,
|
|
|
ContentPageExpandsLoading,
|
|
|
SummaryModel,
|
|
@@ -115,6 +117,12 @@ const tabContentShow = computed(() => {
|
|
|
computedState['投标服务'] = false
|
|
|
computedState['客户推荐'] = false
|
|
|
}
|
|
|
+ // 阳关采购隐藏以下3个模块
|
|
|
+ if (IsSunPublishContent.value) {
|
|
|
+ computedState['商机推荐'] = false
|
|
|
+ computedState['客户推荐'] = false
|
|
|
+ computedState['投标服务'] = false
|
|
|
+ }
|
|
|
const result = Object.assign({}, tabContentState.value, computedState)
|
|
|
handleScroll()
|
|
|
return result
|
|
@@ -125,6 +133,14 @@ const tabContentHeaderList = computed(() => {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+const showSelfSiteTip = computed(() => {
|
|
|
+ if (IsSunPublishContent.value) {
|
|
|
+ return false
|
|
|
+ } else {
|
|
|
+ return ContentModel.isSelfSite
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
function doHideTabContent(label) {
|
|
|
tabContentState.value[label] = false
|
|
|
}
|
|
@@ -171,6 +187,13 @@ const timeLineList = computed(() => {
|
|
|
)
|
|
|
})
|
|
|
|
|
|
+const showRightTimeLine = computed(() => {
|
|
|
+ if (IsSunPublishContent.value) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return timeLineList.value.length > 0
|
|
|
+})
|
|
|
+
|
|
|
const isFixedHeader = ref(false)
|
|
|
|
|
|
const handleScroll = throttle((e) => {
|
|
@@ -268,15 +291,23 @@ function doOpenCustomer() {
|
|
|
}
|
|
|
// 是否显示遮罩
|
|
|
const canShowMask = computed(() => {
|
|
|
- let type = 'free-max'
|
|
|
- if (ContentModel.value.isNiJian) {
|
|
|
- type = 'proposed'
|
|
|
- } else if (ContentModel.value.isCaigouyixiang) {
|
|
|
- type = 'purchase'
|
|
|
- }
|
|
|
- return {
|
|
|
- show: !ContentModel.value.isCanRead,
|
|
|
- type: type
|
|
|
+ if (IsSunPublishContent.value) {
|
|
|
+ return {
|
|
|
+ show: false,
|
|
|
+ contentMaskShow: !ContentModel.value.isCanRead,
|
|
|
+ type: 'content-mask'
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ let type = 'free-max'
|
|
|
+ if (ContentModel.value.isNiJian) {
|
|
|
+ type = 'proposed'
|
|
|
+ } else if (ContentModel.value.isCaigouyixiang) {
|
|
|
+ type = 'purchase'
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ show: !ContentModel.value.isCanRead,
|
|
|
+ type: type
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -431,7 +462,7 @@ function doClickFreeView() {
|
|
|
|
|
|
<div v-if="!canShowMask.show">
|
|
|
<!-- 顶部提示 -->
|
|
|
- <div class="content-header-tip" v-if="ContentModel.isSelfSite">
|
|
|
+ <div class="content-header-tip" v-if="showSelfSiteTip">
|
|
|
<span>
|
|
|
该公告由业主方/采购单位直接发布,急寻供应商,立即报名直接联系业主方/采购单位参与投标采购。
|
|
|
</span>
|
|
@@ -486,38 +517,54 @@ function doClickFreeView() {
|
|
|
v-if="tabContentShow['公告正文']"
|
|
|
>
|
|
|
<div
|
|
|
- class="content-main-container"
|
|
|
- :data-content="canAddContentMainEvent"
|
|
|
- >
|
|
|
- <div class="content-block-header">公告正文</div>
|
|
|
- <div
|
|
|
- class="content-detail-container"
|
|
|
- v-event-listener:click="doClickFreeView"
|
|
|
- data-event-selector=".free-view"
|
|
|
- >
|
|
|
- <pre v-html="ContentModel.contentHighlighted"></pre>
|
|
|
- </div>
|
|
|
-
|
|
|
- <el-button
|
|
|
- v-if="ContentModel.originalShow"
|
|
|
- class="origin-detail-action"
|
|
|
- @click="doOpenOriginLink"
|
|
|
+ class="content-main-container"
|
|
|
+ :data-content="canAddContentMainEvent"
|
|
|
>
|
|
|
- <span class="iconfont icon-chakanyuanwen"></span>
|
|
|
- 查看原文链接
|
|
|
- </el-button>
|
|
|
-
|
|
|
- <div>
|
|
|
- <attachment-download
|
|
|
- :id="ContentId"
|
|
|
- :title="ContentModel.title"
|
|
|
- :attachment-list="ContentModel.attachments"
|
|
|
- @doOpenCollect="doOpenCollectDialog"
|
|
|
- ></attachment-download>
|
|
|
+ <div class="content-block-header">公告正文</div>
|
|
|
+
|
|
|
+ <template v-if="canShowMask.contentMaskShow">
|
|
|
+ <div class="content-mask-container">
|
|
|
+ <ContentTextMask />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div
|
|
|
+ class="content-detail-container"
|
|
|
+ v-event-listener:click="doClickFreeView"
|
|
|
+ data-event-selector=".free-view"
|
|
|
+ >
|
|
|
+ <pre v-html="ContentModel.contentHighlighted"></pre>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="origin-detail-action-container">
|
|
|
+ <el-button
|
|
|
+ v-if="ContentModel.originalShow"
|
|
|
+ class="origin-detail-action"
|
|
|
+ @click="doOpenOriginLink"
|
|
|
+ >
|
|
|
+ <span class="iconfont icon-chakanyuanwen"></span>
|
|
|
+ 查看原文链接
|
|
|
+ </el-button>
|
|
|
+
|
|
|
+ <span class="origin-link-suffix">
|
|
|
+ <span>由于该企业要求必须入库供应商才可以参与报价,请点击入库链接,进行入库申请</span>
|
|
|
+ <button class="origin-link-button" @click="doOpenOriginLink">点击入库</button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <attachment-download
|
|
|
+ :id="ContentId"
|
|
|
+ :title="ContentModel.title"
|
|
|
+ :attachment-list="ContentModel.attachments"
|
|
|
+ @doOpenCollect="doOpenCollectDialog"
|
|
|
+ ></attachment-download>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <Reward :id="ContentId" />
|
|
|
+ </template>
|
|
|
</div>
|
|
|
-
|
|
|
- <Reward :id="ContentId" />
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- nps评分 -->
|
|
@@ -609,7 +656,7 @@ function doClickFreeView() {
|
|
|
:id="ContentId"
|
|
|
@click-collect="doOpenCollectDialog"
|
|
|
></origin-link>
|
|
|
- <template #right-top v-if="timeLineList.length > 0">
|
|
|
+ <template #right-top v-if="showRightTimeLine">
|
|
|
<!-- 招标/采购进度 -->
|
|
|
<content-right-time-line
|
|
|
:content-id="ContentId"
|