Przeglądaj źródła

试玩传递undefined修改

DELL 3 lat temu
rodzic
commit
0d9959d9eb
1 zmienionych plików z 6 dodań i 8 usunięć
  1. 6 8
      src/packagePrize/rolling/index.vue

+ 6 - 8
src/packagePrize/rolling/index.vue

@@ -130,6 +130,12 @@
 		},
 		
 		onLoad(options) {
+			if(options) {
+				this.boxId = options.boxId
+				this.isTry = Number(options.isTry)
+				this.orderId = options.orderId
+				this.ticketId = options.ticketId
+			}
 			// 创建动画实例
 			this.animation = uni.createAnimation()
 			
@@ -137,14 +143,6 @@
 			const res = uni.getMenuButtonBoundingClientRect()
 			this.statusHeight = res.top //胶囊距离顶部
 			// #endif
-	
-
-			if(options) {
-				this.boxId = options.boxId
-				this.isTry = Number(options.isTry)
-				this.orderId = options.orderId
-				this.ticketId = options.ticketId
-			}
 		},
 		
 		onUnload() {