瀏覽代碼

Merge branch 'master' of http://git.ycjcjy.com/honghe/h5-draw-lots into master

张延森 3 年之前
父節點
當前提交
6480dc667b

二進制
src/assets/indexImg/imgex_MEW/4.jpg 查看文件


+ 8
- 13
src/components/CalendarPoster.vue 查看文件

@@ -42,11 +42,12 @@
42 42
               </div>
43 43
               <div class="wrap5 flex-col">
44 44
                 <span class="txt1" :style="`background-image: url(${pressLucky});`"></span>
45
-                <div
45
+                <!-- <div
46 46
                   class="main5-month flex-col"
47 47
                   :style="`background-image: url(${shaerButRed});`"
48 48
                   @click="()=>{this.shaerShow=true}"
49
-                ></div>
49
+                ></div> -->
50
+              <img class="main5-month flex-col" :src="shaerButRed" @click="()=>{this.shaerShow=true}" />
50 51
               </div>
51 52
             </div>
52 53
           </div>
@@ -191,8 +192,8 @@ export default {
191 192
 
192 193
   // 内容层 z-index要比遮罩大,否则会被遮盖
193 194
   .backhome {
194
-    width: 85px;
195
-    height: 42px;
195
+    width: 80.5px;
196
+    height: 37.8px;
196 197
     position: fixed;
197 198
     left: 1rem;
198 199
     top: 1rem;
@@ -287,17 +288,11 @@ export default {
287 288
       }
288 289
 
289 290
       .main5-month {
290
-        background-position: 50% 50%;
291
-        background-repeat: no-repeat;
292
-        height: 43.2px;
293
-        border-radius: 8px;
294
-        margin-top: 11px;
295
-        width: 308.7px;
296
-        background-color: #b02c32;
297
-        border: 0;
291
+        height: 8.64vw;
292
+        width: 86.4vw;
293
+        bottom: 5vh;        
298 294
         position: fixed;
299 295
         z-index: 15;
300
-        bottom: 4vh;
301 296
       }
302 297
     }
303 298
   }

+ 48
- 29
src/components/MyWinning.vue 查看文件

@@ -7,30 +7,33 @@
7 7
         @click="cancelPopupts"
8 8
       ></div>
9 9
       <div>
10
-        <div v-if="Prize!=undefined">
11
-          <!-- 领取屏保 -->
12
-          <div class="outer3 flex-col">
13
-            <div class="haibao">
14
-              <img class="haibao" src="../assets/prizeImg/MyPrize.jpg" alt />
15
-
16
-              <div class="haibao-jiangping">
17
-                <img v-if="Prize" :src="`${Prize.thumb2}`" alt />
18
-                <h1 v-else>暂无奖品</h1>
10
+        <div v-show="!PrizeShow">
11
+          <div v-if="Prize.prizeId!=undefined">
12
+            <!-- 领取奖品-->
13
+            <div class="outer3 flex-col" style="overflow: auto;height:100vh;">
14
+              <div class="haibao-box" style="overflow: auto;height:100vh;">
15
+                <img class="haibao" src="../assets/prizeImg/MyPrize.jpg" alt />
16
+
17
+                <div class="haibao-jiangping">
18
+                  <img v-if="Prize" :src="`${Prize.thumb2}`" alt />
19
+                  <h1 v-else>暂无奖品</h1>
20
+                </div>
19 21
               </div>
20 22
             </div>
21 23
           </div>
22
-        </div>
23
-        <div v-else style="overflow: auto;height:100vh;">
24
-          <div class="page flex-col">
25
-            <div class="group1 flex-col">
26
-              <div class="wrap3 flex-col">
27
-                <img src="../assets/prizeImg/notPrize.jpg" class="subhaibao" />
28
-                <!-- 没有奖品 -->
24
+          <div v-else style="overflow: auto;height:100vh;">
25
+            <div class="page flex-col">
26
+              <div class="group1 flex-col">
27
+                <div class="wrap3 flex-col">
28
+                  <img src="../assets/prizeImg/notPrize.jpg" class="subhaibao" />
29
+                  <!-- 没有奖品 -->
30
+                </div>
29 31
               </div>
30 32
             </div>
31 33
           </div>
32 34
         </div>
33
-        <div v-if="PrizeState==2" style="overflow: auto;height:100vh;">
35
+
36
+        <div v-show="PrizeShow" style="overflow: auto;height:100vh;">
34 37
           <div class="page flex-col">
35 38
             <div class="group1 flex-col">
36 39
               <div class="wrap3 flex-col">
@@ -69,11 +72,11 @@ export default {
69 72
       type: Object
70 73
     },
71 74
     PrizeState: {
72
-      type: Number
75
+      type: [Number || Boolean]
73 76
     },
74 77
     Prize: {
75
-      type: Object
76
-      // default: () => ({})
78
+      type: Object,
79
+      default: () => ({})
77 80
     },
78 81
     prizeList: {
79 82
       type: Array
@@ -87,7 +90,8 @@ export default {
87 90
       shaerBut: require('../assets/buttonImg/sayFriend.png'),
88 91
       pressImage: require('../assets/buttonImg/pressSave.png'),
89 92
       shaerButRed: require('../assets/buttonImg/sayFriend.png'),
90
-      pressLucky: require('../assets/buttonImg/happyAccept.png')
93
+      pressLucky: require('../assets/buttonImg/happyAccept.png'),
94
+      PrizeShow: null
91 95
     }
92 96
   },
93 97
 
@@ -110,7 +114,17 @@ export default {
110 114
       }
111 115
     }
112 116
   },
117
+  created() {
118
+    this.noShowMy()
119
+  },
113 120
   methods: {
121
+    noShowMy() {
122
+      let a = this.prizeList.reduce((sum, x) => x.exitsNum + sum, 0) <= 0
123
+      this.PrizeShow = a
124
+      console.log('🚀 ~ file: MyWinning.vue ~ line 119 ~ noShowMy ~ a', a)
125
+      // if (this.Prize.prizeId==''&& ) {
126
+      // }
127
+    },
114 128
     /** 取消按钮操作 */
115 129
     cancelPopupts() {
116 130
       // this.shaerShow = false
@@ -189,8 +203,8 @@ export default {
189 203
 
190 204
   // 内容层 z-index要比遮罩大,否则会被遮盖
191 205
   .backhome {
192
-    width: 85px;
193
-    height: 42px;
206
+    width: 80.5px;
207
+    height: 37.8px;
194 208
     position: fixed;
195 209
     left: 1rem;
196 210
     top: 1rem;
@@ -198,24 +212,29 @@ export default {
198 212
     background-repeat: no-repeat !important;
199 213
   }
200 214
   .outer3 {
201
-    width: 100vw;
215
+    width: 100%;
202 216
     height: 100vh;
203 217
     justify-content: flex-end;
204
-    .haibao {
205
-      width: 100vw;
218
+    .haibao-box {
219
+      width: 100%;
220
+      height: 100vh;
221
+
206 222
       position: absolute;
207 223
       left: 0;
208 224
       top: 0;
225
+      .haibao {
226
+        width: 100%;
227
+      }
209 228
       .haibao-jiangping {
210 229
         // border: 1px solid black;
211
-        width: 110vw;
212
-        height: 65vw;
230
+        width: 100vw;
231
+        height: 60vw;
213 232
         position: relative;
214 233
         margin: 0 auto;
215 234
         display: flex;
216 235
         top: 18vh;
217 236
         position: absolute;
218
-        left: -9vw;
237
+        // left: -9vw;
219 238
         img {
220 239
           width: 100%;
221 240
           height: 100%;

+ 1
- 1
src/components/Popup.vue 查看文件

@@ -97,7 +97,7 @@ export default {
97 97
       required: false
98 98
     },
99 99
     PrizeState: {
100
-      type: Number
100
+      type: [Number || Boolean]
101 101
     },
102 102
     prizeList: {
103 103
       type: Array

+ 4
- 2
src/pages/Honghe.vue 查看文件

@@ -230,10 +230,12 @@ export default {
230 230
   },
231 231
   methods: {
232 232
     noShowMy() {
233
-      if (this.noPrize) {
233
+      if (this.person.prizeId !== '' && this.noPrize) {
234 234
         console.log('有奖品')
235 235
       } else {
236
-        this.PrizeState = 2
236
+        this.PrizeState = true
237
+
238
+        console.log('没有奖品')
237 239
       }
238 240
     },
239 241
     //关闭

+ 2
- 2
src/pages/SaveShare.vue 查看文件

@@ -111,8 +111,8 @@ export default {
111 111
   flex-direction: column;
112 112
 }
113 113
 .backhome {
114
-  width: 85px;
115
-  height: 42px;
114
+  width: 80.5px;
115
+  height: 37.8px;
116 116
   position: fixed;
117 117
   left: 1rem;
118 118
   top: 1rem;