|
@@ -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() {
|