|
@@ -6,7 +6,8 @@
|
|
:class="{ 'bg-white': reqState.loading }"
|
|
:class="{ 'bg-white': reqState.loading }"
|
|
:loading="reqState.loading"
|
|
:loading="reqState.loading"
|
|
>
|
|
>
|
|
- <div class="j-container page-container">
|
|
|
|
|
|
+ <Error v-if="isError" :error-text="errorText"></Error>
|
|
|
|
+ <div v-else class="j-container page-container">
|
|
<div
|
|
<div
|
|
class="j-main article-content-main"
|
|
class="j-main article-content-main"
|
|
:class="{ 'show-underline': otherModel.hasProject }"
|
|
:class="{ 'show-underline': otherModel.hasProject }"
|
|
@@ -172,6 +173,7 @@ import FreeUserAdvancedMask from '@/views/article/components/FreeUserAdvancedMas
|
|
import ThirdPartyVerifyPopup from '@/views/article/components/ThirdPartyVerifyPopup.vue'
|
|
import ThirdPartyVerifyPopup from '@/views/article/components/ThirdPartyVerifyPopup.vue'
|
|
import CheckUserDialog from '@/views/identity/components/CheckUserDialog'
|
|
import CheckUserDialog from '@/views/identity/components/CheckUserDialog'
|
|
import CustomerCorner from '@/components/customer/index'
|
|
import CustomerCorner from '@/components/customer/index'
|
|
|
|
+import Error from '@/views/article/components/Error.vue'
|
|
import { throttle } from 'lodash'
|
|
import { throttle } from 'lodash'
|
|
import { mapState, mapMutations, mapActions, mapGetters } from 'vuex'
|
|
import { mapState, mapMutations, mapActions, mapGetters } from 'vuex'
|
|
import { getArticleShareInfo, getContentShareEncrypt } from '@/api/modules/article'
|
|
import { getArticleShareInfo, getContentShareEncrypt } from '@/api/modules/article'
|
|
@@ -204,7 +206,8 @@ export default {
|
|
NpsCard,
|
|
NpsCard,
|
|
TabActions,
|
|
TabActions,
|
|
AdSingle,
|
|
AdSingle,
|
|
- CustomerCorner
|
|
|
|
|
|
+ CustomerCorner,
|
|
|
|
+ Error
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -274,7 +277,9 @@ export default {
|
|
id: '',
|
|
id: '',
|
|
tabActive: ''
|
|
tabActive: ''
|
|
},
|
|
},
|
|
- scrollStatus: true
|
|
|
|
|
|
+ scrollStatus: true,
|
|
|
|
+ isError: false,
|
|
|
|
+ errorText: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -382,9 +387,19 @@ export default {
|
|
} else {
|
|
} else {
|
|
try {
|
|
try {
|
|
await this.getPreAgentInfo()
|
|
await this.getPreAgentInfo()
|
|
- const r = await this.getBaseInfo()
|
|
|
|
- if (r) {
|
|
|
|
|
|
+ const { data, msg } = await this.getBaseInfo()
|
|
|
|
+ if (data) {
|
|
this.finishLoading()
|
|
this.finishLoading()
|
|
|
|
+ } else {
|
|
|
|
+ this.finishLoading()
|
|
|
|
+ this.isError = true
|
|
|
|
+ // 无效参数 = d解析错误
|
|
|
|
+ // 未查到当前招标信息 = 文章不存在
|
|
|
|
+ if (msg.includes('未查到当前招标信息')) {
|
|
|
|
+ this.errorText = '由于相关部门要求,该信息已下架,敬请原谅'
|
|
|
|
+ } else {
|
|
|
|
+ this.errorText = '该页面信息不存在'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.error(error)
|
|
console.error(error)
|