DESKTOP-O04BTUJ\muzen 3 lat temu
rodzic
commit
35ea1fc674
2 zmienionych plików z 8 dodań i 4 usunięć
  1. 4 1
      src/pages/lottery/detail.vue
  2. 4 3
      src/pages/lottery/index.vue

+ 4 - 1
src/pages/lottery/detail.vue

@@ -38,8 +38,10 @@ export default {
       disabled: false
     }
   },
-  onLoad(e) {
+  onReady() {
     this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
+  },
+  onLoad(e) {
     this.form = {
       resultGoodId: e.resultGoodId,
       lotteryCode: e.lotteryCode
@@ -99,6 +101,7 @@ export default {
   width: 100%;
   height: 100%;
   color: #000;
+  padding: 0;
 
   .nav {
     height: 88rpx;

+ 4 - 3
src/pages/lottery/index.vue

@@ -79,8 +79,10 @@ export default {
       disabled: true
     }
   },
-  onLoad() {
+  onReady() {
     this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
+  },
+  onLoad() {
     // 获取App方法
     getUserInfo.postMessage('获取用户信息')
     // 暴露setUserInfo方法给APP
@@ -88,8 +90,6 @@ export default {
       this.userInfo = res
       this.setUserInfo()
     }
-
-
   },
   methods: {
     setUserInfo() {
@@ -219,6 +219,7 @@ export default {
   background-repeat: no-repeat;
   width: 100%;
   height: 1880rpx;
+  padding: 0;
 
   .nav {
     height: 88rpx;