|
@@ -211,15 +211,14 @@ var vNode = {
|
|
},
|
|
},
|
|
// 查看次数为零,显示遮罩
|
|
// 查看次数为零,显示遮罩
|
|
getStatus: function () {
|
|
getStatus: function () {
|
|
- console.log((!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0) || (this.entvisit.total <= this.entvisit.usage && !this.showContacts))
|
|
|
|
- return (!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0) || (this.entvisit.total <= this.entvisit.usage && !this.showContacts)
|
|
|
|
|
|
+ return (!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0 && !this.entvisit.visited) || (this.entvisit.total <= this.entvisit.usage && !this.showContacts && !this.entvisit.visited)
|
|
},
|
|
},
|
|
isMember () {
|
|
isMember () {
|
|
return this.powerInfo.memberStatus <= 0 || !this.conf._4
|
|
return this.powerInfo.memberStatus <= 0 || !this.conf._4
|
|
},
|
|
},
|
|
isShowUpTip () {
|
|
isShowUpTip () {
|
|
// 出现升级提醒 是新超级订阅买的不是全国、次数已用完 、不是大会员
|
|
// 出现升级提醒 是新超级订阅买的不是全国、次数已用完 、不是大会员
|
|
- return this.entvisit.provin == -1 ? false : true && !this.surplus && this.isVip && this.powerInfo.memberStatus <= 0
|
|
|
|
|
|
+ return this.entvisit.provin == -1 ? false : true && !this.surplus && this.isVip && this.powerInfo.memberStatus <= 0 && !this.entvisit.visited
|
|
},
|
|
},
|
|
surplus: function () {
|
|
surplus: function () {
|
|
return this.entvisit.total > this.entvisit.usage
|
|
return this.entvisit.total > this.entvisit.usage
|
|
@@ -320,7 +319,7 @@ var vNode = {
|
|
urls = '/bigmember/portrait/winner/getData'
|
|
urls = '/bigmember/portrait/winner/getData'
|
|
} else if (_this.powerInfo.memberStatus > 2) {
|
|
} else if (_this.powerInfo.memberStatus > 2) {
|
|
if ( _this.isVip) { // 超级订阅
|
|
if ( _this.isVip) { // 超级订阅
|
|
- if(_this.entvisit.total <= _this.entvisit.usage) {
|
|
|
|
|
|
+ if(_this.entvisit.total <= _this.entvisit.usage && !_this.entvisit.visited) {
|
|
urls = '/bigmember/portrait/winner/getData'
|
|
urls = '/bigmember/portrait/winner/getData'
|
|
} else {
|
|
} else {
|
|
urls = '/bigmember/portrait/subVipPortrait/winner'
|
|
urls = '/bigmember/portrait/subVipPortrait/winner'
|
|
@@ -385,8 +384,9 @@ var vNode = {
|
|
if (res.error_code == 0) {
|
|
if (res.error_code == 0) {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
// res.data.provin = 1
|
|
// res.data.provin = 1
|
|
- res.data.total = 1
|
|
|
|
- res.data.usage = 2
|
|
|
|
|
|
+ // res.data.total = 1
|
|
|
|
+ // res.data.usage = 2
|
|
|
|
+ // res.data.visited = false
|
|
_this.entvisit = res.data
|
|
_this.entvisit = res.data
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -413,7 +413,7 @@ var vNode = {
|
|
} else if (_this.powerInfo.memberStatus > 2) {
|
|
} else if (_this.powerInfo.memberStatus > 2) {
|
|
if (_this.isVip) {
|
|
if (_this.isVip) {
|
|
console.log(_this.entvisit.total,_this.entvisit.usage)
|
|
console.log(_this.entvisit.total,_this.entvisit.usage)
|
|
- if (_this.entvisit.total <= _this.entvisit.usage) {
|
|
|
|
|
|
+ if (_this.entvisit.total <= _this.entvisit.usage && !_this.entvisit.visited) {
|
|
urls = '/bigmember/portrait/winner/getNewMsg'
|
|
urls = '/bigmember/portrait/winner/getNewMsg'
|
|
} else {
|
|
} else {
|
|
urls = '/bigmember/portrait/subVipPortrait/winnerNewMsg'
|
|
urls = '/bigmember/portrait/subVipPortrait/winnerNewMsg'
|