|
@@ -8,6 +8,15 @@
|
8
|
8
|
:is-prize="myPrize"
|
9
|
9
|
/>
|
10
|
10
|
<WinningPopup :show="showMyWinning" @cancel="cancelWinnint" :current-person="person" />
|
|
11
|
+
|
|
12
|
+ <!-- 奖品没了 -->
|
|
13
|
+ <MyWinning
|
|
14
|
+ :show="NOMyWinningShow"
|
|
15
|
+ @cancelPopus="canclMyWinning"
|
|
16
|
+ :current-month="currentMonth"
|
|
17
|
+ :PrizeState="PrizeState"
|
|
18
|
+ />
|
|
19
|
+
|
11
|
20
|
<img class="topImage" src="../assets/indexImg/indexBgctop.jpg" alt />
|
12
|
21
|
<div class="outer6-wrapper">
|
13
|
22
|
<div class="outer6 flex-col">
|
|
@@ -154,6 +163,7 @@ export default {
|
154
|
163
|
WinningPopup: () => import('@/components/WinningPopup.vue'),
|
155
|
164
|
ImgBox: () => import('@/components/imgbox.vue'),
|
156
|
165
|
BgMusic: () => import('@/components/BgMusic.vue'),
|
|
166
|
+ MyWinning: () => import('@/components/MyWinning.vue')
|
157
|
167
|
},
|
158
|
168
|
data() {
|
159
|
169
|
return {
|
|
@@ -163,7 +173,8 @@ export default {
|
163
|
173
|
showMyWinning: false,
|
164
|
174
|
prizeList: [],
|
165
|
175
|
bingoId: rand(0, 12) + 1, // 可以抽奖的月份
|
166
|
|
- prizeIds: null
|
|
176
|
+ NOMyWinningShow: true,
|
|
177
|
+ PrizeState: 0
|
167
|
178
|
}
|
168
|
179
|
},
|
169
|
180
|
computed: {
|
|
@@ -232,20 +243,23 @@ export default {
|
232
|
243
|
},
|
233
|
244
|
// 抽奖
|
234
|
245
|
drawLots() {
|
235
|
|
- drawLottery(this.person).then((res) => {
|
236
|
|
- // 更新人员信息
|
237
|
|
- this.person = res
|
238
|
|
- this.showMyWinning = true
|
|
246
|
+ drawLottery(this.person)
|
|
247
|
+ .then((res) => {
|
|
248
|
+ // 更新人员信息
|
|
249
|
+ this.person = res
|
|
250
|
+ this.showMyWinning = true
|
239
|
251
|
|
240
|
|
- // 其他动作
|
241
|
|
- }).catch(err => {
|
242
|
|
- if (err && err.code === 9999) {
|
243
|
|
- // 奖品没了
|
244
|
|
- } else {
|
245
|
|
- // 其他错误
|
246
|
|
- const errMsg = err.message || err;
|
247
|
|
- }
|
248
|
|
- })
|
|
252
|
+ // 其他动作
|
|
253
|
+ })
|
|
254
|
+ .catch((err) => {
|
|
255
|
+ if (err && err.code === 9999) {
|
|
256
|
+ // 奖品没了
|
|
257
|
+ ;(this.NOMyWinningShow = true), (this.PrizeState = 0)
|
|
258
|
+ } else {
|
|
259
|
+ // 其他错误
|
|
260
|
+ const errMsg = err.message || err
|
|
261
|
+ }
|
|
262
|
+ })
|
249
|
263
|
},
|
250
|
264
|
// 获取奖品列表
|
251
|
265
|
getPrizes() {
|