|
@@ -0,0 +1,88 @@
|
|
|
+<template>
|
|
|
+ <RecommendProjectCard
|
|
|
+ titleIcon="icon-flexible-selection"
|
|
|
+ v-if="recommendList.length > 0"
|
|
|
+ :title="recommendMap.title"
|
|
|
+ :totalNumber="recommendMap.total"
|
|
|
+ :showMore="recommendMap.more"
|
|
|
+ :showMask="recommendMap.popup"
|
|
|
+ :list="recommendList"
|
|
|
+ :maskConf="maskConf"
|
|
|
+ @toDetail="toDetail"
|
|
|
+ @toMore="toMore"
|
|
|
+ @maskLearnMore="maskLearnMore"
|
|
|
+ @maskConfirmButtonClick="maskConfirmButtonClick"
|
|
|
+ />
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import RecommendProjectCard from '@/views/article/components/RecommendProjectCard.vue'
|
|
|
+import { mapState } from 'vuex'
|
|
|
+import { LINKS } from '@/data'
|
|
|
+import { openAppOrWxPage } from '@/utils/'
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'ContentBusinessRecommendProject',
|
|
|
+ components: {
|
|
|
+ RecommendProjectCard
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ maskConf: {
|
|
|
+ title: '大会员权益',
|
|
|
+ serviceNameText: '项目提前介入,中标更轻松',
|
|
|
+ serviceDescText:
|
|
|
+ '提前1-3个月获取项目采购计划,获取采购内容、预算金额、预计采购时间等,提前运作提高中标率。',
|
|
|
+ plainButtonShow: false,
|
|
|
+ confirmButtonText: '免费体验'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState({
|
|
|
+ // 推荐项目
|
|
|
+ recommendMap: (state) => state.article.expandModel.recommendProjects
|
|
|
+ }),
|
|
|
+ recommendList() {
|
|
|
+ const list = this.recommendMap?.list
|
|
|
+ if (Array.isArray(list)) {
|
|
|
+ return list
|
|
|
+ } else {
|
|
|
+ return []
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ toDetail(item) {
|
|
|
+ // 进入标讯详情页
|
|
|
+ this.$router.push({
|
|
|
+ path: `/article/content/${item.id}.html`
|
|
|
+ })
|
|
|
+ },
|
|
|
+ toMore() {
|
|
|
+ if (this.recommendMap.popup) {
|
|
|
+ this.maskConfirmButtonClick()
|
|
|
+ } else {
|
|
|
+ // 带入筛选条件?
|
|
|
+ this.$router.push({
|
|
|
+ path: '/search/result/bidding',
|
|
|
+ query: {
|
|
|
+ searchGroup: 2
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ maskLearnMore() {
|
|
|
+ openAppOrWxPage(LINKS.大会员落地页面)
|
|
|
+ },
|
|
|
+ maskConfirmButtonClick() {
|
|
|
+ openAppOrWxPage(LINKS.留资, {
|
|
|
+ query: {
|
|
|
+ source: `${this.$env.platform}_article_cqxmmore`
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped></style>
|