Baozhangchao 3 년 전
부모
커밋
fc8e7746c3
2개의 변경된 파일9개의 추가작업 그리고 17개의 파일을 삭제
  1. 1
    1
      src/components/WinningPopup.vue
  2. 8
    16
      src/pages/Honghe.vue

+ 1
- 1
src/components/WinningPopup.vue 파일 보기

@@ -33,7 +33,7 @@
33 33
             </div>
34 34
 
35 35
             <div @click="cancel" class="dialog-footer">
36
-              <img @click="cancel" class="btn" src="../assets/buttonImg/happyAccept.png" alt />
36
+              <img class="btn" src="../assets/buttonImg/happyAccept.png" alt />
37 37
             </div>
38 38
           </div>
39 39
           <!-- 右侧 -->

+ 8
- 16
src/pages/Honghe.vue 파일 보기

@@ -177,7 +177,8 @@ export default {
177 177
       prizeList: [],
178 178
       bingoId: rand(0, 12) + 1, // 可以抽奖的月份
179 179
       NOMyWinningShow: true,
180
-      PrizeState: null
180
+      PrizeState: null,
181
+      binggo: false
181 182
     }
182 183
   },
183 184
   computed: {
@@ -240,19 +241,14 @@ export default {
240 241
     //关闭
241 242
     cancelFrom() {
242 243
       this.showPopup = false
243
-      this.list.map((item) => {
244
-        if (item.id == this.currentMonth.id) {
245
-          item.mode = 3
246
-        }
247
-      })
244
+
245
+      this.currentMonth.mode = 3
248 246
     },
249 247
     canclMyWinning() {
250 248
       this.showMyWinning = false
251
-      this.list.map((item) => {
252
-        if (item.id == this.currentMonth.id) {
253
-          item.mode = 3
254
-        }
255
-      })
249
+
250
+      this.currentMonth.mode = this.binggo ? 1 : 3
251
+      this.binggo = false
256 252
     },
257 253
     handleMonthClick(month) {
258 254
       this.list.map((item) => {
@@ -262,11 +258,6 @@ export default {
262 258
       })
263 259
       this.currentMonth = month
264 260
 
265
-      console.log(
266
-        '🚀 ~ file: Honghe.vue ~ line 193 ~ handleMonthClick ~ month',
267
-        month
268
-      )
269
-
270 261
       // 如果点击可以抽奖
271 262
       if (month.id === this.bingoId && !this.noPrize) {
272 263
         // if (!this.noPrize) {
@@ -296,6 +287,7 @@ export default {
296 287
           this.person = res
297 288
           this.showMyWinning = true
298 289
           // this.PrizeState = 0
290
+          this.binggo = true
299 291
 
300 292
           console.log('showMyWinning-----------')
301 293