|
@@ -95,7 +95,8 @@ export default{
|
|
|
circular : true,
|
|
|
},
|
|
|
fetch: {
|
|
|
- is_buy : false,
|
|
|
+ is_read : false,
|
|
|
+ is_ticket : false,
|
|
|
info : {},
|
|
|
button : {},
|
|
|
code : '',
|
|
@@ -145,8 +146,8 @@ export default{
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
- //是否购买
|
|
|
- if (!this.fetch.is_buy) {
|
|
|
+ //是否已经有权限阅读
|
|
|
+ if (!this.fetch.is_read) {
|
|
|
this.showBuy();
|
|
|
} else {
|
|
|
this.view();
|
|
@@ -168,8 +169,10 @@ export default{
|
|
|
self.hideInvite();
|
|
|
});
|
|
|
},
|
|
|
- showBuy : function() {
|
|
|
- this.buyState = true;
|
|
|
+ showBuy : function() {
|
|
|
+ if (this.fetch.is_ticket) {
|
|
|
+ this.buyState = true;
|
|
|
+ }
|
|
|
},
|
|
|
hideBuy : function() {
|
|
|
this.buyState = false;
|