|
@@ -134,8 +134,8 @@ var vNode = {
|
|
|
this.entInfo.id = eId
|
|
|
this.entInfo.name = ''
|
|
|
this.restore = this.reStoreState()
|
|
|
+ this.getPowerInfo()
|
|
|
if (!this.restore) {
|
|
|
- this.getPowerInfo()
|
|
|
// 获取企业基本信息
|
|
|
this.getEntBaseInfo()
|
|
|
}
|
|
@@ -179,6 +179,10 @@ var vNode = {
|
|
|
_this.gotTab2 = true
|
|
|
console.log('获取企业中标动态...')
|
|
|
}
|
|
|
+ // if(_this.powerInfo.memberStatus <= 0) {
|
|
|
+ // // 不是大会员时才请求访问量接口
|
|
|
+ // _this.getEntVisits()
|
|
|
+ // }
|
|
|
_this.gotTab2 = true
|
|
|
}
|
|
|
});
|
|
@@ -196,7 +200,7 @@ var vNode = {
|
|
|
},
|
|
|
// 查看次数为零,显示遮罩
|
|
|
getStatus: function () {
|
|
|
- return (!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage)
|
|
|
+ return (!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0)
|
|
|
},
|
|
|
surplus: function () {
|
|
|
return this.entvisit.total >= this.entvisit.usage
|
|
@@ -451,6 +455,22 @@ var vNode = {
|
|
|
type: 'GET',
|
|
|
url: '/bigmember/use/isAdd',
|
|
|
success: function (res) {
|
|
|
+ res = {
|
|
|
+ "error_code": 0,
|
|
|
+ "error_msg": "",
|
|
|
+ "data": {
|
|
|
+ "combo": "专家版",
|
|
|
+ "entname": "北京百智享科技有限公司",
|
|
|
+ "isSubCount": false,
|
|
|
+ "isUsed": true,
|
|
|
+ "is_member_trial": false,
|
|
|
+ "memberStatus": 0,
|
|
|
+ "power": [
|
|
|
+ ],
|
|
|
+ "vipStatus": 2,
|
|
|
+ "viper": true
|
|
|
+ }
|
|
|
+ }
|
|
|
if (res.error_code == 0) {
|
|
|
_this.conf.powerLoaded = true
|
|
|
if (res.data) {
|
|
@@ -480,10 +500,8 @@ var vNode = {
|
|
|
if (res.data.memberStatus > 0 && (power.indexOf(4) != -1||power.indexOf(12) != -1||power.indexOf(13) != -1)) {
|
|
|
_this.getEntFollowState()
|
|
|
} else {
|
|
|
- debugger
|
|
|
_this.entInfo.followSearchFinish = true
|
|
|
_this.entInfo.entExist = false
|
|
|
- // 不是大会员时才请求访问量接口
|
|
|
_this.getEntVisits()
|
|
|
}
|
|
|
_this.singleTab = false
|