|
@@ -215,11 +215,7 @@ var vNode = {
|
|
|
var _this = this
|
|
|
// 动态调整sticky距离顶部的高度
|
|
|
this.getStickyTop()
|
|
|
- if (this.scrollTop) {
|
|
|
- setTimeout(function () {
|
|
|
- $('#ent-portrait').scrollTop(_this.scrollTop)
|
|
|
- }, 0)
|
|
|
- }
|
|
|
+ this.reStoreScroll()
|
|
|
this.getShareParams()
|
|
|
window.addEventListener('resize', function () {
|
|
|
_this.getStickyTop()
|
|
@@ -783,7 +779,6 @@ var vNode = {
|
|
|
_this.canReadConf13()
|
|
|
if (power.indexOf(12) != -1) {
|
|
|
// 获取企业情报历史记录(工商变动)-12
|
|
|
- _this.getVipBuyInfo()
|
|
|
_this.conf._12 = true
|
|
|
}
|
|
|
// // follow的权限:4.12.13只要有一个就可以
|
|
@@ -810,8 +805,8 @@ var vNode = {
|
|
|
_this.freeWinnerOpen = true
|
|
|
}
|
|
|
}
|
|
|
- // 免费用户看过当前企业画像数据
|
|
|
- if (res.data.isFree) {
|
|
|
+ // 免费用户/商机管理无权限体验 看过当前企业画像数据
|
|
|
+ if (res.data.isFree || _this.powerInfo.entniche) {
|
|
|
_this.getEntPortrait(function (res) {
|
|
|
if (res && res.data && res.data.onTrial) {
|
|
|
_this.canFreeTrial = true
|
|
@@ -832,6 +827,7 @@ var vNode = {
|
|
|
}
|
|
|
|
|
|
if (res.data.vipStatus > 0) {
|
|
|
+ _this.getVipBuyInfo()
|
|
|
if (!res.data.viper) {
|
|
|
_this.bidcollPowerInfo.text = '升级'
|
|
|
_this.bidcollPowerInfo.btntext = '去升级'
|
|
@@ -1366,6 +1362,7 @@ var vNode = {
|
|
|
},
|
|
|
savePageState: function () {
|
|
|
this.scrollTop = $('#ent-portrait').scrollTop()
|
|
|
+ var scrollTopOffset = 10 // 滚动误差
|
|
|
var data = {
|
|
|
conf: this.conf,
|
|
|
tabActiveName: this.tabActiveName,
|
|
@@ -1374,7 +1371,9 @@ var vNode = {
|
|
|
topProject: this.topProject,
|
|
|
entPortraitInfo: this.entPortraitInfo,
|
|
|
powerInfo: this.powerInfo,
|
|
|
- scrollTop: this.scrollTop,
|
|
|
+ svipBuyset: this.svipBuyset,
|
|
|
+ bidcollPowerInfo: this.bidcollPowerInfo,
|
|
|
+ scrollTop: this.scrollTop + scrollTopOffset,
|
|
|
gotTab2: this.gotTab2
|
|
|
}
|
|
|
sessionStorage.setItem(this.sessKey, JSON.stringify(data))
|
|
@@ -1395,6 +1394,8 @@ var vNode = {
|
|
|
Object.assign(this.topProject, $data.topProject || {})
|
|
|
Object.assign(this.entPortraitInfo, $data.entPortraitInfo || {})
|
|
|
Object.assign(this.powerInfo, $data.powerInfo || {})
|
|
|
+ Object.assign(this.svipBuyset, $data.svipBuyset || {})
|
|
|
+ Object.assign(this.bidcollPowerInfo, $data.bidcollPowerInfo || {})
|
|
|
Object.assign(this.entvisit, $data.entvisit || {})
|
|
|
this.scrollTop = $data.scrollTop
|
|
|
this.gotTab2 = $data.gotTab2
|
|
@@ -1402,6 +1403,14 @@ var vNode = {
|
|
|
}
|
|
|
return !!$data
|
|
|
},
|
|
|
+ reStoreScroll: function () {
|
|
|
+ var _this = this
|
|
|
+ if (this.scrollTop) {
|
|
|
+ setTimeout(function () {
|
|
|
+ $('#ent-portrait').scrollTop(_this.scrollTop)
|
|
|
+ }, 200)
|
|
|
+ }
|
|
|
+ },
|
|
|
// 高级分析设置
|
|
|
goHighSet () {
|
|
|
sessionStorage.setItem('is-click-set', 1)
|