|
@@ -4,12 +4,16 @@ import useExpandModel from '@jy/data-models/modules/article/model/expand'
|
|
import { appStorage } from '@/utils/storage'
|
|
import { appStorage } from '@/utils/storage'
|
|
|
|
|
|
import {
|
|
import {
|
|
|
|
+ ajaxGetContentInfoGuideKeys,
|
|
getArticleAdvancedInfo,
|
|
getArticleAdvancedInfo,
|
|
getArticleBaseInfo,
|
|
getArticleBaseInfo,
|
|
getArticlePreAgentInfo
|
|
getArticlePreAgentInfo
|
|
} from '@/api/modules/article'
|
|
} from '@/api/modules/article'
|
|
|
|
+import { reactive } from 'vue'
|
|
|
|
|
|
-const { model: mainModel, transformModel: contentTransform } = useContentModel()
|
|
|
|
|
|
+const contentModelData = useContentModel()
|
|
|
|
+const Content = reactive(contentModelData)
|
|
|
|
+const { model: mainModel, transformModel: contentTransform } = Content
|
|
const { model: expandModel, transformModel: expandTransform } = useExpandModel()
|
|
const { model: expandModel, transformModel: expandTransform } = useExpandModel()
|
|
|
|
|
|
const CACHE_HISTORY_KEY = 'MOBILE_ARTICLE_CONTENT'
|
|
const CACHE_HISTORY_KEY = 'MOBILE_ARTICLE_CONTENT'
|
|
@@ -262,6 +266,20 @@ export default {
|
|
},
|
|
},
|
|
async getBaseInfo({ commit, state }) {
|
|
async getBaseInfo({ commit, state }) {
|
|
const { preAgentInfo } = state
|
|
const { preAgentInfo } = state
|
|
|
|
+ try {
|
|
|
|
+ await ajaxGetContentInfoGuideKeys().then(res => {
|
|
|
|
+ if (res?.error_code === 0 && res?.data) {
|
|
|
|
+ const guideKeys = res.data?.matchKeys?.split(',') || []
|
|
|
|
+ const guideTip = res.data?.loginCw || '获取投标企业信用报告,展示投标实力'
|
|
|
|
+ Content.addGuideKey('企业信用报告引流', guideKeys, function ({ buyer }) {
|
|
|
|
+ const guideLink = '/jy_mobile/common/pdfview?source=bidCreditReportPreview&buyer=' + buyer
|
|
|
|
+ return `<span>$1 <a class='highlight-text keyword-underline report-preview-highlight-guide' href='${guideLink}'>${guideTip}</a> </span>`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } catch (e) {
|
|
|
|
+ console.warn(e)
|
|
|
|
+ }
|
|
try {
|
|
try {
|
|
const {
|
|
const {
|
|
error_code: code,
|
|
error_code: code,
|