DESKTOP-O04BTUJ\muzen 2 роки тому
батько
коміт
4932b346fe
2 змінених файлів з 24 додано та 5 видалено
  1. 20 1
      src/pages/lottery/detail.vue
  2. 4 4
      src/pages/lottery/index.vue

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

@@ -4,8 +4,9 @@
       <uni-icons type="back" style="font-size: 48rpx" @click="getBack" />
       <text class="title">积分抽奖</text>
     </view>
-    <uni-forms class="form" ref="form" :modelValue="form" :rules="rules" label-width="85px"
+    <uni-forms class="form" ref="form" :modelValue="form" :rules="rules" label-width="100px"
       label-position="top" validateTrigger="bind">
+      <view class="tips">请检查您的信息填写正确,确认后无法更改哦</view>
       <uni-forms-item label="收货人:" name="receiveName" required>
         <input type="text" v-model="form.receiveName" placeholder="请输入收货人姓名" />
       </uni-forms-item>
@@ -124,6 +125,12 @@ export default {
     }
   }
 
+  .tips{
+    color: #999;
+    font-size: 24rpx;
+    margin-bottom: 32rpx;
+  }
+
   .form {
     margin-top: 32rpx;
     height: 1122rpx;
@@ -141,6 +148,18 @@ export default {
       margin: 32rpx 0 0 0;
     }
 
+    ::v-deep .uni-forms-item__label{
+      font-size: 32rpx;
+      font-weight: bold;
+    }
+
+    input{
+      border-radius: 16rpx;
+      height: 88rpx;
+      line-height: 88rpx;
+      color: #333333;
+    }
+
     button {
       background: linear-gradient(180deg, #72cdae 0%, #599f82 100%);
       color: #fff;

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

@@ -27,14 +27,14 @@
     <!-- 弹窗 -->
     <uni-popup ref="popup" type="center" :is-mask-click="false">
       <view v-if="this.hasLotteryCount <= 0" class="popup" style="justify-content: space-around">
-        <view>
+        <view style="fontSize: 36rpx">
           <view>很遗憾!</view>
           <view>今日抽奖次数已用光</view>
         </view>
         <img src="../../static/lottery/noChance.png" />
       </view>
       <view v-else class="popup">
-        <view>{{ form.resultGoodName }}</view>
+        <view style="fontSize: 36rpx">{{ form.resultGoodName }}</view>
         <img :src="form.resultGoodPic" />
         <button v-if="form.resultGoodType === 4" @click="getSubmit">领取</button>
         <button v-if="form.resultGoodType === 5" @click="getAgain">再抽一次</button>
@@ -87,6 +87,7 @@ export default {
   },
   onLoad() {
     this.getList()
+    console.log(getApp());
   },
   methods: {
     // 获取页面信息
@@ -191,7 +192,7 @@ export default {
               uni.showToast({
                 title: '领取成功,已累积到积分中!'
               })
-            }, 1000)
+            }, 500)
           }
         })
       }
@@ -301,7 +302,6 @@ export default {
 
     img {
       width: 328rpx;
-      height: 236rpx;
     }
 
     button {