|
@@ -10,7 +10,7 @@
|
|
|
>
|
|
|
</div>
|
|
|
<div class="card-row">
|
|
|
- <div class="card-col" v-for="item in cardList">
|
|
|
+ <div class="card-col" v-for="item in cardList" :key="item.type">
|
|
|
<p class="title">{{ item.title }}</p>
|
|
|
<div class="num">
|
|
|
<span
|
|
@@ -26,14 +26,80 @@
|
|
|
</div>
|
|
|
<p class="date">
|
|
|
<span v-if="item.total">最近有效期至:{{ item.minEndTime }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
<span class="text-button" @click="goBalance(item)"
|
|
|
>查明细<i class="iconfont icon-more"></i
|
|
|
></span>
|
|
|
</p>
|
|
|
</div>
|
|
|
+ <div class="card-col card-zhi-ma">
|
|
|
+ <img
|
|
|
+ class="jy-zhima-logo"
|
|
|
+ src="@/assets/images/logo/jy-zhima-logo.png"
|
|
|
+ height="20"
|
|
|
+ />
|
|
|
+ <p class="flex items-center justify-between">
|
|
|
+ <span class="zhi-ma-title">芝麻信用共建分析报告</span>
|
|
|
+ <!-- <template>
|
|
|
+ <span v-if="zhiMaReportInfo.isFree" class="free-buy-btn">去开通</span>
|
|
|
+ </template> -->
|
|
|
+ <span
|
|
|
+ v-if="zhiMaReportInfo.packType"
|
|
|
+ class="member-type"
|
|
|
+ :class="packageClassName"
|
|
|
+ >{{ packageText }}<i class="vip-icon">VIP</i></span
|
|
|
+ >
|
|
|
+ <span v-else class="free-buy-btn" @click="goBuyAnalysisReport"
|
|
|
+ >去购买</span
|
|
|
+ >
|
|
|
+ </p>
|
|
|
+ <p
|
|
|
+ v-if="!zhiMaReportInfo.packType || zhiMaReportInfo.packType < 0"
|
|
|
+ class="zhi-ma-desc m-t-8px"
|
|
|
+ >
|
|
|
+ 信用报告通过信用背书、风险预警、政策适配,三大核心作用。
|
|
|
+ </p>
|
|
|
+ <div class="package-num" v-if="zhiMaReportInfo.packType">
|
|
|
+ <span>
|
|
|
+ 本月余额
|
|
|
+ <strong>{{ zhiMaReportInfo.balance }}</strong>
|
|
|
+ 份/{{ zhiMaReportInfo.total }}份
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="flex items-center justify-between m-t-10px">
|
|
|
+ <div class="zhi-ma-tip">
|
|
|
+ <span
|
|
|
+ v-if="zhiMaReportInfo.expiredText"
|
|
|
+ class="light-gray-text"
|
|
|
+ >{{ zhiMaReportInfo.expiredText }}</span
|
|
|
+ >
|
|
|
+ <span v-if="zhiMaReportInfo.firstText" class="highlight-text">{{
|
|
|
+ zhiMaReportInfo.firstText
|
|
|
+ }}</span>
|
|
|
+ <!-- <span v-if="zhiMaReportInfo.isFree" class="highlight-text">开通权益卡更优惠</span> -->
|
|
|
+ <span v-if="zhiMaReportInfo.endTime" class="light-gray-text"
|
|
|
+ >有效期至:{{ zhiMaReportInfo.endTime }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <ReportExample v-if="zhiMaReportInfo.firstText">
|
|
|
+ <span slot="reference" class="view-report-sample"
|
|
|
+ >查看报告样例<i class="iconfont icon-more"></i
|
|
|
+ ></span>
|
|
|
+ </ReportExample>
|
|
|
+ <span
|
|
|
+ v-else
|
|
|
+ class="text-button"
|
|
|
+ @click="goBalance(zhiMaReportInfo)"
|
|
|
+ >查明细<i class="iconfont icon-more"></i
|
|
|
+ ></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</section>
|
|
|
- <section
|
|
|
+ <!-- <section
|
|
|
class="flex flex-(justify-between items-center) analysis-report-box"
|
|
|
>
|
|
|
<div class="flex flex-items-center analysis-report-content">
|
|
@@ -44,7 +110,6 @@
|
|
|
/>
|
|
|
<img class="zhima-logo" src="@/assets/images/logo/zhima-logo.png" />
|
|
|
<p class="analysis-report-name">芝麻信用共建分析报告</p>
|
|
|
- <!-- <p class="analysis-report-desc">简介</p> -->
|
|
|
</div>
|
|
|
<div class="flex flex-items-center report-action">
|
|
|
<ReportExample>
|
|
@@ -55,7 +120,7 @@
|
|
|
去购买
|
|
|
</button>
|
|
|
</div>
|
|
|
- </section>
|
|
|
+ </section> -->
|
|
|
<section class="flex flex-(justify-between items-center) credit-report-box">
|
|
|
<div class="flex flex-items-center credit-report-content">
|
|
|
<p class="credit-report-title">投标企业信用报告</p>
|
|
@@ -414,7 +479,8 @@ import {
|
|
|
formatIndustry,
|
|
|
formatBuyerClass,
|
|
|
scrollTargetView,
|
|
|
- openLinkInWorkspace
|
|
|
+ openLinkInWorkspace,
|
|
|
+ dateFormatter
|
|
|
} from '@/utils/'
|
|
|
|
|
|
export default {
|
|
@@ -466,6 +532,16 @@ export default {
|
|
|
5: '项目分析报告',
|
|
|
6: '供应商分析报告',
|
|
|
7: '采购单位分析报告'
|
|
|
+ },
|
|
|
+ zhiMaReportInfo: {
|
|
|
+ flag: 'analysis',
|
|
|
+ id: 4,
|
|
|
+ firstText: '',
|
|
|
+ expiredText: '',
|
|
|
+ packType: 0,
|
|
|
+ total: 20,
|
|
|
+ balance: 0,
|
|
|
+ endTime: ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -600,6 +676,38 @@ export default {
|
|
|
...mapGetters('user', ['isMember']),
|
|
|
showEmpty() {
|
|
|
return this.listState.list.length === 0 && this.listState.loaded
|
|
|
+ },
|
|
|
+ packageText() {
|
|
|
+ let text = ''
|
|
|
+ const type = this.zhiMaReportInfo.packType
|
|
|
+ switch (type) {
|
|
|
+ case 1:
|
|
|
+ text = '月卡'
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ text = '季卡'
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ text = '年卡'
|
|
|
+ break
|
|
|
+ }
|
|
|
+ return text
|
|
|
+ },
|
|
|
+ packageClassName() {
|
|
|
+ let className = ''
|
|
|
+ const type = this.zhiMaReportInfo.packType
|
|
|
+ switch (type) {
|
|
|
+ case 1:
|
|
|
+ className = 'member-month'
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ className = 'member-season'
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ className = 'member-year'
|
|
|
+ break
|
|
|
+ }
|
|
|
+ return className
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -732,6 +840,22 @@ export default {
|
|
|
item.minEndTime = data[item.type].minEndTime
|
|
|
}
|
|
|
}
|
|
|
+ if (data?.zhima) {
|
|
|
+ const {
|
|
|
+ balance,
|
|
|
+ total,
|
|
|
+ pack_type,
|
|
|
+ minEndTime,
|
|
|
+ firstMsg,
|
|
|
+ expiredMsg
|
|
|
+ } = data.zhima
|
|
|
+ this.zhiMaReportInfo.balance = balance
|
|
|
+ this.zhiMaReportInfo.total = total
|
|
|
+ this.zhiMaReportInfo.packType = pack_type
|
|
|
+ this.zhiMaReportInfo.firstText = firstMsg
|
|
|
+ this.zhiMaReportInfo.expiredText = expiredMsg
|
|
|
+ this.zhiMaReportInfo.endTime = dateFormatter(minEndTime, 'yyyy-MM-dd')
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 立即充值
|
|
@@ -856,14 +980,15 @@ $char_color: #1d1d1d;
|
|
|
margin: 24px 0 16px;
|
|
|
padding: 12px 24px 32px;
|
|
|
.card-row {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: 1fr 1fr 1fr;
|
|
|
- grid-column-gap: 24px;
|
|
|
+ display: flex;
|
|
|
+ //grid-template-columns: 1fr 1fr 1fr;
|
|
|
+ grid-column-gap: 16px;
|
|
|
}
|
|
|
.card-col {
|
|
|
+ flex: 1;
|
|
|
background: url(~@/assets/images/report/balance-bg.png) no-repeat center;
|
|
|
background-size: cover;
|
|
|
- padding: 24px 32px;
|
|
|
+ padding: 16px 20px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
|
|
|
font-size: 16px;
|
|
@@ -879,16 +1004,83 @@ $char_color: #1d1d1d;
|
|
|
margin-right: 11px;
|
|
|
}
|
|
|
}
|
|
|
+ .package-num {
|
|
|
+ strong {
|
|
|
+ font-size: 40px;
|
|
|
+ color: #1d1d1d;
|
|
|
+ }
|
|
|
+ > span {
|
|
|
+ color: #686868;
|
|
|
+ margin-right: 11px;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
.date {
|
|
|
font-size: 14px;
|
|
|
color: #999;
|
|
|
line-height: 22px;
|
|
|
+ white-space: nowrap;
|
|
|
|
|
|
span:nth-of-type(1) {
|
|
|
margin-right: 12px;
|
|
|
}
|
|
|
}
|
|
|
+ &.card-zhi-ma {
|
|
|
+ background: linear-gradient(180deg, #e4fcff 0%, #ffffff 122.96%);
|
|
|
+ border: 2px solid #ffffff;
|
|
|
+ box-shadow: 0px 4px 8px 0px #00000014;
|
|
|
+ .jy-zhima-logo {
|
|
|
+ margin-bottom: 8px;
|
|
|
+ }
|
|
|
+ .zhi-ma-title {
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 24px;
|
|
|
+ color: #1d1d1d;
|
|
|
+ }
|
|
|
+ .zhi-ma-desc {
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 18px;
|
|
|
+ color: #686868;
|
|
|
+ }
|
|
|
+ .zhi-ma-tip {
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 22px;
|
|
|
+ }
|
|
|
+ .free-buy-btn {
|
|
|
+ padding: 2px 8px;
|
|
|
+ background: $color_main;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 18px;
|
|
|
+ color: #fff;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .member-type {
|
|
|
+ padding: 4px 8px;
|
|
|
+ font-size: 13px;
|
|
|
+ line-height: 18px;
|
|
|
+ border-radius: 8px 4px 8px 2px;
|
|
|
+ font-weight: 700;
|
|
|
+ .vip-icon {
|
|
|
+ font-style: italic;
|
|
|
+ }
|
|
|
+ &.member-month {
|
|
|
+ color: #fff;
|
|
|
+ background: $color_main;
|
|
|
+ }
|
|
|
+ &.member-season {
|
|
|
+ color: #1b1a2a;
|
|
|
+ background: #f1d090;
|
|
|
+ }
|
|
|
+ &.member-year {
|
|
|
+ color: #fae7ca;
|
|
|
+ background: #1b1a2a;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .light-gray-text {
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.record-box {
|