修改了一些东西
This commit is contained in:
+27
-3
@@ -96,7 +96,15 @@
|
||||
{{ statusInfo.text }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="jr-route-board">
|
||||
<div v-if="String(ticket.overview.train_type || ticket.overview['车型'] || '').toLowerCase() === 'single'" class="jr-route-board" style="justify-content: center; text-align: center;">
|
||||
<div class="jr-station-block">
|
||||
<div class="jr-station-line" style="justify-content: center;">
|
||||
<span class="jr-station-title">{{ ticket.overview.start_name }}</span>
|
||||
</div>
|
||||
<div class="jr-station-en" style="text-align: center; margin-top: 4px;">单程单区间</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="jr-route-board">
|
||||
<div class="jr-station-block">
|
||||
<div class="jr-station-line">
|
||||
<span class="jr-station-title">{{ ticket.overview.start_name }}</span>
|
||||
@@ -113,7 +121,18 @@
|
||||
<div class="jr-station-en">{{ ticket.overview.terminal_en }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="jr-meta-grid">
|
||||
|
||||
<div v-if="String(ticket.overview.train_type || ticket.overview['车型'] || '').toLowerCase() === 'single'" class="jr-meta-grid" style="grid-template-columns: repeat(2, 1fr);">
|
||||
<div class="jr-meta-item">
|
||||
<span>票价</span>
|
||||
<strong>¥ {{ ticket.overview.amount || 0 }}</strong>
|
||||
</div>
|
||||
<div class="jr-meta-item">
|
||||
<span>更新时间</span>
|
||||
<strong>{{ formatTime(ticket.overview.last_update_ts) }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="jr-meta-grid">
|
||||
<div class="jr-meta-item">
|
||||
<span>车型</span>
|
||||
<strong>{{ formatTrainType(ticket.overview.train_type) }}</strong>
|
||||
@@ -298,7 +317,12 @@
|
||||
}
|
||||
|
||||
const stationEn = event.station_en || event['站点英文'] || '';
|
||||
const deviceId = event.device_id || event['设备编号'] || '';
|
||||
let deviceId = event.device || event.device_id || event['设备编号'] || event['机器ID'] || '';
|
||||
if (/^\d+$/.test(deviceId)) deviceId = 'ticket_machine';
|
||||
if (deviceId === 'ticket_machine') deviceId = '售票机';
|
||||
if (deviceId === 'gate') deviceId = '闸机';
|
||||
if (deviceId === 'refill_machine') deviceId = '充值机';
|
||||
|
||||
if (stationEn && deviceId) return `${stationEn} (${deviceId})`;
|
||||
if (deviceId) return `设备:${deviceId}`;
|
||||
return stationEn;
|
||||
|
||||
Reference in New Issue
Block a user