|
@@ -22,8 +22,8 @@ var mine = {
|
|
|
|
|
|
this.linkClickEvents()
|
|
|
this.getOfflineMessageCount()
|
|
|
- // 企业画像访问量查询
|
|
|
- this.getEntVisits()
|
|
|
+ // 企业画像记录访问权限
|
|
|
+ this.getBigVipState()
|
|
|
},
|
|
|
// ios返回刷新问题
|
|
|
iosBackInvoke: function () {
|
|
@@ -38,23 +38,6 @@ var mine = {
|
|
|
isPageHide = true
|
|
|
});
|
|
|
},
|
|
|
- // 企业画像访问量查询
|
|
|
- getEntVisits: function() {
|
|
|
- let _this = this
|
|
|
- $.ajax({
|
|
|
- type: "POST",
|
|
|
- url: "/bigmember/portrait/subVipPortrait/usage",
|
|
|
- success: function (res) {
|
|
|
- console.log(res)
|
|
|
- if(res.error_code == 0) {
|
|
|
- if(res.data) {
|
|
|
- $('#ent-follow-history .his_usage').text(res.data.usage)
|
|
|
- $('#ent-follow-history .his_total').text('/' + ' ' + res.data.total)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
// 设置用户头像
|
|
|
setUserImg: function () {
|
|
|
$('.user-img > img').attr("src", this.pageUserInfo.avatar || this.pageUserInfo.headimageurl)
|
|
@@ -100,6 +83,23 @@ var mine = {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getBigVipState: function () {
|
|
|
+ var _this = this
|
|
|
+ $.ajax({
|
|
|
+ type: 'GET',
|
|
|
+ url: '/bigmember/use/isAdd?t=' + Date.now(),
|
|
|
+ success: function (res) {
|
|
|
+ if (res && res.data) {
|
|
|
+ if (res.data.memberStatus != null || res.data.memberStatus != undefined) {
|
|
|
+ // 大会员和免费用户不显示企业画像记录菜单
|
|
|
+ if(res.data.vipStatus > 0 && res.data.viper ) {
|
|
|
+ $('#ent-follow-history').show()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
setPageState: function (info) {
|
|
|
if (!info) return
|
|
|
Object.assign(this.pageUserInfo, info)
|