dever 4 years ago
parent
commit
91afc4d112
1 changed files with 8 additions and 5 deletions
  1. 8 5
      pages/dream/index.vue

+ 8 - 5
pages/dream/index.vue

@@ -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;