Baozhangchao 3 年 前
コミット
fc8e7746c3
共有2 個のファイルを変更した9 個の追加17 個の削除を含む
  1. 1
    1
      src/components/WinningPopup.vue
  2. 8
    16
      src/pages/Honghe.vue

+ 1
- 1
src/components/WinningPopup.vue ファイルの表示

33
             </div>
33
             </div>
34
 
34
 
35
             <div @click="cancel" class="dialog-footer">
35
             <div @click="cancel" class="dialog-footer">
36
-              <img @click="cancel" class="btn" src="../assets/buttonImg/happyAccept.png" alt />
36
+              <img class="btn" src="../assets/buttonImg/happyAccept.png" alt />
37
             </div>
37
             </div>
38
           </div>
38
           </div>
39
           <!-- 右侧 -->
39
           <!-- 右侧 -->

+ 8
- 16
src/pages/Honghe.vue ファイルの表示

177
       prizeList: [],
177
       prizeList: [],
178
       bingoId: rand(0, 12) + 1, // 可以抽奖的月份
178
       bingoId: rand(0, 12) + 1, // 可以抽奖的月份
179
       NOMyWinningShow: true,
179
       NOMyWinningShow: true,
180
-      PrizeState: null
180
+      PrizeState: null,
181
+      binggo: false
181
     }
182
     }
182
   },
183
   },
183
   computed: {
184
   computed: {
240
     //关闭
241
     //关闭
241
     cancelFrom() {
242
     cancelFrom() {
242
       this.showPopup = false
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
     canclMyWinning() {
247
     canclMyWinning() {
250
       this.showMyWinning = false
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
     handleMonthClick(month) {
253
     handleMonthClick(month) {
258
       this.list.map((item) => {
254
       this.list.map((item) => {
262
       })
258
       })
263
       this.currentMonth = month
259
       this.currentMonth = month
264
 
260
 
265
-      console.log(
266
-        '🚀 ~ file: Honghe.vue ~ line 193 ~ handleMonthClick ~ month',
267
-        month
268
-      )
269
-
270
       // 如果点击可以抽奖
261
       // 如果点击可以抽奖
271
       if (month.id === this.bingoId && !this.noPrize) {
262
       if (month.id === this.bingoId && !this.noPrize) {
272
         // if (!this.noPrize) {
263
         // if (!this.noPrize) {
296
           this.person = res
287
           this.person = res
297
           this.showMyWinning = true
288
           this.showMyWinning = true
298
           // this.PrizeState = 0
289
           // this.PrizeState = 0
290
+          this.binggo = true
299
 
291
 
300
           console.log('showMyWinning-----------')
292
           console.log('showMyWinning-----------')
301
 
293