|
@@ -26,6 +26,12 @@ var vipComponent = {
|
|
|
return ''
|
|
|
}
|
|
|
},
|
|
|
+ "canFreeExp": {
|
|
|
+ type: Boolean,
|
|
|
+ default: function () {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ },
|
|
|
"entvisit": {
|
|
|
type: Object,
|
|
|
default: function () {
|
|
@@ -89,7 +95,7 @@ var vipComponent = {
|
|
|
textMap.btnText = '联系客服'
|
|
|
} else {
|
|
|
if (this.type === 'item_1') {
|
|
|
- textMap.btnText = !this.newvip && this.power.vipStatus > 0 ? '去升级' : '去开通'
|
|
|
+ textMap.btnText = !this.newvip && this.power.vipStatus > 0 ? '前往升级' : '去开通'
|
|
|
} else {
|
|
|
textMap.btnText = '联系客服'
|
|
|
}
|
|
@@ -100,18 +106,31 @@ var vipComponent = {
|
|
|
textMap.btnText = '去开通'
|
|
|
} else if (this.entvisit.provin != -1) {
|
|
|
textMap.titleText = '超级订阅'
|
|
|
- textMap.btnText = this.type === 'item_1' ? '去升级' : '免费体验'
|
|
|
+ textMap.btnText = this.type === 'item_1' ? '前往升级' : '免费体验'
|
|
|
} else if(this.entvisit.provin == -1) {
|
|
|
textMap.titleText = '超级订阅'
|
|
|
textMap.btnText = this.type === 'item_1' ? '联系客服' : '免费体验'
|
|
|
}
|
|
|
} else {
|
|
|
if (this.type === 'item_1') {
|
|
|
- textMap.btnText = !this.newvip && this.power.vipStatus > 0 ? '去升级' : '去开通'
|
|
|
+ textMap.btnText = !this.newvip && this.power.vipStatus > 0 ? '前往升级' : '去开通'
|
|
|
} else {
|
|
|
textMap.btnText = '免费体验'
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // (2)【立即解锁】:未体验过企业画像的免费用户,中标分析各模块,点击进行“欢迎体验企业中标分析”留资;
|
|
|
+ if (this.canFreeExp) {
|
|
|
+ textMap.btnText = '立即解锁'
|
|
|
+ } else {
|
|
|
+ if (this.power.vipStatus <= 0) {
|
|
|
+ textMap.btnText = '去开通'
|
|
|
+ }
|
|
|
+ // (4)【前往升级】:超级订阅老版用户,中标分析各模块;购买了非全国的超级订阅新版用户且企业画像余额为0;点击进入超级订阅升级页;
|
|
|
+ if (!this.newvip && this.entvisit.provin != -1 && this.entvisit.total >= 0) {
|
|
|
+ textMap.btnText = '前往升级'
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
switch (this.type) {
|
|
|
// 项目动态
|
|
@@ -126,7 +145,7 @@ var vipComponent = {
|
|
|
// textMap.btnText = this.power.isMember > 0 && !this.power._4 ? '联系客服' : '免费体验'
|
|
|
textMap.headText.top = '年度项目规模、增长趋势一目了然,'
|
|
|
textMap.headText.bot = '快速分析市场!'
|
|
|
- textMap.source = 'ent_portrait_yearData'
|
|
|
+ textMap.source = 'ent_portrait_yearData_freeuser'
|
|
|
break
|
|
|
}
|
|
|
// 月度中标金额统计
|
|
@@ -135,7 +154,7 @@ var vipComponent = {
|
|
|
// textMap.btnText = this.power.isMember > 0 && !this.power._4 ? '联系客服' : '免费体验'
|
|
|
textMap.headText.top = '纵向对比采购单位近三年月度采购规模,'
|
|
|
textMap.headText.bot = '不错过任何商机!'
|
|
|
- textMap.source = 'ent_portrait_monthData'
|
|
|
+ textMap.source = 'ent_portrait_monthData_freeuser'
|
|
|
break
|
|
|
}
|
|
|
// 市场区域分布
|
|
@@ -144,7 +163,7 @@ var vipComponent = {
|
|
|
// textMap.btnText = this.power.isMember > 0 && !this.power._4 ? '联系客服' : '免费体验'
|
|
|
textMap.headText.top = '通过企业市场规模、市场格局,'
|
|
|
textMap.headText.bot = '分析企业的市场发展现状!'
|
|
|
- textMap.source = 'ent_portrait_areaData'
|
|
|
+ textMap.source = 'ent_portrait_areaData_freeuser'
|
|
|
break
|
|
|
}
|
|
|
// 各类客户平均折扣率
|
|
@@ -153,7 +172,7 @@ var vipComponent = {
|
|
|
// textMap.btnText = this.power.isMember > 0 && !this.power._4 ? '联系客服' : '免费体验'
|
|
|
textMap.headText.top = '通过近3年各类客户平均折扣率范围,'
|
|
|
textMap.headText.bot = '透视企业的行业盈利能力!'
|
|
|
- textMap.source = 'ent_portrait_discountRate'
|
|
|
+ textMap.source = 'ent_portrait_discountRate_freeuser'
|
|
|
break
|
|
|
}
|
|
|
// 客户类型分布
|
|
@@ -162,7 +181,7 @@ var vipComponent = {
|
|
|
// textMap.btnText = this.power.isMember > 0 && !this.power._4 ? '联系客服' : '免费体验'
|
|
|
textMap.headText.top = '通过企业主要客户类型分析,'
|
|
|
textMap.headText.bot = '洞悉企业业务模式、经营状况!'
|
|
|
- textMap.source = 'ent_portrait_top10'
|
|
|
+ textMap.source = 'ent_portrait_top10_freeuser'
|
|
|
break
|
|
|
}
|
|
|
// 重点客户
|
|
@@ -171,7 +190,7 @@ var vipComponent = {
|
|
|
// textMap.btnText = this.power.isMember > 0 && !this.power._4 ? '联系客服' : '免费体验'
|
|
|
textMap.headText.top = '通过挖掘企业重点客户,直观了解采购单位'
|
|
|
textMap.headText.bot = '与供应商关系远近,辅助投标决策!'
|
|
|
- textMap.source = 'ent_portrait_topShow'
|
|
|
+ textMap.source = 'ent_portrait_topShow_freeuser'
|
|
|
break
|
|
|
}
|
|
|
// 企业情报历史记录
|
|
@@ -202,12 +221,9 @@ var vipComponent = {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- goOpen: function(source) {
|
|
|
- // 点击按钮保存tabActiveName值
|
|
|
- this.$emit('tabactive', 'save')
|
|
|
- let isWeixin = utils.isWeiXinBrowser
|
|
|
- if(!isWeixin) {
|
|
|
- if (this.getTextMap.btnText == '去开通') {
|
|
|
+ goOpenOfApp: function (btnText, source) {
|
|
|
+ switch (btnText) {
|
|
|
+ case '去开通': {
|
|
|
if(this.type == 'item_9' || this.type == 'item_8') {
|
|
|
// 跳转到大会员
|
|
|
location.href = '/jyapp/big/page/buy_commit'
|
|
@@ -216,17 +232,33 @@ var vipComponent = {
|
|
|
// 跳转到超级订阅
|
|
|
location.href = '/jyapp/vipsubscribe/vipsubscribe_new'
|
|
|
}
|
|
|
- } else if (this.getTextMap.btnText == '免费体验') {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '免费体验': {
|
|
|
location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=' + source
|
|
|
- } else if (this.getTextMap.btnText == '去升级') {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '前往升级': {
|
|
|
location.href = '/jyapp/vipsubscribe/upgradePage'
|
|
|
- } else if(this.getTextMap.btnText == '联系客服') {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '联系客服': {
|
|
|
location.href = '/jyapp/free/customer'
|
|
|
- } else {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '立即解锁': {
|
|
|
+ location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=ent_portrait_freeuser'
|
|
|
+ break
|
|
|
+ }
|
|
|
+ default: {
|
|
|
location.href = '/jyapp/vipsubscribe/vipsubscribe_new'
|
|
|
+ break
|
|
|
}
|
|
|
- } else {
|
|
|
- if (this.getTextMap.btnText == '去开通') {
|
|
|
+ }
|
|
|
+ },
|
|
|
+ goOpenOfWx: function (btnText, source) {
|
|
|
+ switch (btnText) {
|
|
|
+ case '去开通': {
|
|
|
if(this.type == 'item_9' || this.type == 'item_8') {
|
|
|
// 跳转到大会员
|
|
|
location.href = '/big/wx/page/buy_commit'
|
|
@@ -234,16 +266,39 @@ var vipComponent = {
|
|
|
// 跳转到超级订阅
|
|
|
location.href = '/front/vipsubscribe/vipsubscribe_new'
|
|
|
}
|
|
|
- } else if (this.getTextMap.btnText == '免费体验') {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '免费体验': {
|
|
|
location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=' + source
|
|
|
- } else if (this.getTextMap.btnText == '去升级') {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '前往升级': {
|
|
|
location.href = '/front/vipsubscribe/upgradePage'
|
|
|
- } else if(this.getTextMap.btnText == '联系客服') {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '联系客服': {
|
|
|
location.href = '/big/wx/page/customer'
|
|
|
- } else {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ case '立即解锁': {
|
|
|
+ location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=ent_portrait_freeuser'
|
|
|
+ break
|
|
|
+ }
|
|
|
+ default: {
|
|
|
location.href = '/front/vipsubscribe/vipsubscribe_new'
|
|
|
+ break
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ goOpen: function(source) {
|
|
|
+ // 点击按钮保存tabActiveName值
|
|
|
+ this.$emit('tabactive', 'save')
|
|
|
+ const isWeixin = utils.isWeiXinBrowser
|
|
|
+ if (isWeixin) {
|
|
|
+ this.goOpenOfWx(this.getTextMap.btnText, source)
|
|
|
+ } else {
|
|
|
+ this.goOpenOfApp(this.getTextMap.btnText, source)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|