|
@@ -2,41 +2,29 @@
|
|
|
<Layout class="unit-portrayal">
|
|
|
<div class="unit-portrayal-content" v-loading="loading" background="#fff">
|
|
|
<div class="unit-type">
|
|
|
- <div class="u-top-container">
|
|
|
- <div class="u-name">{{ info.buyerName }}</div>
|
|
|
- <!-- <div class="u-follow" @click="setFollow" v-if="conf7">
|
|
|
- <span :class="{ icon_heart_red: follow.followed, icon_heart_gray: !follow.followed }"></span>
|
|
|
- <span class="follow-text">{{ follow.followed ? '已关注' : '关注' }}</span>
|
|
|
- </div> -->
|
|
|
+ <div class="unit-logo" :class="entInfo.randomBgc">
|
|
|
+ {{ entInfo.company_shortname ? entInfo.company_shortname.slice(0,4) : entInfo.company_name.slice(0,4) }}
|
|
|
</div>
|
|
|
- <div class="u-type">
|
|
|
- <div class="u-t-item">
|
|
|
- <span class="area-icon"></span>
|
|
|
- <span>所在地:{{ info.province }} {{ info.city }}</span>
|
|
|
+ <div>
|
|
|
+ <div class="u-top-container">
|
|
|
+ <div class="u-name">
|
|
|
+ <span class="u-name-h">{{ entInfo.company_name }}</span>
|
|
|
+ <span class="u-name-tag" :class="getEntStatus(entInfo.company_status)">{{entInfo.company_status}}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="u-t-item">
|
|
|
- <span class="type-icon"></span>
|
|
|
- <span>采购单位类型:{{ info.buyerClass }}</span>
|
|
|
+ <div class="u-detail">
|
|
|
+ <div class="u-d-info">
|
|
|
+ <span>法定代表人:{{entInfo.legal_person ?entInfo.legal_person : '-'}}</span>
|
|
|
+ <span>注册资本:{{calcListItemForCap(entInfo.capital)}}</span>
|
|
|
+ <span>成立日期:{{entInfo.establishStamp ? new Date(entInfo.establishStamp * 1000).pattern('yyyy-MM-dd') : '-' }}</span>
|
|
|
+ <span>联系方式:{{entInfo.company_phone ? entInfo.company_phone : '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="u-d-info">
|
|
|
+ <span>地址:{{entInfo.company_address ? entInfo.company_address : '-' }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 超级订阅用户、免费用户显示 -->
|
|
|
- <!-- <div>
|
|
|
- <div class="free-bg" v-if="userInfo.isFree && userInfo.freeBuyerPort === 0">
|
|
|
- <span class="give-tip">赠送</span>
|
|
|
- <div class="free-text">免费赠送1次【采购单位全景分析】权益体验机会!</div>
|
|
|
- <div class="unlock-btn" @click="goUnlock">去解锁>></div>
|
|
|
- </div>
|
|
|
- <div class="supervip-bg" v-if="vipStatusNoMember">
|
|
|
- <div class="vip-balance">当月采购单位画像余额:<em class="highlight-text">{{usageInfo.surplus}}</em></div>
|
|
|
- <div class="update-btn" @click.stop="goUpdate">{{vipStatusBtn}}</div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
- <!-- 采购单位通讯录 -->
|
|
|
- <!-- <ContactList name="buyer" titlename="采购单位通讯录" style="padding:32px 40px 32px;" v-if="!noBuyerAuth"></ContactList>
|
|
|
- <div class="mask-bg-group" v-else>
|
|
|
- <MaskCard @click="openBigPage('采购单位通讯录', getEntContactMap)" k="采购单位通讯录 " :key="'采购单位通讯录' + getEntContactMap.button + getEntContactMap.title" :item="getEntContactMap"></MaskCard>
|
|
|
- </div> -->
|
|
|
<div class="unit-info">
|
|
|
<div class="bidcomp">
|
|
|
<BidInfoActive whichPor="unitpor" @onPageChange="onLimitChange" :canselect="canSelect" title="采购单位分析"></BidInfoActive>
|
|
@@ -65,13 +53,13 @@
|
|
|
</div>
|
|
|
<div class="u-i-tip" v-if="baseShow">数据统计范围:{{ info.start }}-{{ info.end }}</div>
|
|
|
</div>
|
|
|
- <unit-chart @isTrial="getIsTrail" @baseInfoBool="baseInfoBool" @showEmpty="showEmpty" :params="bidInfoParams" v-on:baseInfo="getBaseInfo"></unit-chart>
|
|
|
+ <unit-chart @baseInfoBool="baseInfoBool" @showEmpty="showEmpty" :params="bidInfoParams" v-on:baseInfo="getBaseInfo"></unit-chart>
|
|
|
+ <!-- 预告项目 -->
|
|
|
+ <unit-list title="预告项目" :bidparams="bidInfoParams" v-if="unitlistshow" @list="getList"></unit-list>
|
|
|
+ <!-- 即将到期项目 -->
|
|
|
+ <unit-list title="即将到期项目" :bidparams="bidInfoParams" v-if="unitlistshow" @list="getList"></unit-list>
|
|
|
<!-- 招标动态 -->
|
|
|
- <unit-list :noauth="noBuyerAuth" :usage="usageInfo" :bidparams="bidInfoParams" v-if="unitlistshow" @list="getList" @click="openCheckPop" @onClickUnlock="goEmitClick"></unit-list>
|
|
|
- <!-- <div class="unit-big-upgrade-group" v-if="noBuyerAuth && !emptyShow">
|
|
|
- <MaskCard @click="openBigPage(k, item)" v-for="(item, k) in getBigUpgradeMap" :key="k + item.button + item.title"
|
|
|
- :k="k" :item="item"></MaskCard>
|
|
|
- </div> -->
|
|
|
+ <unit-list :bidparams="bidInfoParams" v-if="unitlistshow" @list="getList"></unit-list>
|
|
|
<Empty v-show="emptyShow" :images="require('@/assets/images/empty/jy-chagrin.png')">
|
|
|
<div slot="default" style="text-align:center">
|
|
|
<span>对不起,没有匹配到相关信息,</span><br/>
|
|
@@ -79,32 +67,18 @@
|
|
|
</div>
|
|
|
</Empty>
|
|
|
</div>
|
|
|
- <el-dialog
|
|
|
- class="unit-dialog-group"
|
|
|
- title="联系客服"
|
|
|
- :visible.sync="isDialogShow"
|
|
|
- >
|
|
|
- <div class="unit-dialog-content">如有疑问,请联系客服:400-108-6670</div>
|
|
|
- </el-dialog>
|
|
|
- <!-- <CollectInfo ref="collectRef"></CollectInfo> -->
|
|
|
</Layout>
|
|
|
</template>
|
|
|
<script>
|
|
|
import Layout from '@/components/common/ContentLayout'
|
|
|
import UnitChart from './components/BuyerChart'
|
|
|
-import UnitList from '../portrayal/components/UnitList'
|
|
|
-import BidInfoActive from '../portrayal/components/BidInfoActive'
|
|
|
-import ContactList from '@/components/contact-info/ContactInfo'
|
|
|
-import MaskCard from '@/components/mask-card/MaskCard.vue'
|
|
|
+import UnitList from './components/UnitList'
|
|
|
+import BidInfoActive from './components/BidInfoActive'
|
|
|
import Empty from '@/components/common/Empty'
|
|
|
import { Dialog } from 'element-ui'
|
|
|
-import { setLogs, getStatusCustomer, setStatusCustomer, getBuyerSelect, getVipBuyerSelect, getUsage } from '@/api/modules'
|
|
|
+import { getBuyerSelect } from '@/api/modules'
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
|
-function getImgForBigUpgrade (name, bg = false, suffix = '.png') {
|
|
|
- const temp = (bg ? 'bg/' : '') + name + suffix
|
|
|
- return require('@/assets/images/big/' + temp)
|
|
|
-}
|
|
|
/* eslint-disable */
|
|
|
export default {
|
|
|
name: 'unit-portrayal',
|
|
@@ -112,8 +86,6 @@ export default {
|
|
|
Layout,
|
|
|
UnitChart,
|
|
|
UnitList,
|
|
|
- ContactList,
|
|
|
- MaskCard,
|
|
|
BidInfoActive,
|
|
|
[Dialog.name]: Dialog,
|
|
|
Empty
|
|
@@ -143,302 +115,31 @@ export default {
|
|
|
unitData: {
|
|
|
id: ''
|
|
|
},
|
|
|
- entContactTip: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '获取采购单位类似项目联系人、联系方式等,一键拨打!',
|
|
|
- button: '免费体验',
|
|
|
- source: 'buyer_portrait_contacts_freeuser',
|
|
|
- img: getImgForBigUpgrade('1-big'),
|
|
|
- bg: getImgForBigUpgrade('1-bg', true)
|
|
|
- },
|
|
|
- bigUpgradeMap: {
|
|
|
- 年度项目统计: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '采购单位年度项目规模、增长趋势一目了然,快速分析市场!',
|
|
|
- img: getImgForBigUpgrade('2-big'),
|
|
|
- bg: getImgForBigUpgrade('2-bg', true),
|
|
|
- source: 'buyer_portrait_yearData_freeuser'
|
|
|
- },
|
|
|
- 月度采购规模统计: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '通过纵向对比近3年月度中标金额,快速分析行业月度采购趋势!',
|
|
|
- img: getImgForBigUpgrade('3-big'),
|
|
|
- bg: getImgForBigUpgrade('3-bg', true),
|
|
|
- source: 'buyer_portrait_monthData_freeuser'
|
|
|
- },
|
|
|
- 采购规模分布: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '全面了解采购单位的年度采购规划、项目预算,帮助投标人制定投标策略!',
|
|
|
- img: getImgForBigUpgrade('4-big'),
|
|
|
- bg: getImgForBigUpgrade('4-bg', true),
|
|
|
- source: 'buyer_portrait_moneyRange_freeuser'
|
|
|
- },
|
|
|
- 各类招标方式占比: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '洞察采购单位招标方式、数量、金额占比,综合了解采购单位,帮企业决策是否投标!',
|
|
|
- img: getImgForBigUpgrade('5-big'),
|
|
|
- bg: getImgForBigUpgrade('5-bg', true),
|
|
|
- source: 'buyer_portrait_bidtypeData_freeuser'
|
|
|
- },
|
|
|
- 各行业项目平均节支率: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '分析行业项目的预算、中标价格差额比率,帮助企业核算采购项目的利润率!',
|
|
|
- img: getImgForBigUpgrade('6-big'),
|
|
|
- bg: getImgForBigUpgrade('6-bg', true),
|
|
|
- source: 'buyer_portrait_rate_freeuser'
|
|
|
- },
|
|
|
- 重点合作代理机构: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '通过提供合作代理机构的名录、数量,全面洞察采购单位合作环境,辅助投标决策!',
|
|
|
- img: getImgForBigUpgrade('12-big'),
|
|
|
- bg: getImgForBigUpgrade('12-bg', true),
|
|
|
- source: 'buyer_portrait_topAgencyData_freeuser'
|
|
|
- },
|
|
|
- 重点合作企业: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '通过挖掘重点合作企业,直观了解采购单位与企业关系远近,辅助投标决策!',
|
|
|
- img: getImgForBigUpgrade('8-big'),
|
|
|
- bg: getImgForBigUpgrade('8-bg', true),
|
|
|
- source: 'buyer_portrait_topShow_freeuser'
|
|
|
- },
|
|
|
- 各行业项目规模占比: {
|
|
|
- title: '开通大会员',
|
|
|
- subtitle: '通过行业采购项目的规模、数量、利润率,洞悉采购单位的采购状况!',
|
|
|
- img: getImgForBigUpgrade('7-big'),
|
|
|
- bg: getImgForBigUpgrade('7-bg', true),
|
|
|
- source: 'buyer_portrait_top12_freeuser'
|
|
|
- }
|
|
|
- },
|
|
|
bidInfoParams: {},
|
|
|
canSelect: {},
|
|
|
baseShow: true,
|
|
|
chartShowArr: [],
|
|
|
emptyShow: false,
|
|
|
unitlistshow: true,
|
|
|
- usageInfo: {
|
|
|
- total: 0,
|
|
|
- usage: 0,
|
|
|
- provin: 0,
|
|
|
- visited: false,
|
|
|
- surplus: 0
|
|
|
- }, // 画像访问量
|
|
|
- freeTrial: false,
|
|
|
entInfo: {}
|
|
|
}
|
|
|
},
|
|
|
- watch: {
|
|
|
- chartShowArr (newval) {
|
|
|
- if (newval.indexOf(true) !== -1) {
|
|
|
- this.emptyShow = false
|
|
|
- } else {
|
|
|
- if (this.noBuyerAuth) {
|
|
|
- this.emptyShow = false
|
|
|
- } else {
|
|
|
- this.emptyShow = true
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- 'usageInfo.provin' (newVal) {
|
|
|
- this.usageInfo.provin = newVal
|
|
|
- }
|
|
|
- },
|
|
|
+ watch: {},
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
userInfo: state => state.user.info
|
|
|
- }),
|
|
|
- conf7 () {
|
|
|
- const power = this.userInfo.power
|
|
|
- if (power) {
|
|
|
- // 7.挖掘潜在客户
|
|
|
- return power.indexOf(7) !== -1
|
|
|
- } else {
|
|
|
- return false
|
|
|
- }
|
|
|
- },
|
|
|
- canShowHistoryContact () {
|
|
|
- const info = this.userInfo
|
|
|
- const usage = this.usageInfo
|
|
|
- // 大会员用户有采购单位全景分析权限
|
|
|
- const bigMember = info.memberStatus > 0 && info.power.indexOf(5) !== -1
|
|
|
- // 新超级订阅用户 有采购单位画像余额
|
|
|
- const svip = info.vipStatus > 0 && info.viper && usage.surplus > 0
|
|
|
- // 新超级订阅用户 次数用完 浏览过
|
|
|
- const svipTrial = info.vipStatus > 0 && info.viper && usage.surplus <= 0 && usage.visited
|
|
|
- // 免费用户 留过资 免费体验一次
|
|
|
- const freePort = info.isFree && info.freeBuyerPort > 0
|
|
|
- // 免费用户 体验过期 浏览过
|
|
|
- const freeTail = info.isFree && info.freeBuyerPort < 0
|
|
|
- return bigMember || svip || svipTrial || freePort || freeTail
|
|
|
- },
|
|
|
- // 可以查看画像权限,显示遮罩
|
|
|
- noBuyerAuth () {
|
|
|
- const info = this.userInfo
|
|
|
- const usage = this.usageInfo
|
|
|
- const isFreeAuth = info.isFree && info.freeBuyerPort > 0
|
|
|
- const isVipAuth = info.vipStatus > 0 && info.viper && usage.surplus > 0
|
|
|
- const isMember = info.power.indexOf(5) !== -1
|
|
|
- // 超级订阅用户是否访问过该画像
|
|
|
- const vipTrial = info.vipStatus > 0 && info.viper && usage.surplus === 0 && usage.visited
|
|
|
- // 免费用户是否查看过该画像
|
|
|
- const freeTrial = info.isFree && info.freeBuyerPort < 0 && this.freeTrial
|
|
|
- // 免费用户无体验次数的、超级订阅用户无剩余次数的、没有大会员浏览权限的 显示遮罩
|
|
|
- return !isFreeAuth && !isVipAuth && !isMember && !freeTrial && !vipTrial
|
|
|
- },
|
|
|
- getEntContactMap () {
|
|
|
- const tempMap = this.entContactTip
|
|
|
- const canShow = this.userInfo.memberStatus > 0
|
|
|
- let tempTitle = '大会员'
|
|
|
- // let tempButton = '联系客服'
|
|
|
- if (!canShow) {
|
|
|
- tempTitle = '开通大会员'
|
|
|
- // tempButton = '免费体验'
|
|
|
- }
|
|
|
- tempMap.title = tempTitle
|
|
|
- tempMap.button = this.shadeBottomBtnText
|
|
|
- return tempMap
|
|
|
- },
|
|
|
- // 纯超级订阅用户
|
|
|
- vipStatusNoMember () {
|
|
|
- return this.userInfo.vipStatus > 0 && this.userInfo.viper && this.userInfo.memberStatus <= 0
|
|
|
- },
|
|
|
- // 超级订阅余额提醒 对应文案
|
|
|
- vipStatusBtn () {
|
|
|
- let text = ''
|
|
|
- if (this.usageInfo.provin === -1) {
|
|
|
- text = '联系客服'
|
|
|
- } else {
|
|
|
- text = '前往升级'
|
|
|
- }
|
|
|
- return text
|
|
|
- },
|
|
|
- getBigUpgradeMap () {
|
|
|
- for (const v in this.bigUpgradeMap) {
|
|
|
- // let tempTitle = '大会员'
|
|
|
- // let tempButton = '联系客服'
|
|
|
- // if (!tempPowerInfo.isMember) {
|
|
|
- // tempTitle = '开通大会员'
|
|
|
- // tempButton = '免费体验'
|
|
|
- // }
|
|
|
- // this.bigUpgradeMap[v].title = tempTitle
|
|
|
- console.log(this.shadeBottomBtnText)
|
|
|
- this.bigUpgradeMap[v].button = this.shadeBottomBtnText
|
|
|
- }
|
|
|
- return this.bigUpgradeMap
|
|
|
- },
|
|
|
- // 遮罩按钮对应文案
|
|
|
- shadeBottomBtnText () {
|
|
|
- let btnText = ''
|
|
|
- const info = this.userInfo
|
|
|
- const usage = this.usageInfo
|
|
|
- // 【立即解锁】:未体验过采购单位画像的免费用户,点击进行“欢迎体验采购单位全景分析”留资
|
|
|
- // 【去开通】:已体验过1次采购单位画像的免费用户,点击进入超级订阅购买页
|
|
|
- // 【前往升级】:超级订阅老版用户+购买了非全国采购单位画像余额为0的超级订阅新版用户,点击进入超级订阅升级页
|
|
|
- // 【联系客服】:购买了全国采购单位画像余额为0的超级订阅新版用户+无采购单位画像权限的大会员客户;点击调起智齿在线客服
|
|
|
- if (info.isFree) {
|
|
|
- if (info.freeBuyerPort === 0) {
|
|
|
- btnText = '立即解锁'
|
|
|
- } else {
|
|
|
- btnText = '去开通'
|
|
|
- }
|
|
|
- } else {
|
|
|
- btnText = ''
|
|
|
- // 老超级订阅用户
|
|
|
- const oldVip = info.vipStatus > 0 && !info.viper
|
|
|
- // 新超级订阅用户
|
|
|
- const newVip = info.vipStatus > 0 && info.viper
|
|
|
- // 大会员用户
|
|
|
- const member = info.memberStatus > 0
|
|
|
- // 新超级订阅用户买的非全国 余额为0
|
|
|
- const noAllProvinNoCounts = newVip && usage.provin !== -1 && usage.surplus <= 0
|
|
|
- // 超级订阅新用户 购买的全国 余额为0
|
|
|
- const allProvinNoCounts = newVip && usage.provin === -1 && usage.surplus <= 0
|
|
|
- // 无权限的大会员用户
|
|
|
- const noAuthMember = info.memberStatus > 0 && info.power.indexOf(5) === -1
|
|
|
- // 纯商机管理用户
|
|
|
- const entniche = info.entniche && !oldVip && !newVip && !member
|
|
|
- if (oldVip || noAllProvinNoCounts) {
|
|
|
- btnText = '前往升级'
|
|
|
- } else if (allProvinNoCounts || noAuthMember || entniche) {
|
|
|
- btnText = '联系客服'
|
|
|
- }
|
|
|
- }
|
|
|
- return btnText
|
|
|
- }
|
|
|
+ })
|
|
|
},
|
|
|
created () {
|
|
|
+ console.log(JSON.parse(this.$route.query.info))
|
|
|
if (this.$route.query.info) {
|
|
|
this.entInfo = JSON.parse(this.$route.query.info)
|
|
|
}
|
|
|
- this.$store.dispatch('user/getUserPower')
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.info.buyerName = decodeURIComponent(this.$route.params.entName)
|
|
|
- // this.getBigUpgradeMap()
|
|
|
- this.getFollowState()
|
|
|
this.getSelect()
|
|
|
- this.getBuyerUsage()
|
|
|
- $.ajax({
|
|
|
- url: '/publicapply/bidcoll/power',
|
|
|
- type: 'POST',
|
|
|
- success: (res) => {
|
|
|
- // 如果是商机管理、大会员、超级订阅会员有筛选权限
|
|
|
- let tempType = ''
|
|
|
- if (res.data.vip > 0) {
|
|
|
- tempType = '1'
|
|
|
- }
|
|
|
- if (res.data.member) {
|
|
|
- if (tempType !== '') {
|
|
|
- tempType += ','
|
|
|
- }
|
|
|
- tempType += '2'
|
|
|
- }
|
|
|
- if (res.data.entniche) {
|
|
|
- if (tempType !== '') {
|
|
|
- tempType += ','
|
|
|
- }
|
|
|
- tempType += '3'
|
|
|
- }
|
|
|
- if (tempType === '') {
|
|
|
- tempType = '0'
|
|
|
- }
|
|
|
- setLogs({
|
|
|
- platform: 'P',
|
|
|
- userType: tempType
|
|
|
- }).then(res => {
|
|
|
- if (res.error_msg === '' && res.data) {
|
|
|
- this.unitData = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
},
|
|
|
methods: {
|
|
|
- // 获取免费用户是否体验过该采购单位
|
|
|
- getIsTrail (data) {
|
|
|
- console.log(data, 'dadadada')
|
|
|
- this.freeTrial = data ? data : false
|
|
|
- },
|
|
|
- // 采购单位画像访问量查询
|
|
|
- getBuyerUsage () {
|
|
|
- const info = this.userInfo
|
|
|
- const isNewVip = info.vipStatus > 0 && info.viper && info.power.indexOf(5) === -1
|
|
|
- if (!isNewVip) return
|
|
|
- getUsage({
|
|
|
- buyer: decodeURIComponent(this.$route.params.entName),
|
|
|
- p_type: '1'
|
|
|
- }).then(res => {
|
|
|
- if (res.error_code === 0 && res.data) {
|
|
|
- if (res.data.usage > res.data.total) {
|
|
|
- res.data.usage = res.data.total
|
|
|
- }
|
|
|
- res.data.surplus = res.data.total - res.data.usage
|
|
|
- this.usageInfo = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- goExp () {
|
|
|
- this.$refs.collectRef.noCallApiFn('buyer_portrait_exp_freeuser', true)
|
|
|
- },
|
|
|
// 采购单位-筛选项
|
|
|
onLimitChange (data) {
|
|
|
this.unitlistshow = true
|
|
@@ -453,38 +154,11 @@ export default {
|
|
|
},
|
|
|
async getSelect () {
|
|
|
const params = { buyer: this.$route.params.entName }
|
|
|
- const info = this.usageInfo
|
|
|
- const isMember = info.memberStatus > 0 && info.power.indexOf(5) > -1
|
|
|
- const res = isMember ? await getBuyerSelect(params) : await getVipBuyerSelect(params)
|
|
|
+ const res = await getBuyerSelect(params)
|
|
|
if (res.error_code === 0) {
|
|
|
this.canSelect = res.data
|
|
|
}
|
|
|
},
|
|
|
- openCheckPop () {
|
|
|
- this.openBigPage('', {
|
|
|
- source: 'buyer_portrait_getNewMsg_freeuser',
|
|
|
- button: this.shadeBottomBtnText
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- openBigPage (k, item) {
|
|
|
- try {
|
|
|
- // eslint-disable-next-line no-undef
|
|
|
- _hmt.push(['_trackEvent', '采购单位画像-pc', 'click', k + '-' + item.button])
|
|
|
- } catch (e) {
|
|
|
- console.log('未初始化百度统计')
|
|
|
- }
|
|
|
- if (item.button === '立即解锁') {
|
|
|
- this.$refs.collectRef.noCallApiFn(item.source, true)
|
|
|
- } else if (item.button === '去开通') {
|
|
|
- this.$router.push('/free/svip/buy')
|
|
|
- } else if (item.button === '前往升级') {
|
|
|
- this.$router.push('/free/svip/buy?type=upgrade')
|
|
|
- } else if (item.button === '联系客服') {
|
|
|
- // this.isDialogShow = true
|
|
|
- $('.help-slide-zx.open-customer').trigger('click')
|
|
|
- }
|
|
|
- },
|
|
|
getList (data) {
|
|
|
if (!data) {
|
|
|
this.chartShowArr.push(false)
|
|
@@ -504,58 +178,22 @@ export default {
|
|
|
this.info = data
|
|
|
this.loading = false
|
|
|
},
|
|
|
- getFollowState () {
|
|
|
- // 查询当前企业是否在 关注的客户 列表中
|
|
|
- getStatusCustomer({ name: this.info.buyerName }).then(res => {
|
|
|
- if (res && res.error_code === 0 && res.data) {
|
|
|
- this.follow.followed = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- setFollow () {
|
|
|
- if (this.follow.loading) return
|
|
|
- const data = {
|
|
|
- name: this.info.buyerName,
|
|
|
- province: this.info.province,
|
|
|
- city: this.info.city,
|
|
|
- b: this.follow.followed
|
|
|
+ getEntStatus (status) {
|
|
|
+ if (status === '吊销') {
|
|
|
+ return 'tag-danger'
|
|
|
+ } else if (status === '注销') {
|
|
|
+ return 'tag-danger'
|
|
|
+ } else if (status === '撤销') {
|
|
|
+ return 'tag-disabled'
|
|
|
+ } else {
|
|
|
+ return ''
|
|
|
}
|
|
|
- this.follow.loading = true
|
|
|
- // 潜在客户挖掘/我的客户-关注
|
|
|
- setStatusCustomer(data).then(res => {
|
|
|
- if (res && res.error_code === 0 && res.data) {
|
|
|
- if (this.follow.followed) {
|
|
|
- // 取消关注操作返回
|
|
|
- this.$toast('取消关注成功')
|
|
|
- this.follow.followed = false
|
|
|
- } else {
|
|
|
- // 关注操作返回
|
|
|
- this.follow.followed = true
|
|
|
- this.$toast(res.error_msg || '关注成功,可前往“我关注的客户”中查看')
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.$toast(res.error_msg)
|
|
|
- }
|
|
|
- }).finally(() => {
|
|
|
- this.follow.loading = false
|
|
|
- })
|
|
|
- },
|
|
|
- // 去解锁
|
|
|
- goUnlock () {
|
|
|
- this.$refs.collectRef.noCallApiFn('buyer_portrait_freeuser', true)
|
|
|
- },
|
|
|
- goEmitClick (data) {
|
|
|
- this.$refs.collectRef.noCallApiFn(data, true)
|
|
|
},
|
|
|
- goUpdate () {
|
|
|
- if (this.usageInfo.provin === -1) {
|
|
|
- try {
|
|
|
- $('.help-slide-zx.open-customer').unbind('click').trigger('click')
|
|
|
- } catch (e) {
|
|
|
- console.log(e)
|
|
|
- }
|
|
|
+ calcListItemForCap (p) {
|
|
|
+ if (p) {
|
|
|
+ return p + '万元'
|
|
|
} else {
|
|
|
- this.$router.push('/free/svip/buy?type=upgrade')
|
|
|
+ return '-'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -677,9 +315,33 @@ export default {
|
|
|
}
|
|
|
|
|
|
.unit-type {
|
|
|
+ display: flex;
|
|
|
padding: 32px 40px;
|
|
|
background: #fff;
|
|
|
-
|
|
|
+ .bgc-default {
|
|
|
+ background-color: #2cb7ca;
|
|
|
+ }
|
|
|
+ .bgc-blue {
|
|
|
+ background-color: #f5af5c;
|
|
|
+ }
|
|
|
+ .bgc-orange {
|
|
|
+ background-color: #58a1e7;
|
|
|
+ }
|
|
|
+ .bgc-green {
|
|
|
+ background-color: #51cea2;
|
|
|
+ }
|
|
|
+ .unit-logo{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 60px;
|
|
|
+ height: 60px;
|
|
|
+ padding: 8px 12px;
|
|
|
+ margin-right: 24px;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-size: 18px;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
.u-top-container {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -687,10 +349,35 @@ export default {
|
|
|
}
|
|
|
|
|
|
.u-name {
|
|
|
- flex: 1;
|
|
|
- font-size: 24px;
|
|
|
- line-height: 36px;
|
|
|
- color: #171826;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .u-name-h{
|
|
|
+ margin-right: 12px;
|
|
|
+ font-size: 18px;
|
|
|
+ line-height: 28px;
|
|
|
+ color: #1D1D1D;
|
|
|
+ }
|
|
|
+ .u-name-tag{
|
|
|
+ padding: 4px 8px;
|
|
|
+ color: #2cb7ca;
|
|
|
+ font-size: 12px;
|
|
|
+ text-align: center;
|
|
|
+ border: 1px solid #2cb7ca;
|
|
|
+ background-color: rgba(44, 183, 202, 0.08);
|
|
|
+ border-radius: 5px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .u-d-info{
|
|
|
+ margin-top: 12px;
|
|
|
+ line-height: 22px;
|
|
|
+ span{
|
|
|
+ font-size: 14px;
|
|
|
+ color: #999;
|
|
|
+ }
|
|
|
+ span:not(:last-of-type) {
|
|
|
+ margin-right: 32px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.u-follow {
|