Pārlūkot izejas kodu

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

李志伟 3 gadus atpakaļ
vecāks
revīzija
85ac6d54bd

+ 14
- 13
src/components/CalendarPoster.vue Parādīt failu

@@ -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: #b12b32;
299
+        background-color: #b02c32;
299 300
         border: 0;
300 301
         position: fixed;
301 302
         z-index: 15;

+ 5
- 6
src/components/MyWinning.vue Parādīt failu

@@ -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;

+ 5
- 6
src/components/Popup.vue Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 {

+ 16
- 2
src/pages/Honghe.vue Parādīt failu

@@ -143,7 +143,7 @@ export default {
143 143
   name: 'Honghe',
144 144
   components: {
145 145
     Popup: () => import('@/components/Popup.vue'),
146
-    MyWinning: () => import('@/components/MyWinning.vue'),
146
+    WinningPopup: () => import('@/components/WinningPopup.vue'),
147 147
     ImgBox: () => import('@/components/imgbox.vue')
148 148
   },
149 149
   data() {
@@ -154,7 +154,8 @@ export default {
154 154
       showMyWinning: false,
155 155
       prizeList: [],
156 156
       clickNum: 0,
157
-      bingoClickNum: rand(0, 12)
157
+      bingoClickNum: rand(0, 12),
158
+      prizeIds: null
158 159
     }
159 160
   },
160 161
   computed: {
@@ -180,7 +181,16 @@ export default {
180 181
         }
181 182
       })
182 183
     },
184
+    cancelWinnint() {
185
+      this.showMyWinning = false
186
+    },
183 187
     handleMonthClick(month) {
188
+      this.showMyWinning = true
189
+
190
+      console.log(
191
+        '🚀 ~ file: Honghe.vue ~ line 193 ~ handleMonthClick ~ month',
192
+        month
193
+      )
184 194
       this.list.map((item) => {
185 195
         if (item.id == month.id) {
186 196
           item.mode = 2
@@ -221,6 +231,10 @@ export default {
221 231
     getPrizes() {
222 232
       getPrizeList().then((list) => {
223 233
         this.prizeList = list
234
+        console.log(
235
+          '🚀 ~ file: Honghe.vue ~ line 227 ~ getPrizeList ~ list',
236
+          list
237
+        )
224 238
 
225 239
         const t = setTimeout(() => {
226 240
           hideLoading()

+ 3
- 2
src/pages/SaveShare.vue Parādīt failu

@@ -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;

+ 5
- 5
src/router/index.js Parādīt failu

@@ -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