Pārlūkot izejas kodu

Merge branch 'master' of http://git.ycjcjy.com/honghe/h5-draw-lots

李志伟 3 gadus atpakaļ
vecāks
revīzija
dbd51de400
2 mainītis faili ar 2 papildinājumiem un 7 dzēšanām
  1. Binārs
      public/loading.gif
  2. 2
    7
      src/pages/Honghe.vue

Binārs
public/loading.gif Parādīt failu


+ 2
- 7
src/pages/Honghe.vue Parādīt failu

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