Эх сурвалжийг харах

盲票详情页boxId传undefined问题修改(不确定)

DELL 3 жил өмнө
parent
commit
334a37c986

+ 4 - 4
src/pages/ticketBox/detail.vue

@@ -154,6 +154,10 @@
 		},
 
 		onLoad(opthios) {
+			if (opthios.boxId) {
+				this.boxId = opthios.boxId
+			}
+			
 			if (opthios.scene) {
 				let sceneStr = decodeURIComponent(opthios.scene)
 				this.sceneArr = sceneStr.split('&')
@@ -162,10 +166,6 @@
 				uni.setStorageSync('shareType', this.sceneArr[2])
 			}
 
-			if (opthios.boxId) {
-				this.boxId = opthios.boxId
-			}
-
 			if (opthios.userId) {
 				uni.setStorageSync('shareUid', opthios.userId)
 			}