# 巴士選位
請直接查詢接口名稱
# 頁面引入須加上id busPagePara標籤
ex:
```
<div id="busPagePara" data-orderid="2022-21028" data-setbar="True"></div>
```
# 取得座位資訊
Method: Post
接口名稱:/order/getbusinfojson
輸入參數
| OrderID |
| -------- |
| 型別:string |
ex: {"OrderID":"2022-11392"}
資料回傳範例
```
{
"OrderID": "2022-11392",
"GroupID": "22TM73166-T",
"TourName": "雄獅21【天天出發】Together一起旅行.台北武陵農場榮民、長者、學生接駁優惠",
"GoDate": "20220731",
"BackDate": "20220731",
"TourDays": 1,
"BusGType": "Serial",
"CarList": [
{
"csm00_csno": "C202200000031",
"csm00_cartype": "Bus41",
"csm00_bdt": "07/31",
"ImgName": "41-2.jpg",
"ImgNameList": [
"41-2.jpg"
]
}
],
"PassengerList": [
{
"Seq": 1,
"Name": "旅客客",
"SeatNumber": "2A"
},
{
"Seq": 2,
"Name": "旅客姓名名",
"SeatNumber": "2B"
}
]
}
```
# 車廂資料(火車、巴士)
Method: Post
接口名稱:/order/getbusseatlistjson
輸入參數:
| OrderID | CarNo |
| -------- | -------- |
| 型別:string | 型別:string |
ex:
```
{
"OrderID": "2022-11392",
"CarNo": "C202200000031"
}
```
資料回傳範例:
#### 對照表
|CarTypeName|CarTypeCode 車種|CabinName 車廂類型|
| --------- | --------- | ------- |
|19座巴士|Bus19|Bus19|
|19座小可愛|Bus19_S1|Bus19_S1|
|19座巴士(梅花座)|Bus19_Sp|Bus19_Sp|
|25座小可愛|Bus25|Bus25|
|32人大巴|Bus32|Bus32|
|34人大巴|Bus34|Bus34|
|41人大巴|Bus41|Bus41|
|41人大巴(梅花座)|Bus41_Sp|Bus41_Sp|
|43人大巴|Bus43|Bus43|
|45人大巴|Bus45|Bus45|
|鳴日號(6節)|Sunrise_6Car|Car33<br>BarCar<br>LivingRoomCar|
|鳴日號(商務車廂)|Sunrise_BusinessCar|Car33|
|鳴日號(客廳車廂)|Sunrise_LivingCar|LivingRoomCar|
|兩鐵(6節)|TranBike_6Car|TranBike_BikeCar<br>TranBike_BusinessCar|
|兩鐵(人車車廂)|TranBike_BikeCar|TranBike_BikeCar|
|兩鐵(一般車廂)|TranBike_BusinessCar|TranBike_BusinessCar|
```
{
"CarData": [
{
"CarTypeName": "41人大巴",
"CarTypeDescription": "巴士四排椅座位表 客座41座",
"CarTypeCode": "Bus41",
"CarNumber": null,
"CabinName": "Bus41",
"Seats": [
//type(所有類別):driv:駕駛,guid:導遊,aisl:走道,door:前門後門安全門,
seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
//csm02_seq:selected座位的旅客序號 (1:seq 1旅客, null:非selected座位)
[
{
"idx": 0,
"type": "driv",
"text": "駕駛",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "guid",
"text": "導遊",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": null,
"row": 12, (代表此列向下到第12都是走道)
"col": 1
},
{
"idx": 0,
"type": "door",
"text": "前門",
"row": 2,
"col": 2
}
],
[
{
"idx": 1,
"type": "seat",
"text": "1A",
"row": 1,
"col": 1
},
{
"idx": 2,
"type": "seat",
"text": "1B",
"row": 1,
"col": 1
}
],
[
{
"idx": 3,
"type": "seat",
"text": "2A",
"row": 1,
"col": 1
},
{
"idx": 4,
"type": "seat",
"text": "2B",
"row": 1,
"col": 1
},
{
"idx": 21,
"type": "seat",
"text": "2C",
"row": 1,
"col": 1
},
{
"idx": 22,
"type": "seat",
"text": "2D",
"row": 1,
"col": 1
}
],
[
{
"idx": 5,
"type": "seat",
"text": "3A",
"row": 1,
"col": 1
},
{
"idx": 6,
"type": "seat",
"text": "3B",
"row": 1,
"col": 1
},
{
"idx": 23,
"type": "seat",
"text": "3C",
"row": 1,
"col": 1
},
{
"idx": 24,
"type": "seat",
"text": "3D",
"row": 1,
"col": 1
}
],
[
{
"idx": 7,
"type": "seat",
"text": "4A",
"row": 1,
"col": 1
},
{
"idx": 8,
"type": "seat",
"text": "4B",
"row": 1,
"col": 1
},
{
"idx": 25,
"type": "seat",
"text": "4C",
"row": 1,
"col": 1
},
{
"idx": 26,
"type": "seat",
"text": "4D",
"row": 1,
"col": 1
}
],
[
{
"idx": 9,
"type": "seat",
"text": "5A",
"row": 1,
"col": 1
},
{
"idx": 10,
"type": "seat",
"text": "5B",
"row": 1,
"col": 1
},
{
"idx": 27,
"type": "seat",
"text": "5C",
"row": 1,
"col": 1
},
{
"idx": 28,
"type": "seat",
"text": "5D",
"row": 1,
"col": 1
}
],
[
{
"idx": 11,
"type": "seat",
"text": "6A",
"row": 1,
"col": 1
},
{
"idx": 12,
"type": "seat",
"text": "6B",
"row": 1,
"col": 1
},
{
"idx": 29,
"type": "seat",
"text": "6C",
"row": 1,
"col": 1
},
{
"idx": 30,
"type": "seat",
"text": "6D",
"row": 1,
"col": 1
}
],
[
{
"idx": 13,
"type": "seat",
"text": "7A",
"row": 1,
"col": 1
},
{
"idx": 14,
"type": "seat",
"text": "7B",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "door",
"text": "後門",
"row": 2,
"col": 2
}
],
[
{
"idx": 15,
"type": "seat",
"text": "8A",
"row": 1,
"col": 1
},
{
"idx": 16,
"type": "seat",
"text": "8B",
"row": 1,
"col": 1
}
],
[
{
"idx": 17,
"type": "seat",
"text": "9A",
"row": 1,
"col": 1
},
{
"idx": 18,
"type": "seat",
"text": "9B",
"row": 1,
"col": 1
},
{
"idx": 31,
"type": "seat",
"text": "8C",
"row": 1,
"col": 1
},
{
"idx": 32,
"type": "seat",
"text": "8D",
"row": 1,
"col": 1
}
],
[
{
"idx": 0,
"type": "door",
"text": "安全門",
"row": 1,
"col": 2
},
{
"idx": 33,
"type": "seat",
"text": "9C",
"row": 1,
"col": 1
},
{
"idx": 34,
"type": "seat",
"text": "9D",
"row": 1,
"col": 1
}
],
[
{
"idx": 19,
"type": "seat",
"text": "10A",
"row": 1,
"col": 1
},
{
"idx": 20,
"type": "seat",
"text": "10B",
"row": 1,
"col": 1
},
{
"idx": 35,
"type": "seat",
"text": "10C",
"row": 1,
"col": 1
},
{
"idx": 36,
"type": "seat",
"text": "10D",
"row": 1,
"col": 1
}
],
[
{
"idx": 37,
"type": "seat",
"text": "11A",
"row": 1,
"col": 1
},
{
"idx": 38,
"type": "seat",
"text": "11B",
"row": 1,
"col": 1
},
{
"idx": 39,
"type": "seat",
"text": "11E",
"row": 1,
"col": 1
},
{
"idx": 40,
"type": "seat",
"text": "11C",
"row": 1,
"col": 1
},
{
"idx": 41,
"type": "seat",
"text": "11D",
"row": 1,
"col": 1
}
]
]
}
]
}
```
### 火車(商務車廂)
資料回傳範例:
```json=
{
"CarData" : [{
"CarTypeName":"",
"CarTypeDescription":"商務車廂",
"CarTypeCode":"Sunrise_BusinessCar",
"CarNumber": null,
"CabinName": "Car33",
//type:driv:駕駛,guid:導遊,aisl:走道,door:前門後門安全門,seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
//csm02_seq:selected座位的旅客序號 (1:seq 1旅客, null:非selected座位)
"Seats":[
[
{
"idx": 23,
"type": "seat",
"text": "1",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": "走道",
"row": 10,
"col": 1
}
],
[
{
"idx": 1,
"type": "seat",
"text": "2",
"row": 1,
"col": 1
},
{
"idx": 2,
"type": "seat",
"text": "3",
"row": 1,
"col": 1
}
],
[
{
"idx": 24,
"type": "seat",
"text": "4",
"row": 1,
"col": 1
},
{
"idx": 3,
"type": "seat",
"text": "5",
"row": 1,
"col": 1
},
{
"idx": 4,
"type": "seat",
"text": "6",
"row": 1,
"col": 1
}
],
[
{
"idx": 25,
"type": "seat",
"text": "7",
"row": 1,
"col": 1
},
{
"idx": 5,
"type": "seat",
"text": "8",
"row": 1,
"col": 1
},
{
"idx": 6,
"type": "seat",
"text": "9",
"row": 1,
"col": 1
}
],
[
{
"idx": 26,
"type": "seat",
"text": "10",
"row": 1,
"col": 1
},
{
"idx": 7,
"type": "seat",
"text": "11",
"row": 1,
"col": 1
},
{
"idx": 8,
"type": "seat",
"text": "12",
"row": 1,
"col": 1
}
],
[
{
"idx": 27,
"type": "seat",
"text": "13",
"row": 1,
"col": 1
},
{
"idx": 9,
"type": "seat",
"text": "14",
"row": 1,
"col": 1
},
{
"idx": 10,
"type": "seat",
"text": "15",
"row": 1,
"col": 1
}
],
[
{
"idx": 28,
"type": "seat",
"text": "16",
"row": 1,
"col": 1
},
{
"idx": 11,
"type": "seat",
"text": "17",
"row": 1,
"col": 1
},
{
"idx": 12,
"type": "seat",
"text": "18",
"row": 1,
"col": 1
}
],
[
{
"idx": 29,
"type": "seat",
"text": "19",
"row": 1,
"col": 1
},
{
"idx": 13,
"type": "seat",
"text": "20",
"row": 1,
"col": 1
},
{
"idx": 14,
"type": "seat",
"text": "21",
"row": 1,
"col": 1
}
],
[
{
"idx": 30,
"type": "seat",
"text": "22",
"row": 1,
"col": 1
},
{
"idx": 15,
"type": "seat",
"text": "23",
"row": 1,
"col": 1
},
{
"idx": 16,
"type": "seat",
"text": "24",
"row": 1,
"col": 1
}
],
[
{
"idx": 31,
"type": "seat",
"text": "25",
"row": 1,
"col": 1
},
{
"idx": 17,
"type": "seat",
"text": "26",
"row": 1,
"col": 1
},
{
"idx": 18,
"type": "seat",
"text": "27",
"row": 1,
"col": 1
}
],
[
{
"idx": 32,
"type": "seat",
"text": "28",
"row": 1,
"col": 1
},
{
"idx": 19,
"type": "seat",
"text": "29",
"row": 1,
"col": 1
},
{
"idx": 20,
"type": "seat",
"text": "30",
"row": 1,
"col": 1
}
],
[
{
"idx": 33,
"type": "seat",
"text": "31",
"row": 1,
"col": 1
},
{
"idx": 21,
"type": "seat",
"text": "32",
"row": 1,
"col": 1
},
{
"idx": 22,
"type": "seat",
"text": "33",
"row": 1,
"col": 1
}
]
]
}]
}
```
### 火車(客廳車廂)
資料回傳範例:
```json=
{
"CarData" : [{
"CarTypeName":"",
"CarTypeDescription":"客廳車廂",
"CarTypeCode":"Sunrise_LivingCar",
"CarNumber": null,
"CabinName": "LivingRoomCar",
//type:driv:駕駛,guid:導遊,aisl:走道,door:前門後門安全門,seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
//csm02_seq:selected座位的旅客序號 (1:seq 1旅客, null:非selected座位)
"Seats":[
[
{
"idx": 15,
"type": "seat",
"text": "1",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": "走道",
"row": 7,
"col": 1
}
],
[
{
"idx": 1,
"type": "seat",
"text": "2",
"row": 1,
"col": 1
},
{
"idx": 2,
"type": "seat",
"text": "3",
"row": 1,
"col": 1
}
],
[
{
"idx": 16,
"type": "seat",
"text": "4",
"row": 1,
"col": 1
},
{
"idx": 3,
"type": "seat",
"text": "5",
"row": 1,
"col": 1
},
{
"idx": 4,
"type": "seat",
"text": "6",
"row": 1,
"col": 1
}
],
[
{
"idx": 17,
"type": "seat",
"text": "7",
"row": 1,
"col": 1
},
{
"idx": 5,
"type": "seat",
"text": "8",
"row": 1,
"col": 1
},
{
"idx": 6,
"type": "seat",
"text": "9",
"row": 1,
"col": 1
}
],
[
{
"idx": 18,
"type": "seat",
"text": "10",
"row": 1,
"col": 1
},
{
"idx": 7,
"type": "seat",
"text": "11",
"row": 1,
"col": 1
},
{
"idx": 8,
"type": "seat",
"text": "12",
"row": 1,
"col": 1
}
],
[
{
"idx": 19,
"type": "seat",
"text": "13",
"row": 1,
"col": 1
},
{
"idx": 9,
"type": "seat",
"text": "14",
"row": 1,
"col": 1
},
{
"idx": 10,
"type": "seat",
"text": "15",
"row": 1,
"col": 1
}
],
[
{
"idx": 20,
"type": "seat",
"text": "16",
"row": 1,
"col": 1
},
{
"idx": 11,
"type": "seat",
"text": "17",
"row": 1,
"col": 1
},
{
"idx": 12,
"type": "seat",
"text": "18",
"row": 1,
"col": 1
}
],
[
{
"idx": 21,
"type": "seat",
"text": "19",
"row": 1,
"col": 1
},
{
"idx": 13,
"type": "seat",
"text": "20",
"row": 1,
"col": 1
},
{
"idx": 14,
"type": "seat",
"text": "21",
"row": 1,
"col": 1
}
]
]
}]
}
```
### 火車(鳴日號6節)
資料回傳範例:
```json=
{
"CarData" : [
{
"CarTypeName":"",
"CarTypeDescription":"鳴日號",
"CarTypeCode":"Sunrise_6Car",
"CarNumber": 1,//第幾節車廂
"CabinName": "Car33",
//type:aisl:走道,seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
//csm02_seq:selected座位的旅客序號 (1:seq 1旅客, null:非selected座位)
"Seats":[
[
{
"idx": 103,
"type": "seat",
"text": "1",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": "走道",
"row": 11,
"col": 1
}
],
[
{
"idx": 1,
"type": "seat",
"text": "2",
"row": 1,
"col": 1
},
{
"idx": 2,
"type": "seat",
"text": "3",
"row": 1,
"col": 1
}
],
[
{
"idx": 104,
"type": "seat",
"text": "4",
"row": 1,
"col": 1
},
{
"idx": 3,
"type": "seat",
"text": "5",
"row": 1,
"col": 1
},
{
"idx": 4,
"type": "seat",
"text": "6",
"row": 1,
"col": 1
}
],
[
{
"idx": 105,
"type": "seat",
"text": "7",
"row": 1,
"col": 1
},
{
"idx": 5,
"type": "seat",
"text": "8",
"row": 1,
"col": 1
},
{
"idx": 6,
"type": "seat",
"text": "9",
"row": 1,
"col": 1
}
],
[
{
"idx": 106,
"type": "seat",
"text": "10",
"row": 1,
"col": 1
},
{
"idx": 7,
"type": "seat",
"text": "11",
"row": 1,
"col": 1
},
{
"idx": 8,
"type": "seat",
"text": "12",
"row": 1,
"col": 1
}
],
[
{
"idx": 107,
"type": "seat",
"text": "13",
"row": 1,
"col": 1
},
{
"idx": 9,
"type": "seat",
"text": "14",
"row": 1,
"col": 1
},
{
"idx": 10,
"type": "seat",
"text": "15",
"row": 1,
"col": 1
}
],
[
{
"idx": 108,
"type": "seat",
"text": "16",
"row": 1,
"col": 1
},
{
"idx": 11,
"type": "seat",
"text": "17",
"row": 1,
"col": 1
},
{
"idx": 12,
"type": "seat",
"text": "18",
"row": 1,
"col": 1
}
],
[
{
"idx": 109,
"type": "seat",
"text": "19",
"row": 1,
"col": 1
},
{
"idx": 13,
"type": "seat",
"text": "20",
"row": 1,
"col": 1
},
{
"idx": 14,
"type": "seat",
"text": "21",
"row": 1,
"col": 1
}
],
[
{
"idx": 110,
"type": "seat",
"text": "22",
"row": 1,
"col": 1
},
{
"idx": 15,
"type": "seat",
"text": "23",
"row": 1,
"col": 1
},
{
"idx": 16,
"type": "seat",
"text": "24",
"row": 1,
"col": 1
}
],
[
{
"idx": 111,
"type": "seat",
"text": "25",
"row": 1,
"col": 1
},
{
"idx": 17,
"type": "seat",
"text": "26",
"row": 1,
"col": 1
},
{
"idx": 18,
"type": "seat",
"text": "27",
"row": 1,
"col": 1
}
],
[
{
"idx": 112,
"type": "seat",
"text": "28",
"row": 1,
"col": 1
},
{
"idx": 19,
"type": "seat",
"text": "29",
"row": 1,
"col": 1
},
{
"idx": 20,
"type": "seat",
"text": "30",
"row": 1,
"col": 1
}
],
[
{
"idx": 113,
"type": "seat",
"text": "31",
"row": 1,
"col": 1
},
{
"idx": 21,
"type": "seat",
"text": "32",
"row": 1,
"col": 1
},
{
"idx": 22,
"type": "seat",
"text": "33",
"row": 1,
"col": 1
}
]
]
},
{
"CarTypeName":"",
"CarTypeDescription":"鳴日號",
"CarTypeCode":"Sunrise_6Car",
"CarNumber": 2,//第幾節車廂
"CabinName": "Car33",
//type:aisl:走道,seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
//csm02_seq:selected座位的旅客序號 (1:seq 1旅客, null:非selected座位)
"Seats":[
[
{
"idx": 114,
"type": "seat",
"text": "1",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": "走道",
"row": 11,
"col": 1
}
],
[
{
"idx": 23,
"type": "seat",
"text": "2",
"row": 1,
"col": 1
},
{
"idx": 24,
"type": "seat",
"text": "3",
"row": 1,
"col": 1
}
],
[
{
"idx": 115,
"type": "seat",
"text": "4",
"row": 1,
"col": 1
},
{
"idx": 25,
"type": "seat",
"text": "5",
"row": 1,
"col": 1
},
{
"idx": 26,
"type": "seat",
"text": "6",
"row": 1,
"col": 1
}
],
[
{
"idx": 116,
"type": "seat",
"text": "7",
"row": 1,
"col": 1
},
{
"idx": 27,
"type": "seat",
"text": "8",
"row": 1,
"col": 1
},
{
"idx": 28,
"type": "seat",
"text": "9",
"row": 1,
"col": 1
}
],
[
{
"idx": 117,
"type": "seat",
"text": "10",
"row": 1,
"col": 1
},
{
"idx": 29,
"type": "seat",
"text": "11",
"row": 1,
"col": 1
},
{
"idx": 30,
"type": "seat",
"text": "12",
"row": 1,
"col": 1
}
],
[
{
"idx": 118,
"type": "seat",
"text": "13",
"row": 1,
"col": 1
},
{
"idx": 31,
"type": "seat",
"text": "14",
"row": 1,
"col": 1
},
{
"idx": 32,
"type": "seat",
"text": "15",
"row": 1,
"col": 1
}
],
[
{
"idx": 119,
"type": "seat",
"text": "16",
"row": 1,
"col": 1
},
{
"idx": 33,
"type": "seat",
"text": "17",
"row": 1,
"col": 1
},
{
"idx": 34,
"type": "seat",
"text": "18",
"row": 1,
"col": 1
}
],
[
{
"idx": 120,
"type": "seat",
"text": "19",
"row": 1,
"col": 1
},
{
"idx": 35,
"type": "seat",
"text": "20",
"row": 1,
"col": 1
},
{
"idx": 36,
"type": "seat",
"text": "21",
"row": 1,
"col": 1
}
],
[
{
"idx": 121,
"type": "seat",
"text": "22",
"row": 1,
"col": 1
},
{
"idx": 37,
"type": "seat",
"text": "23",
"row": 1,
"col": 1
},
{
"idx": 38,
"type": "seat",
"text": "24",
"row": 1,
"col": 1
}
],
[
{
"idx": 122,
"type": "seat",
"text": "25",
"row": 1,
"col": 1
},
{
"idx": 39,
"type": "seat",
"text": "26",
"row": 1,
"col": 1
},
{
"idx": 40,
"type": "seat",
"text": "27",
"row": 1,
"col": 1
}
],
[
{
"idx": 123,
"type": "seat",
"text": "28",
"row": 1,
"col": 1
},
{
"idx": 41,
"type": "seat",
"text": "29",
"row": 1,
"col": 1
},
{
"idx": 42,
"type": "seat",
"text": "30",
"row": 1,
"col": 1
}
],
[
{
"idx": 124,
"type": "seat",
"text": "31",
"row": 1,
"col": 1
},
{
"idx": 43,
"type": "seat",
"text": "32",
"row": 1,
"col": 1
},
{
"idx": 44,
"type": "seat",
"text": "33",
"row": 1,
"col": 1
}
]
]
},
{
"CarTypeName":"",
"CarTypeDescription":"鳴日號",
"CarTypeCode":"Sunrise_6Car",
"CarNumber": 3,//第幾節車廂
"CabinName": "LivingRoomCar",
//type:aisl:走道,seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
//csm02_seq:selected座位的旅客序號 (1:seq 1旅客, null:非selected座位)
"Seats":[
[
{
"idx": 125,
"type": "seat",
"text": "1",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": "走道",
"row": 7,
"col": 1
}
],
[
{
"idx": 45,
"type": "seat",
"text": "2",
"row": 1,
"col": 1
},
{
"idx": 46,
"type": "seat",
"text": "3",
"row": 1,
"col": 1
}
],
[
{
"idx": 126,
"type": "seat",
"text": "4",
"row": 1,
"col": 1
},
{
"idx": 47,
"type": "seat",
"text": "5",
"row": 1,
"col": 1
},
{
"idx": 48,
"type": "seat",
"text": "6",
"row": 1,
"col": 1
}
],
[
{
"idx": 127,
"type": "seat",
"text": "7",
"row": 1,
"col": 1
},
{
"idx": 49,
"type": "seat",
"text": "8",
"row": 1,
"col": 1
},
{
"idx": 50,
"type": "seat",
"text": "9",
"row": 1,
"col": 1
}
],
[
{
"idx": 128,
"type": "seat",
"text": "10",
"row": 1,
"col": 1
},
{
"idx": 51,
"type": "seat",
"text": "11",
"row": 1,
"col": 1
},
{
"idx": 52,
"type": "seat",
"text": "12",
"row": 1,
"col": 1
}
],
[
{
"idx": 129,
"type": "seat",
"text": "13",
"row": 1,
"col": 1
},
{
"idx": 53,
"type": "seat",
"text": "14",
"row": 1,
"col": 1
},
{
"idx": 54,
"type": "seat",
"text": "15",
"row": 1,
"col": 1
}
],
[
{
"idx": 130,
"type": "seat",
"text": "16",
"row": 1,
"col": 1
},
{
"idx": 55,
"type": "seat",
"text": "17",
"row": 1,
"col": 1
},
{
"idx": 56,
"type": "seat",
"text": "18",
"row": 1,
"col": 1
}
],
[
{
"idx": 131,
"type": "seat",
"text": "19",
"row": 1,
"col": 1
},
{
"idx": 57,
"type": "seat",
"text": "20",
"row": 1,
"col": 1
},
{
"idx": 58,
"type": "seat",
"text": "21",
"row": 1,
"col": 1
}
]
]
},
{
"CarTypeName":"",
"CarTypeDescription":"鳴日號",
"CarTypeCode":"Sunrise_6Car",
"CarNumber": 5,//第幾節車廂
"CabinName": "Car33",
//type:aisl:走道,seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
//csm02_seq:selected座位的旅客序號 (1:seq 1旅客, null:非selected座位)
"Seats":[
[
{
"idx": 132,
"type": "seat",
"text": "1",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": "走道",
"row": 11,
"col": 1
}
],
[
{
"idx": 59,
"type": "seat",
"text": "2",
"row": 1,
"col": 1
},
{
"idx": 60,
"type": "seat",
"text": "3",
"row": 1,
"col": 1
}
],
[
{
"idx": 133,
"type": "seat",
"text": "4",
"row": 1,
"col": 1
},
{
"idx": 61,
"type": "seat",
"text": "5",
"row": 1,
"col": 1
},
{
"idx": 62,
"type": "seat",
"text": "6",
"row": 1,
"col": 1
}
],
[
{
"idx": 134,
"type": "seat",
"text": "7",
"row": 1,
"col": 1
},
{
"idx": 63,
"type": "seat",
"text": "8",
"row": 1,
"col": 1
},
{
"idx": 64,
"type": "seat",
"text": "9",
"row": 1,
"col": 1
}
],
[
{
"idx": 135,
"type": "seat",
"text": "10",
"row": 1,
"col": 1
},
{
"idx": 65,
"type": "seat",
"text": "11",
"row": 1,
"col": 1
},
{
"idx": 66,
"type": "seat",
"text": "12",
"row": 1,
"col": 1
}
],
[
{
"idx": 136,
"type": "seat",
"text": "13",
"row": 1,
"col": 1
},
{
"idx": 67,
"type": "seat",
"text": "14",
"row": 1,
"col": 1
},
{
"idx": 68,
"type": "seat",
"text": "15",
"row": 1,
"col": 1
}
],
[
{
"idx": 137,
"type": "seat",
"text": "16",
"row": 1,
"col": 1
},
{
"idx": 69,
"type": "seat",
"text": "17",
"row": 1,
"col": 1
},
{
"idx": 70,
"type": "seat",
"text": "18",
"row": 1,
"col": 1
}
],
[
{
"idx": 138,
"type": "seat",
"text": "19",
"row": 1,
"col": 1
},
{
"idx": 71,
"type": "seat",
"text": "20",
"row": 1,
"col": 1
},
{
"idx": 72,
"type": "seat",
"text": "21",
"row": 1,
"col": 1
}
],
[
{
"idx": 139,
"type": "seat",
"text": "22",
"row": 1,
"col": 1
},
{
"idx": 73,
"type": "seat",
"text": "23",
"row": 1,
"col": 1
},
{
"idx": 74,
"type": "seat",
"text": "24",
"row": 1,
"col": 1
}
],
[
{
"idx": 140,
"type": "seat",
"text": "25",
"row": 1,
"col": 1
},
{
"idx": 75,
"type": "seat",
"text": "26",
"row": 1,
"col": 1
},
{
"idx": 76,
"type": "seat",
"text": "27",
"row": 1,
"col": 1
}
],
[
{
"idx": 141,
"type": "seat",
"text": "28",
"row": 1,
"col": 1
},
{
"idx": 77,
"type": "seat",
"text": "29",
"row": 1,
"col": 1
},
{
"idx": 78,
"type": "seat",
"text": "30",
"row": 1,
"col": 1
}
],
[
{
"idx": 142,
"type": "seat",
"text": "31",
"row": 1,
"col": 1
},
{
"idx": 79,
"type": "seat",
"text": "32",
"row": 1,
"col": 1
},
{
"idx": 80,
"type": "seat",
"text": "33",
"row": 1,
"col": 1
}
]
]
},
{
"CarTypeName":"",
"CarTypeDescription":"鳴日號",
"CarTypeCode":"Sunrise_6Car",
"CarNumber": 6,//第幾節車廂
"CabinName": "Car33",
//type:aisl:走道,seat:可選,selected:你的座位,disabled:已選
//row:向下幾行
//col:向右幾欄
"Seats":[
[
{
"idx": 143,
"type": "seat",
"text": "1",
"row": 1,
"col": 1
},
{
"idx": 0,
"type": "aisl",
"text": "走道",
"row": 11,
"col": 1
}
],
[
{
"idx": 81,
"type": "seat",
"text": "2",
"row": 1,
"col": 1
},
{
"idx": 82,
"type": "seat",
"text": "3",
"row": 1,
"col": 1
}
],
[
{
"idx": 144,
"type": "seat",
"text": "4",
"row": 1,
"col": 1
},
{
"idx": 83,
"type": "seat",
"text": "5",
"row": 1,
"col": 1
},
{
"idx": 84,
"type": "seat",
"text": "6",
"row": 1,
"col": 1
}
],
[
{
"idx": 145,
"type": "seat",
"text": "7",
"row": 1,
"col": 1
},
{
"idx": 85,
"type": "seat",
"text": "8",
"row": 1,
"col": 1
},
{
"idx": 86,
"type": "seat",
"text": "9",
"row": 1,
"col": 1
}
],
[
{
"idx": 146,
"type": "seat",
"text": "10",
"row": 1,
"col": 1
},
{
"idx": 87,
"type": "seat",
"text": "11",
"row": 1,
"col": 1
},
{
"idx": 88,
"type": "seat",
"text": "12",
"row": 1,
"col": 1
}
],
[
{
"idx": 147,
"type": "seat",
"text": "13",
"row": 1,
"col": 1
},
{
"idx": 89,
"type": "seat",
"text": "14",
"row": 1,
"col": 1
},
{
"idx": 90,
"type": "seat",
"text": "15",
"row": 1,
"col": 1
}
],
[
{
"idx": 148,
"type": "seat",
"text": "16",
"row": 1,
"col": 1
},
{
"idx": 91,
"type": "seat",
"text": "17",
"row": 1,
"col": 1
},
{
"idx": 92,
"type": "seat",
"text": "18",
"row": 1,
"col": 1
}
],
[
{
"idx": 149,
"type": "seat",
"text": "19",
"row": 1,
"col": 1
},
{
"idx": 93,
"type": "seat",
"text": "20",
"row": 1,
"col": 1
},
{
"idx": 94,
"type": "seat",
"text": "21",
"row": 1,
"col": 1
}
],
[
{
"idx": 150,
"type": "seat",
"text": "22",
"row": 1,
"col": 1
},
{
"idx": 95,
"type": "seat",
"text": "23",
"row": 1,
"col": 1
},
{
"idx": 96,
"type": "seat",
"text": "24",
"row": 1,
"col": 1
}
],
[
{
"idx": 151,
"type": "seat",
"text": "25",
"row": 1,
"col": 1
},
{
"idx": 97,
"type": "seat",
"text": "26",
"row": 1,
"col": 1
},
{
"idx": 98,
"type": "seat",
"text": "27",
"row": 1,
"col": 1
}
],
[
{
"idx": 152,
"type": "seat",
"text": "28",
"row": 1,
"col": 1
},
{
"idx": 99,
"type": "seat",
"text": "29",
"row": 1,
"col": 1
},
{
"idx": 100,
"type": "seat",
"text": "30",
"row": 1,
"col": 1
}
],
[
{
"idx": 153,
"type": "seat",
"text": "31",
"row": 1,
"col": 1
},
{
"idx": 101,
"type": "seat",
"text": "32",
"row": 1,
"col": 1
},
{
"idx": 102,
"type": "seat",
"text": "33",
"row": 1,
"col": 1
}
]
]
}
]
}
```
# 更換巴士座位
Method: post
接口名稱:/order/changebusseatsjson
輸入參數 (前端用)
| OrderID | CarNo | BusGType | BusPassengerList |
| -------- | -------- | -------- | -------- |
| 型別:string | 型別:string |型別:string | 型別:selectedSeat<array>|
| selectedSeat |
| -------- |
| 型別:{ Seq:number, SeatNumber: string}|
ex:
```
{
"OrderID": "2022-11392",
"CarNo": "C202200000031",
"BusGType": "Serial",
"BusPassengerList": [
{
"Seq": 1,
"SeatNumber": "A1"
},
{
"Seq": 2,
"SeatNumber": "1B"
}
]
}
```
資料回傳範例
```
{
"Result": false
}
```
# 確認巴士座位
給it後端-> 點擊 **下一步** 的接口名稱(待確認是由it還是前端跳轉到付款頁)
Method:post
接口名稱:/order/submitbusseatsjson
輸入參數
```
{
"OrderID": "2022-11422",
"CarNo": "C202200000031",
"BusGType": "Serial"
}
```
回傳
```
{
"Result": true
}
```