dever il y a 4 ans
Parent
commit
349888cbd2
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      lib/dever/components/seat.vue

+ 7 - 2
lib/dever/components/seat.vue

@@ -133,6 +133,7 @@
 			this.price = parseFloat(this.item.seat_price);
 			var hall = parseInt(this.item.hall_num);
 			this.hall_index = 0;
+			this.hall = parseInt(this.hall_index+1);
 			for (var i=0; i<hall ; i++) {
 				this.hall_data[i] = (i+1) + '号厅';
 			}
@@ -146,11 +147,15 @@
 					//#endif
 				}
 			})
+			this.page = 1;
 			this.initData(1)
 		},
 		methods: {
-			openHall : function() {
-				
+			openHall : function(e) {
+				this.hall_index = e.detail.value;
+				this.hall = parseInt(this.hall_index+1);
+				this.page = 1;
+				this.initData(this.hall);
 			},
 			showTips : function(tipsid, id, tips, code, user) {
 				if (!this.play && this.playtime == 0) {