|
@@ -152,8 +152,7 @@ export default {
|
152
|
152
|
showPopup: false,
|
153
|
153
|
showMyWinning: false,
|
154
|
154
|
prizeList: [],
|
155
|
|
- clickNum: 0,
|
156
|
|
- bingoClickNum: rand(0, 12),
|
|
155
|
+ bingoId: rand(0, 12) + 1, // 可以抽奖的月份
|
157
|
156
|
prizeIds: null
|
158
|
157
|
}
|
159
|
158
|
},
|
|
@@ -199,7 +198,7 @@ export default {
|
199
|
198
|
|
200
|
199
|
|
201
|
200
|
// 如果点击可以抽奖
|
202
|
|
- if (this.clickNum === this.bingoClickNum) {
|
|
201
|
+ if (month.id === this.bingoId) {
|
203
|
202
|
if (!this.person.personId) {
|
204
|
203
|
// 报错, 提示刷新页面
|
205
|
204
|
} else {
|
|
@@ -213,10 +212,6 @@ export default {
|
213
|
212
|
} else {
|
214
|
213
|
this.showPopup = true
|
215
|
214
|
}
|
216
|
|
-
|
217
|
|
- if (this.clickNum < this.bingoClickNum) {
|
218
|
|
- this.clickNum += 1
|
219
|
|
- }
|
220
|
215
|
},
|
221
|
216
|
// 抽奖
|
222
|
217
|
drawLots() {
|