DaMowang 2 лет назад
Родитель
Сommit
7e2582234a
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/pagesB/cinema/selectSeat.vue

+ 4 - 2
src/pagesB/cinema/selectSeat.vue

@@ -122,8 +122,10 @@ export default {
                 let da = res.data.data.seats
                 for (let it of da) {
                     let pa = {}
-                    for (let p of this.SeatInfo.areaPrice) {
-                        pa[p.area] = p.showPrice
+                    if(this.SeatInfo.areaPrice){
+                        for (let p of this.SeatInfo.areaPrice) {
+                            pa[p.area] = p.showPrice
+                        }
                     }
 
                     // let xy = it.seatNo.replace(/[^0-9]/ig, ",").split(",");