|
@@ -134,7 +134,9 @@ var vNode = {
|
|
|
dt: true
|
|
|
},
|
|
|
canFreeExp: false,
|
|
|
- canFreeTrial: false
|
|
|
+ canFreeTrial: false,
|
|
|
+ freeWinnerOpen: false,
|
|
|
+ winnerBannerTop: 0
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|
|
@@ -178,6 +180,7 @@ var vNode = {
|
|
|
window.addEventListener('resize', function () {
|
|
|
_this.getStickyTop()
|
|
|
})
|
|
|
+ this.getBannerTop()
|
|
|
},
|
|
|
beforeUpdate: function(){
|
|
|
// console.log($('.win-analyse').length)
|
|
@@ -264,6 +267,12 @@ var vNode = {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getBannerTop: function () {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ var c = document.querySelector('.van-sticky')
|
|
|
+ console.log(c, $('.van-sticky').length, '111');
|
|
|
+ })
|
|
|
+ },
|
|
|
scrollHeight: function () {
|
|
|
var storageClick = JSON.parse(sessionStorage.getItem('is-click-set'))
|
|
|
if ($('.win-analyse').length && $('.win-analyse').length > 0 && storageClick) {
|
|
@@ -553,9 +562,9 @@ var vNode = {
|
|
|
},
|
|
|
error: function (error) {
|
|
|
console.log(error)
|
|
|
- setTimeout(function() {
|
|
|
- _this.getEntBaseInfo()
|
|
|
- }, 3000)
|
|
|
+ // setTimeout(function() {
|
|
|
+ // _this.getEntBaseInfo()
|
|
|
+ // }, 3000)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -676,8 +685,12 @@ var vNode = {
|
|
|
_this.$toast(res.error_msg)
|
|
|
}
|
|
|
//免费用户体验权限
|
|
|
- if(res.data.isFree&&res.data.freeEntPort==0){
|
|
|
- _this.canFreeExp=true
|
|
|
+ if(res.data.isFree){
|
|
|
+ if (res.data.freeEntPort==0) {
|
|
|
+ _this.canFreeExp=true
|
|
|
+ } else {
|
|
|
+ _this.freeWinnerOpen = true
|
|
|
+ }
|
|
|
}
|
|
|
// 免费用户看过当前企业画像数据
|
|
|
if (res.data.isFree) {
|
|
@@ -1240,6 +1253,9 @@ var vNode = {
|
|
|
//免费赠送企业全景分析体验 去解锁
|
|
|
goGiveAnalysis: function(){
|
|
|
location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=ent_portrait_freeuser';
|
|
|
+ },
|
|
|
+ goOpenVip: function() {
|
|
|
+ location.href = "/jyapp/vipsubscribe/vipsubscribe_new"
|
|
|
}
|
|
|
}
|
|
|
}
|