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