DaMowang před 2 roky
rodič
revize
7e2582234a
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  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(",");