|
@@ -171,7 +171,7 @@ export default {
|
171
|
171
|
list: shuffle(monthList),
|
172
|
172
|
currentMonth: null,
|
173
|
173
|
showPopup: false,
|
174
|
|
- showMyWinning: true,
|
|
174
|
+ showMyWinning: false,
|
175
|
175
|
prizeList: [],
|
176
|
176
|
bingoId: rand(0, 12) + 1, // 可以抽奖的月份
|
177
|
177
|
NOMyWinningShow: true,
|
|
@@ -195,6 +195,13 @@ export default {
|
195
|
195
|
}
|
196
|
196
|
|
197
|
197
|
return undefined
|
|
198
|
+ },
|
|
199
|
+ noPrize() {
|
|
200
|
+ if (this.prizeList.length && this.person.prizeId) {
|
|
201
|
+ return this.prizeList.reduce((sum, x) => x.exitsNum + sum, 0) <= 0
|
|
202
|
+ }
|
|
203
|
+
|
|
204
|
+ return true
|
198
|
205
|
}
|
199
|
206
|
},
|
200
|
207
|
created() {
|
|
@@ -250,7 +257,8 @@ export default {
|
250
|
257
|
)
|
251
|
258
|
|
252
|
259
|
// 如果点击可以抽奖
|
253
|
|
- if (month.id === this.bingoId) {
|
|
260
|
+ if (month.id === this.bingoId && !this.noPrize) {
|
|
261
|
+ //------------奖品没了-------------------------------------------
|
254
|
262
|
if (!this.person.personId) {
|
255
|
263
|
// 报错, 提示刷新页面
|
256
|
264
|
} else {
|
|
@@ -284,6 +292,8 @@ export default {
|
284
|
292
|
} else {
|
285
|
293
|
// 其他错误
|
286
|
294
|
const errMsg = err.message || err
|
|
295
|
+ console.log('🚀 ~ file: Honghe.vue ~errMsg errMsg', errMsg)
|
|
296
|
+ alert('请刷新重试')
|
287
|
297
|
}
|
288
|
298
|
})
|
289
|
299
|
},
|