Explorar el Código

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

张延森 hace 3 años
padre
commit
148eb33331

BIN
src/assets/indexImg/indexBgctop.jpg Ver fichero


+ 14
- 13
src/components/CalendarPoster.vue Ver fichero

@@ -43,7 +43,7 @@
43 43
               <div class="wrap5 flex-col">
44 44
                 <span class="txt1" :style="`background-image: url(${pressLucky});`"></span>
45 45
                 <div
46
-                  class="main5 flex-col"
46
+                  class="main5-month flex-col"
47 47
                   :style="`background-image: url(${shaerButRed});`"
48 48
                   @click="()=>{this.shaerShow=true}"
49 49
                 ></div>
@@ -90,8 +90,8 @@ export default {
90 90
       backimg: require('../assets/buttonImg/backImg.png'),
91 91
       shaerBut: require('../assets/buttonImg/sayFriend.png'),
92 92
       pressImage: require('../assets/buttonImg/pressSave.png'),
93
-      shaerButRed: require('../assets/buttonImg/sayFriend.png'),
94
-      pressLucky: require('../assets/buttonImg/happyAccept.png')
93
+      shaerButRed: require('../assets/buttonImg/happyAccept.png'),
94
+      pressLucky: require('../assets/buttonImg/pressSave.png')
95 95
     }
96 96
   },
97 97
 
@@ -191,13 +191,13 @@ export default {
191 191
 
192 192
   // 内容层 z-index要比遮罩大,否则会被遮盖
193 193
   .backhome {
194
-    width: 75px;
194
+    width: 85px;
195 195
     height: 42px;
196 196
     position: fixed;
197 197
     left: 1rem;
198 198
     top: 1rem;
199 199
     z-index: 19;
200
-    background-repeat: no-repeat;
200
+    background-repeat: no-repeat !important;
201 201
   }
202 202
   .outer3 {
203 203
     width: 100vw;
@@ -225,7 +225,7 @@ export default {
225 225
         width: 180px;
226 226
         height: 113px;
227 227
         .section1 {
228
-          height: 48px;
228
+          height: 84px;
229 229
           border-radius: 8px;
230 230
           background-size: 100% auto;
231 231
           background-color: #fff;
@@ -235,8 +235,8 @@ export default {
235 235
           border: 0;
236 236
         }
237 237
         .info2 {
238
-          width: 152px;
239
-          height: 54px;
238
+          width: 156px;
239
+          height: 60px;
240 240
           display: block;
241 241
           color: #fff;
242 242
           text-align: center;
@@ -282,20 +282,21 @@ export default {
282 282
         .txt1 {
283 283
           background-size: 100% auto;
284 284
           background-repeat: no-repeat;
285
-          width: 112px;
286
-          height: 18px;
285
+          width: 160px;
286
+          height: 48px;
287 287
           margin-bottom: 80px;
288 288
         }
289 289
       }
290 290
 
291
-      .main5 {
292
-        background-size: 100% auto;
291
+      .main5-month {
292
+        // background-size: 100% 100%;
293
+        background-position: 50% 50%;
293 294
         background-repeat: no-repeat;
294 295
         height: 48px;
295 296
         border-radius: 8px;
296 297
         margin-top: 11px;
297 298
         width: 343px;
298
-        background-color: #c1172d;
299
+        background-color: #b02c32;
299 300
         border: 0;
300 301
         position: fixed;
301 302
         z-index: 15;

+ 6
- 7
src/components/MyWinning.vue Ver fichero

@@ -1,7 +1,6 @@
1 1
 <template>
2 2
   <div v-if="show" class="dialog-my">
3
-    <div style=" height:100vh; width:100%;
4
-    ">
3
+    <div style=" height:100vh; width:100%;">
5 4
       <!-- 弹窗 -->
6 5
       <!-- <ShaerPopup :show="shaerShow" @closeMyself="cancelPopup" /> -->
7 6
       <!-- 弹窗 -->
@@ -75,7 +74,7 @@ export default {
75 74
       default: '取消',
76 75
       required: false
77 76
     },
78
-    currentMonth: {
77
+    currentPerson: {
79 78
       type: Object
80 79
     },
81 80
     stater: {
@@ -181,7 +180,7 @@ export default {
181 180
   flex-direction: column;
182 181
 }
183 182
 .dialog-my {
184
-  position: fixed;
183
+  position: relative;
185 184
   top: 0;
186 185
   right: 0;
187 186
   width: 100%;
@@ -190,13 +189,13 @@ export default {
190 189
 
191 190
   // 内容层 z-index要比遮罩大,否则会被遮盖
192 191
   .backhome {
193
-    width: 75px;
192
+    width: 85px;
194 193
     height: 42px;
195 194
     position: fixed;
196 195
     left: 1rem;
197 196
     top: 1rem;
198 197
     z-index: 19;
199
-    background-repeat: no-repeat;
198
+    background-repeat: no-repeat !important;
200 199
   }
201 200
   .outer3 {
202 201
     width: 100vw;
@@ -294,7 +293,7 @@ export default {
294 293
         border-radius: 8px;
295 294
         margin-top: 11px;
296 295
         width: 343px;
297
-        background-color: #c1172d;
296
+        background-color: #b12b32;
298 297
         border: 0;
299 298
         position: fixed;
300 299
         z-index: 15;

+ 5
- 6
src/components/Popup.vue Ver fichero

@@ -8,15 +8,11 @@
8 8
     />
9 9
 
10 10
     <!-- 我的奖品 -->
11
-    <MyWinning
12
-      :show="MyWinningShow"
13
-      @cancel="()=>this.MyWinningShow=false"
14
-      :current-month="currentMonth"
15
-    />
11
+    <MyWinning :show="MyWinningShow" @cancel="canclMyWinning" :current-month="currentMonth" />
16 12
 
17 13
     <div class="dialog-mark" @click.self="closeMyself">
18 14
       <div v-show="myShareShow" class="sharetiptxt" style>
19
-        <img style="width:100%; height:100%;" src="../assets/buttonImg/shareText.png" alt />
15
+        <img style=" height:100%;" src="../assets/buttonImg/shareText.png" alt />
20 16
       </div>
21 17
       <transition name="dialog">
22 18
         <div class="dialog-sprite">
@@ -139,6 +135,9 @@ export default {
139 135
     }
140 136
   },
141 137
   methods: {
138
+    canclMyWinning() {
139
+      this.MyWinningShow = false
140
+    },
142 141
     canckle() {
143 142
       this.showPopupCalendarPoster = false
144 143
     },

+ 4
- 8
src/components/ShaerPopup.vue Ver fichero

@@ -2,11 +2,7 @@
2 2
   <div v-if="showSelf" class="dialog" :style="{'z-index': zIndex}">
3 3
     <div class="dialog-mark" @click="closeMyself" :style="{'z-index': zIndex + 1}">
4 4
       <div v-show="myShareShow" class="sharetiptxt" style>
5
-        <img
6
-          style="width:100%; height:100%; z-index:46"
7
-          src="../assets/buttonImg/shareText.png"
8
-          alt
9
-        />
5
+        <img style=" height:100%; z-index:46" src="../assets/buttonImg/shareText.png" alt />
10 6
       </div>
11 7
       <transition name="dialog">
12 8
         <div class="dialog-sprite">
@@ -52,7 +48,7 @@ export default {
52 48
       showSelf: false,
53 49
       zIndex: this.getZIndex(),
54 50
       bodyOverflow: '',
55
-      popuSave: require('../assets/sharePagesImg/2.jpg'),
51
+      popuSave: require('../assets/buttonImg/pressSave.png'),
56 52
 
57 53
       myShareShow: true
58 54
     }
@@ -243,8 +239,8 @@ export default {
243 239
       margin: 10px auto 0;
244 240
       .btn {
245 241
         z-index: 42;
246
-        width: 152px;
247
-        height: 50px;
242
+        width: 180px;
243
+        height: 52px;
248 244
         display: block;
249 245
         text-align: center;
250 246
         align-self: center;

+ 16
- 10
src/components/WinningPopup.vue Ver fichero

@@ -2,22 +2,26 @@
2 2
   <div v-if="showSelf" class="dialog">
3 3
     <div class="dialog-mark" @click.self="closeMyself">
4 4
       <div class="sharetiptxt" style>
5
-        <img style="width:100%; height:100%;" src="../assets/buttonImg/shareText.png" alt />
5
+        <img style=" height:100%;" src="../assets/buttonImg/shareText.png" alt />
6 6
       </div>
7 7
       <transition name="dialog">
8 8
         <div class="dialog-sprite">
9 9
           <div class="dialog-body">
10 10
             <div class="card-wrapper">
11 11
               <div :class="`dialog-popuImag ${classDivAA?'flipped':''}`">
12
-                <img src="../assets/popupImg/popuBody.jpg" alt />
12
+                <!-- <img src="../assets/popupImg/popuBody.jpg" alt /> -->
13 13
                 <div class="back" :style="`background-image: url(${backimg});`">
14
-                  <img style="width: 180px; height:492px" src="../assets/popupImg/popuBody.jpg" alt />
14
+                  <img
15
+                    style="width: 180px; height:492px"
16
+                    src="../assets/prizeImg/HappyWnning.jpg"
17
+                    alt
18
+                  />
15 19
                 </div>
16 20
 
17 21
                 <div class="front">
18 22
                   <img
19 23
                     style="width: 180px; height:492px "
20
-                    src="../assets/buttonImg/backImg.png"
24
+                    src="../assets/prizeImg/HappyWnning.jpg"
21 25
                     alt
22 26
                   />
23 27
                 </div>
@@ -25,8 +29,7 @@
25 29
             </div>
26 30
 
27 31
             <div @click="cancel" class="dialog-footer">
28
-              <!-- <img @click="cancel" class="btn" src="../assets/popupImg/cancelmage.png" alt /> -->
29
-              <h1>开心收下</h1>
32
+              <img @click="cancel" class="btn" src="../assets/buttonImg/happyAccept.png" alt />
30 33
             </div>
31 34
           </div>
32 35
           <!-- 右侧 -->
@@ -252,6 +255,8 @@ export default {
252 255
           width: 180px;
253 256
           height: 492px;
254 257
           background-size: 100% auto;
258
+          background-repeat: no-repeat;
259
+
255 260
           // animation: change 0.8s linear forwards;
256 261
         }
257 262
 
@@ -280,13 +285,14 @@ export default {
280 285
     }
281 286
     //底部按钮
282 287
     .dialog-footer {
283
-      width: 100%;
284
-      background-size: 100% auto;
288
+      width: 140px;
289
+
285 290
       margin: 10px auto 0;
286 291
       .btn {
292
+        background-position: 50% 50%;
293
+        background-repeat: no-repeat;
287 294
         padding-top: 0;
288
-        width: 32px;
289
-        height: 32px;
295
+        width: 100%;
290 296
       }
291 297
     }
292 298
   }

+ 9
- 9
src/components/imgbox.vue Ver fichero

@@ -15,25 +15,25 @@ export default {
15 15
   props: {
16 16
     prize: {
17 17
       type: Object,
18
-      default: () => ({}),
19
-    },
18
+      default: () => ({})
19
+    }
20 20
   },
21 21
   computed: {
22 22
     poster() {
23 23
       return this.mode === 1
24
-        ? require("../assets/index.jpg")
24
+        ? require('../assets/index.jpg')
25 25
         : this.mode === 3
26 26
         ? this.prize.posterImg
27
-        : "";
27
+        : ''
28 28
     },
29 29
     mode() {
30
-      return this.prize.mode;
30
+      return this.prize.mode
31 31
     },
32 32
     nowBackImg() {
33
-      return this.mode === 3 ? this.prize.popImg : "";
34
-    },
35
-  },
36
-};
33
+      return this.mode === 3 ? this.prize.popImg : ''
34
+    }
35
+  }
36
+}
37 37
 </script>
38 38
 <style lang="less" scoped>
39 39
 .bigBox {

+ 26
- 22
src/pages/Honghe.vue Ver fichero

@@ -2,11 +2,7 @@
2 2
   <div class="index-box">
3 3
     <popup :show="showPopup" @cancel="cancelFrom" :current-month="currentMonth" />
4 4
     <MyWinning :show="showMyWinning" :current-month="currentMonth" />
5
-    <div>
6
-      <div>
7
-        <!-- <img class="topImage" src="../assets/indexImg/indexBgc.jpg" alt /> -->
8
-      </div>
9
-    </div>
5
+    <img class="topImage" src="../assets/indexImg/indexBgctop.jpg" alt />
10 6
     <div class="outer6-wrapper">
11 7
       <div class="outer6 flex-col">
12 8
         <div v-for="month in list" :key="month.id" class="section-item">
@@ -16,6 +12,7 @@
16 12
         </div>
17 13
       </div>
18 14
     </div>
15
+    <img class="bottomImage" src="../assets/indexImg/loading_bar.png" alt />
19 16
   </div>
20 17
 </template>
21 18
 
@@ -146,7 +143,7 @@ export default {
146 143
   name: 'Honghe',
147 144
   components: {
148 145
     Popup: () => import('@/components/Popup.vue'),
149
-    MyWinning: () => import('@/components/MyWinning.vue'),
146
+    WinningPopup: () => import('@/components/WinningPopup.vue'),
150 147
     ImgBox: () => import('@/components/imgbox.vue')
151 148
   },
152 149
   data() {
@@ -157,7 +154,8 @@ export default {
157 154
       showMyWinning: false,
158 155
       prizeList: [],
159 156
       clickNum: 0,
160
-      bingoClickNum: rand(0, 12)
157
+      bingoClickNum: rand(0, 12),
158
+      prizeIds: null
161 159
     }
162 160
   },
163 161
   computed: {
@@ -183,6 +181,9 @@ export default {
183 181
         }
184 182
       })
185 183
     },
184
+    cancelWinnint() {
185
+      this.showMyWinning = false
186
+    },
186 187
     handleMonthClick(month) {
187 188
       this.list.map((item) => {
188 189
         if (item.id == month.id) {
@@ -190,6 +191,13 @@ export default {
190 191
         }
191 192
       })
192 193
       this.currentMonth = month
194
+      this.showMyWinning = true
195
+
196
+      console.log(
197
+        '🚀 ~ file: Honghe.vue ~ line 193 ~ handleMonthClick ~ month',
198
+        month
199
+      )
200
+      
193 201
 
194 202
       // 如果点击可以抽奖
195 203
       if (this.clickNum === this.bingoClickNum) {
@@ -224,6 +232,10 @@ export default {
224 232
     getPrizes() {
225 233
       getPrizeList().then((list) => {
226 234
         this.prizeList = list
235
+        console.log(
236
+          '🚀 ~ file: Honghe.vue ~ line 227 ~ getPrizeList ~ list',
237
+          list
238
+        )
227 239
 
228 240
         const t = setTimeout(() => {
229 241
           hideLoading()
@@ -241,10 +253,8 @@ export default {
241 253
   flex-direction: column;
242 254
 }
243 255
 .index-box {
244
-  // background: url('../assets/indexImg/indexBgc.jpg') no-repeat;
245
-  background-color: #c1172d;
246
-  background-size: 100% 100%;
247
-  width: 100%;
256
+  background-color: #b12b32;
257
+  width: 100vw;
248 258
   height: 100vh;
249 259
   position: relative;
250 260
   top: 0;
@@ -256,21 +266,15 @@ export default {
256 266
     z-index: 2;
257 267
   }
258 268
   .topImage {
259
-    width: 90%;
260
-    z-index: 8;
261
-    overflow-wrap: break-word;
262
-    text-align: center;
263
-    white-space: nowrap;
264
-    align-self: center;
265
-    margin-top: 20px;
266
-    background-size: 100% auto;
267
-    background-repeat: no-repeat;
269
+    width: 100vw;
270
+  }
271
+  .bottomImage{
272
+    width: 100vw;
268 273
   }
269 274
   .outer6-wrapper {
270 275
     width: 92vw;
271 276
     border: 1px solid #d0b69a;
272
-    margin: 16px auto 0;
273
-    margin-bottom: 2em;
277
+    margin: 0 auto;
274 278
 
275 279
     .outer6 {
276 280
       flex-flow: row wrap;

+ 4
- 3
src/pages/SaveShare.vue Ver fichero

@@ -112,13 +112,14 @@ export default {
112 112
   flex-direction: column;
113 113
 }
114 114
 .backhome {
115
-  width: 75px;
115
+  width: 85px;
116
+
116 117
   height: 42px;
117 118
   position: fixed;
118 119
   left: 1rem;
119 120
   top: 1rem;
120 121
   z-index: 19;
121
-  background-repeat: no-repeat;
122
+  background-repeat: no-repeat !important;
122 123
 }
123 124
 .outer3 {
124 125
   width: 100vw;
@@ -213,7 +214,7 @@ export default {
213 214
       border-radius: 8px;
214 215
       margin-top: 11px;
215 216
       width: 343px;
216
-      background-color: #c1172d;
217
+      background-color: #b12b32;
217 218
       border: 0;
218 219
       position: fixed;
219 220
       z-index: 15;

+ 5
- 5
src/router/index.js Ver fichero

@@ -21,12 +21,12 @@ const router = new Router({
21 21
       component: Honghe,
22 22
 
23 23
     },
24
-    {
25
-      path: '/SaveShare',
26
-      name: 'SaveShare',
27
-      component: SaveShare,
24
+    // {
25
+    //   path: '/SaveShare',
26
+    //   name: 'SaveShare',
27
+    //   component: SaveShare,
28 28
 
29
-    },
29
+    // },
30 30
   ]
31 31
 })
32 32