Class: SeatManager

manager~ SeatManager


new SeatManager()

构造器
Returns:
Type
*

Methods


<static> defaultManager()

单例方法
Returns:
Type
SeatManager

<static> seatParasFromScreening(platform, screening)

获取座位图时需要的参数
Parameters:
Name Type Description
platform 平台类型
screening 平台数据
Returns:
平台需要的参数
Type
Object

<static> smartAutoSelected(smartSeats, count)

智能选座
Parameters:
Name Type Description
smartSeats
count
Returns:
Type
Promise

handleTaoBaoSeatData(seatData)

淘票票座位图处理
Parameters:
Name Type Description
seatData
Returns:
Type
*

smartSeatDataFromSeats(type, seatData)

对原始座位图进行智能转换
Parameters:
Name Type Description
type 平台类型
seatData 座位图原始数据
Returns:
智能座位图详细信息
Type
Object

smartSeatDataFromSmartSeats(type, smartSeats)

获取智能座位图元数据
Parameters:
Name Type Description
type 平台类型
smartSeats 智能座位图
Returns:
智能座位图详细信息
Type
Object

smartSeatsFromSeats(type, seatData)

对原始座位图进行智能转换
Parameters:
Name Type Description
type 平台类型
seatData 座位图原始数据
Returns:
智能座位图列表
Type
Array

smartSeatsWithTBSeats(seatList)

获取淘票票智能座位图
Parameters:
Name Type Description
seatList
Returns:
Type
Array