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

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

@@ -1,6 +1,6 @@
 <template>
   <view class="app-container">
-    <view class="nav" :style="{'margin-top': statusBarHeight + 'px'}">
+    <view class="nav" :style="{'padding-top': statusBarHeight + 'px'}">
       <uni-icons type="back" style="font-size: 48rpx" @click="getBack" />
       <text class="title">积分抽奖</text>
     </view>
@@ -37,6 +37,7 @@ export default {
     }
   },
   onLoad(e) {
+    console.log(e);
     this.form = {
       resultGoodId: e.resultGoodId,
       lotteryCode: e.lotteryCode
@@ -95,6 +96,7 @@ export default {
   width: 100%;
   height: 100%;
   color: #000;
+  padding: 0 32rpx 32rpx;
 
   .nav {
     height: 88rpx;

+ 2 - 2
src/pages/lottery/index.vue

@@ -1,6 +1,6 @@
 <template>
   <view class="app-container">
-    <view class="nav" :style="{'margin-top': statusBarHeight + 'px'}">
+    <view class="nav" :style="{'padding-top': statusBarHeight + 'px'}">
       <uni-icons type="back" style="font-size: 48rpx" @click="close" />
       <text class="title">积分抽奖</text>
     </view>
@@ -209,7 +209,7 @@ export default {
   background-repeat: no-repeat;
   width: 100%;
   height: 1880rpx;
-  padding: 0 20rpx 20rpx 20rpx;
+  padding: 0 32rpx 32rpx;
 
   .nav {
     height: 88rpx;