|
@@ -22,9 +22,19 @@
|
|
class="action-monitor"
|
|
class="action-monitor"
|
|
@click.native.stop="changePopoverState"
|
|
@click.native.stop="changePopoverState"
|
|
>
|
|
>
|
|
- <van-icon slot="icon" name="custom-report"></van-icon>
|
|
|
|
|
|
+ <van-icon
|
|
|
|
+ slot="icon"
|
|
|
|
+ :name="showPopover ? 'custom-report-active' : 'custom-report'"
|
|
|
|
+ ></van-icon>
|
|
|
|
+ <!-- <AppIcon
|
|
|
|
+ slot="icon"
|
|
|
|
+ name="xiazaixiangmubaogao"
|
|
|
|
+ :color="showPopover ? '#2ABED1' : '#9B9CA3'"
|
|
|
|
+ svg
|
|
|
|
+ size="20"
|
|
|
|
+ ></AppIcon> -->
|
|
<template #text>
|
|
<template #text>
|
|
- <span class="highlight-text">下载报告</span>
|
|
|
|
|
|
+ <span :class="{ 'highlight-text': showPopover }">下载报告</span>
|
|
</template>
|
|
</template>
|
|
</TabActionItem>
|
|
</TabActionItem>
|
|
</template>
|
|
</template>
|
|
@@ -71,9 +81,6 @@ import TabActionItem from '@/views/article/ui/TabActionItem.vue'
|
|
import ReportDownloadCard from '@/views/article/ui/ReportDownloadCard.vue'
|
|
import ReportDownloadCard from '@/views/article/ui/ReportDownloadCard.vue'
|
|
import { Popover, Dialog, Icon } from 'vant'
|
|
import { Popover, Dialog, Icon } from 'vant'
|
|
import { AppIcon } from '@/ui'
|
|
import { AppIcon } from '@/ui'
|
|
-import { mapGetters, mapState } from 'vuex'
|
|
|
|
-import { LINKS } from '@/data'
|
|
|
|
-import { openAppOrWxPage } from '@/utils/'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'ActionReport',
|
|
name: 'ActionReport',
|
|
@@ -214,11 +221,10 @@ export default {
|
|
break
|
|
break
|
|
case 'unit':
|
|
case 'unit':
|
|
// 采购单位分析
|
|
// 采购单位分析
|
|
- console.log('采购单位名称', buyerName)
|
|
|
|
this.onReportRedirect('unit')
|
|
this.onReportRedirect('unit')
|
|
break
|
|
break
|
|
case 'competitor':
|
|
case 'competitor':
|
|
- // 竞争对手分析
|
|
|
|
|
|
+ // 供应商分析
|
|
if (this.winners && this.winners.length > 1) {
|
|
if (this.winners && this.winners.length > 1) {
|
|
this.showDialog = true
|
|
this.showDialog = true
|
|
} else {
|
|
} else {
|
|
@@ -280,13 +286,17 @@ export default {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
.van-icon.van-icon-custom-report {
|
|
.van-icon.van-icon-custom-report {
|
|
- //width: 18px;
|
|
|
|
- //height: 18px;
|
|
|
|
width: 1em;
|
|
width: 1em;
|
|
height: 1em;
|
|
height: 1em;
|
|
background-image: url('@/assets/image/icon/report@2x.png');
|
|
background-image: url('@/assets/image/icon/report@2x.png');
|
|
background-size: cover;
|
|
background-size: cover;
|
|
}
|
|
}
|
|
|
|
+ .van-icon.van-icon-custom-report-active {
|
|
|
|
+ width: 1em;
|
|
|
|
+ height: 1em;
|
|
|
|
+ background-image: url('@/assets/image/icon/report-active@2x.png');
|
|
|
|
+ background-size: cover;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<style lang="scss">
|
|
<style lang="scss">
|