|
@@ -277,11 +277,7 @@ var vNode = {
|
|
created () {
|
|
created () {
|
|
this.buyer.name = decodeURIComponent(utils.getParam('entName'))
|
|
this.buyer.name = decodeURIComponent(utils.getParam('entName'))
|
|
this.restore = this.reStoreState()
|
|
this.restore = this.reStoreState()
|
|
- if (this.restore) {
|
|
|
|
- this.getInfoWithPower()
|
|
|
|
- } else {
|
|
|
|
- this.getPowerInfo()
|
|
|
|
- }
|
|
|
|
|
|
+ this.getPowerInfo()
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|
|
var storageName = decodeURIComponent(sessionStorage.getItem('buyer_high_name'))
|
|
var storageName = decodeURIComponent(sessionStorage.getItem('buyer_high_name'))
|
|
@@ -425,6 +421,7 @@ var vNode = {
|
|
// 点击去开通埋点方法(免费体验)
|
|
// 点击去开通埋点方法(免费体验)
|
|
goBuyBuried: function(text) {
|
|
goBuyBuried: function(text) {
|
|
var _this = this
|
|
var _this = this
|
|
|
|
+ this.savePageState()
|
|
var params = {
|
|
var params = {
|
|
mold: 'isCBBT',
|
|
mold: 'isCBBT',
|
|
id: _this.encryptId,
|
|
id: _this.encryptId,
|
|
@@ -462,6 +459,7 @@ var vNode = {
|
|
}, 20)
|
|
}, 20)
|
|
},
|
|
},
|
|
goEntInfo: function(item) {
|
|
goEntInfo: function(item) {
|
|
|
|
+ this.savePageState()
|
|
location.href = "/weixin/frontPage/collection/sess/ent_portrait?eId=" + encodeURIComponent(item.id)
|
|
location.href = "/weixin/frontPage/collection/sess/ent_portrait?eId=" + encodeURIComponent(item.id)
|
|
},
|
|
},
|
|
// 查询采购单位地址(暂不需要)
|
|
// 查询采购单位地址(暂不需要)
|
|
@@ -538,11 +536,13 @@ var vNode = {
|
|
}
|
|
}
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
|
|
+ _this.savePageState()
|
|
location.href = '/big/wx/page/free_buyer_project_news?entName=' + decodeURIComponent(utils.getParam('entName'))
|
|
location.href = '/big/wx/page/free_buyer_project_news?entName=' + decodeURIComponent(utils.getParam('entName'))
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//数据导出
|
|
//数据导出
|
|
onExport(){
|
|
onExport(){
|
|
|
|
+ var _this = this
|
|
var storageSet = this.getHighSet()
|
|
var storageSet = this.getHighSet()
|
|
var data = {
|
|
var data = {
|
|
buyer: decodeURIComponent(utils.getParam('entName')),
|
|
buyer: decodeURIComponent(utils.getParam('entName')),
|
|
@@ -559,6 +559,7 @@ var vNode = {
|
|
data: storageSet ? Object.assign(data, storageSet) : data,
|
|
data: storageSet ? Object.assign(data, storageSet) : data,
|
|
timeout: 8000,
|
|
timeout: 8000,
|
|
success:function(res) {
|
|
success:function(res) {
|
|
|
|
+ _this.savePageState()
|
|
window.location.href = "/jy_mobile/common/order/create/dataexport?id=" + res.data
|
|
window.location.href = "/jy_mobile/common/order/create/dataexport?id=" + res.data
|
|
},
|
|
},
|
|
error:function(err) {
|
|
error:function(err) {
|
|
@@ -1577,7 +1578,7 @@ var vNode = {
|
|
},
|
|
},
|
|
savePageState: function () {
|
|
savePageState: function () {
|
|
this.scrollTop = $('#unit_portrayal').scrollTop()
|
|
this.scrollTop = $('#unit_portrayal').scrollTop()
|
|
- var scrollTopOffset = 10 // 滚动误差
|
|
|
|
|
|
+ var scrollTopOffset = 5 // 滚动误差
|
|
var data = {
|
|
var data = {
|
|
chartLoading: this.chartLoading,
|
|
chartLoading: this.chartLoading,
|
|
tabActiveName: this.tabActiveName,
|
|
tabActiveName: this.tabActiveName,
|
|
@@ -1600,6 +1601,7 @@ var vNode = {
|
|
$data = JSON.parse($data)
|
|
$data = JSON.parse($data)
|
|
// 如果恢复的企业名称和当前url企业名称不同,则清除缓存,重新请求
|
|
// 如果恢复的企业名称和当前url企业名称不同,则清除缓存,重新请求
|
|
if (this.buyer.name !== $data.buyer.name) {
|
|
if (this.buyer.name !== $data.buyer.name) {
|
|
|
|
+ console.log('画像id与缓存id不同,清空缓存')
|
|
sessionStorage.removeItem(this.sessKey)
|
|
sessionStorage.removeItem(this.sessKey)
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
@@ -1625,11 +1627,11 @@ var vNode = {
|
|
if (this.scrollTop) {
|
|
if (this.scrollTop) {
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
$('#unit_portrayal').scrollTop(_this.scrollTop)
|
|
$('#unit_portrayal').scrollTop(_this.scrollTop)
|
|
- }, 300)
|
|
|
|
|
|
+ }, 200)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onExampleOpenPage: function () {
|
|
onExampleOpenPage: function () {
|
|
- // this.savePageState()
|
|
|
|
|
|
+ this.savePageState()
|
|
},
|
|
},
|
|
openDialog: function () {
|
|
openDialog: function () {
|
|
var _this = this
|
|
var _this = this
|
|
@@ -1646,6 +1648,7 @@ var vNode = {
|
|
btnText = '去开通'
|
|
btnText = '去开通'
|
|
} else {
|
|
} else {
|
|
// 立即解锁
|
|
// 立即解锁
|
|
|
|
+ this.savePageState()
|
|
location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=buyer_portrait_getNewMsg_freeuser'
|
|
location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=buyer_portrait_getNewMsg_freeuser'
|
|
// 需要return出去 直接跳留资 不弹弹框
|
|
// 需要return出去 直接跳留资 不弹弹框
|
|
return
|
|
return
|
|
@@ -1674,6 +1677,7 @@ var vNode = {
|
|
}).then(function(){
|
|
}).then(function(){
|
|
if (btnText == '联系客服') {
|
|
if (btnText == '联系客服') {
|
|
// location.href = "tel: 400-108-6670"
|
|
// location.href = "tel: 400-108-6670"
|
|
|
|
+ _this.savePageState()
|
|
location.href = '/big/wx/page/customer'
|
|
location.href = '/big/wx/page/customer'
|
|
} else if (btnText == '前往升级') {
|
|
} else if (btnText == '前往升级') {
|
|
// location.href = '/front/vipsubscribe/upgradePage'
|
|
// location.href = '/front/vipsubscribe/upgradePage'
|
|
@@ -1700,6 +1704,7 @@ var vNode = {
|
|
)
|
|
)
|
|
)
|
|
)
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
|
|
+ this.savePageState()
|
|
var href = '/article/content/' + item.id + '.html'
|
|
var href = '/article/content/' + item.id + '.html'
|
|
location.href = href
|
|
location.href = href
|
|
} else {
|
|
} else {
|
|
@@ -1731,6 +1736,7 @@ var vNode = {
|
|
},
|
|
},
|
|
//免费赠送采购单位全景分析体验 去解锁
|
|
//免费赠送采购单位全景分析体验 去解锁
|
|
goGiveAnalysis: function(){
|
|
goGiveAnalysis: function(){
|
|
|
|
+ this.savePageState()
|
|
location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=buyer_portrait_freeuser';
|
|
location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=buyer_portrait_freeuser';
|
|
},
|
|
},
|
|
// 前往升级或联系客服
|
|
// 前往升级或联系客服
|