修改数据显示

This commit is contained in:
浅念
2025-06-16 13:42:45 +08:00
parent 7cc53f7866
commit 0e1f0c47fa
8 changed files with 82 additions and 79 deletions
+56 -75
View File
@@ -18,7 +18,7 @@ body {
body {
color: #fff;
font-size: 16px;
font-size: 1rem;
}
#world {
@@ -31,13 +31,12 @@ body {
padding: 0px;
margin: 0px;
}
.cont {
color: white;
}
.title {
font-size: 32px;
font-size: 2rem;
font-weight: bold;
text-align: center;
background-image: url(../img/headBg.png);
@@ -58,6 +57,8 @@ body {
top: 97px;
left: 0px;
width: 370px;
/* min-width: 370px; */
/* width: 20%; */
}
.right {
@@ -68,6 +69,8 @@ body {
top: 97px;
right: 0px;
width: 370px;
/* min-width: 370px; */
/* width: 20%; */
}
.toggle2 {
@@ -139,7 +142,7 @@ body {
.times p:nth-child(1) span {
display: block;
font-size: 14px;
font-size: 0.875rem;
opacity: 0.5;
line-height: 1;
text-transform: uppercase;
@@ -151,7 +154,7 @@ body {
}
.times p:nth-child(2) span {
font-size: 25px;
font-size: 1.5625rem;
letter-spacing: -2px;
position: relative;
color: rgba(255, 255, 255, .75);
@@ -160,7 +163,7 @@ body {
}
.times p i {
font-size: 42px;
font-size: 2.625rem;
font-weight: lighter;
color: rgba(255, 255, 255, 1);
font-weight: bolder;
@@ -168,7 +171,7 @@ body {
.times p:nth-child(3) span {
display: block;
font-size: 13px;
font-size: 0.8125rem;
opacity: .5;
text-align: right
}
@@ -214,7 +217,7 @@ body {
}
.tit {
font-size: 18px;
font-size: 1.125rem;
font-weight: 500;
color: #fff;
font-weight: bolder;
@@ -277,7 +280,7 @@ body {
}
.all span {
font-size: 40px;
font-size: 2.5rem;
border-radius: 4px;
font-weight: bold;
color: #fff;
@@ -298,15 +301,15 @@ body {
}
.citylist li p {
font-size: 0.9375rem;
color: rgba(255, 255, 255, .8);
font-size: 15px;
display: flex;
justify-content: space-between;
margin-bottom: 5px;
}
.citylist li span {
font-size: 12px;
font-size: 0.75rem;
opacity: .4;
}
@@ -393,7 +396,7 @@ body {
.select-selected:after {
content: "▼";
font-size: 12px;
font-size: 0.75rem;
color: #6c757d;
}
@@ -473,17 +476,18 @@ body {
object-position: center;
}
.carmsg p{
line-height: 35px;
font-size: 0.875rem;
color: #666;
margin-bottom: 4px;
background: linear-gradient(to bottom, #fff, rgb(6 244 255));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.cartitle{
padding-top: 20px;
height:85px;
text-align: center;
font-size: 17px;
font-size: 1rem;
font-weight: bold;
background: linear-gradient(to bottom, #fff, rgb(6 244 255));
-webkit-background-clip: text;
@@ -494,12 +498,12 @@ body {
.toggle-btn {
font-size: 0.875rem;
display: inline-block;
margin-top: 10px;
padding: 8px 15px;
color: white;
cursor: pointer;
font-size: 14px;
transition: all 0.3s;
display: flex;
justify-content: center;
@@ -552,9 +556,8 @@ body {
display: flex;
justify-content: center;
align-items: center;
font-size: 12px;
font-size: 0.75rem;
padding: 5px 5px;
background: linear-gradient(to bottom, #1487ea, #0a43bc);
color: #fff;
border: none;
border-radius: 4px;
@@ -616,14 +619,10 @@ body {
}
.modal-title {
flex: 1;
text-align: center;
font-size: 20px;
font-size: 1.25rem;
font-weight: bold;
/* background: linear-gradient(to bottom, #fff, rgb(6 244 255)); */
/* -webkit-background-clip: text; */
/* background-clip: text; */
/* color: transparent; */
color: #333;
margin: 0;
}
@@ -632,10 +631,11 @@ body {
gap: 10px;
margin-bottom: 20px;
margin-top: 65px;
font-size: clamp(12px, 1vw, 30px);
font-size: clamp(0.75rem, 1vw, 1.875rem);
}
.modal-tab {
font-size: 0.875rem;
padding: 8px 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
@@ -692,8 +692,8 @@ body {
.modal-table {
width: 100%;
border-collapse: collapse;
/* font-size: 14px; */
font-size: clamp(10px, 1vw, 26px);
font-size: 0.875rem;
/* font-size: clamp(10px, 1vw, 26px); */
}
.modal-table thead {
@@ -762,12 +762,10 @@ body {
}
.ship-header h3 {
font-size: 1.125rem;
font-weight: bold;
margin: 0;
font-size: 18px;
background: linear-gradient(to bottom, #fff, rgb(6 244 255));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
color: #333;
}
.ship-status {
@@ -781,7 +779,7 @@ body {
.ship-details {
display: grid;
gap: 10px;
font-size: clamp(12px, 1vw, 30px);
font-size: clamp(0.75rem, 1vw, 1.875rem);
}
.detail-item {
@@ -792,13 +790,13 @@ body {
}
.detail-item .label {
color: rgba(255, 255, 255, 0.7);
/* font-size: 14px; */
font-size: 0.875rem;
color: #666;
}
.detail-item .value {
color: #fff;
/* font-size: 14px; */
font-size: 0.875rem;
color: #333;
font-weight: 500;
}
@@ -867,14 +865,9 @@ body {
}
.route-time {
width: 120px;
padding-right: 20px;
text-align: right;
color: #06f4ff;
font-size: 14px;
font-weight: 500;
text-shadow: 0 0 10px rgba(6, 244, 255, 0.3);
transition: all 0.3s ease;
font-size: 0.75rem;
color: #666;
margin-bottom: 4px;
}
.route-item:hover .route-time {
@@ -921,33 +914,21 @@ body {
}
.route-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
background: linear-gradient(to bottom, #fff, rgb(6 244 255));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
transition: all 0.3s ease;
font-size: 0.875rem;
font-weight: 500;
color: #333;
margin-bottom: 4px;
}
.route-desc {
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 12px;
line-height: 1.5;
font-size: 0.75rem;
color: #666;
margin-bottom: 4px;
}
.route-status {
display: inline-block;
padding: 6px 12px;
background: linear-gradient(45deg, #06f4ff, #00c6ff);
color: #142c64;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
box-shadow: 0 2px 8px rgba(6, 244, 255, 0.3);
transition: all 0.3s ease;
font-size: 0.75rem;
color: #666;
}
.route-item:hover .route-status {
@@ -1018,7 +999,7 @@ body {
border-radius: 2px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
font-size: 0.875rem;
color: #fff;
padding: 0 8px;
}
@@ -1055,12 +1036,12 @@ body {
padding: 20px 50px;
color: #fff;
height: 58%;
font-size: clamp(12px, 1vw, 30px);
font-size: clamp(0.75rem, 1vw, 1.875rem);
min-height: 510px;
max-height: 510px;
}
.modal-containercar .modal-content {
margin-top: 50px;
.modal-containercar .modal-content {
margin-top: 50px;
}
.modal-close{
position: relative;
@@ -1072,7 +1053,7 @@ body {
}
.modal-close div{
background-color: #00a6c9;
font-size: clamp(12px, 1vw, 30px);
font-size: clamp(0.75rem, 1vw, 1.875rem);
padding: 8px 30px;
border-radius: 4px;
}
@@ -1110,7 +1091,7 @@ body {
/* font-size: 14px; */
}
.carinfos .cartitlet{
font-size: 16px;
font-size: 1rem;
font-weight: bold;
background: linear-gradient(to bottom, #fff, rgb(6 244 255));
-webkit-background-clip: text;
@@ -1144,7 +1125,7 @@ body {
}
.infotimes{
display: flex;
margin-top: 10px;
margin-top: 25px;
}
.infotimes div{
width: 49%;
@@ -1197,7 +1178,7 @@ body {
display: flex;
justify-content: center;
align-items: center;
font-size: 12px;
font-size: 0.75rem;
padding: 5px 5px;
color: #fff;
border: none;
+8
View File
@@ -215,6 +215,14 @@
<span class="label" data-i18n="latitude"></span>
<span class="value latitude"></span>
</div>
<div class="detail-item">
<span class="label" data-i18n="Nextstation"></span>
<span class="value Nextstation"></span>
</div>
<div class="detail-item">
<span class="label" data-i18n="Nexttime"></span>
<span class="value Nexttime"></span>
</div>
<div class="detail-item">
<span class="label" data-i18n="destinationc"></span>
<span class="value destinationc"></span>
+3
View File
@@ -281,6 +281,9 @@ const i18n = {
// 显示当前选择
localStorage.setItem('langtext', selectedText);
that.toggleLanguage($(this).attr('data-id'))
document.querySelectorAll('.statusbtn > div').forEach(b => b.classList.remove('active'));
// 为当前点击的按钮添加 active 类
$(".statusall").addClass('active');
currentPage =1
Vehiclefn($(this).attr('data-id'))
locationfn($(this).attr('data-id'),'')
+2
View File
@@ -28,6 +28,8 @@
"latitude":"العرض",
"destinationc":"المقصد",
"yujidaodashijian":"الوقت المتوقع للوصول",
"Nextstation":"المحطة التالية",
"Nexttime":"٢ دقيقة",
"history":"التاريخ",
"detail":"التفاصيل",
"prevPage":"الصفحة السابقة",
+2
View File
@@ -28,6 +28,8 @@
"latitude":"Latitude",
"destinationc":"Destination",
"yujidaodashijian":"Estimated arrival time",
"Nextstation":"Next station",
"Nexttime":"Next Stop Arrival",
"history":"History",
"detail":"Detail",
"prevPage":"Previous page",
+2
View File
@@ -27,6 +27,8 @@
"latitude":"Широта",
"destinationc":"Пункт назначения",
"yujidaodashijian":"Ожидаемое время прибытия",
"Nextstation":"Следующая станция",
"Nexttime":"Прибытие",
"history":"История",
"detail":"Подробнее",
"close":"Закрыть",
+2
View File
@@ -28,6 +28,8 @@
"latitude":"纬度",
"destinationc":"目的地",
"yujidaodashijian":"预计到达时间",
"Nextstation":"下一站",
"Nexttime":"下站预计到达时间",
"history":"历史记录",
"detail":"详细信息",
"prevPage":"上一页",
+7 -4
View File
@@ -2913,8 +2913,8 @@ function Global(chinaGeoCoordMap, nameMap, isshow) {
var routePoints = shipListdatas.map(point => ({
name: point.ship_name,
id: point.id,
dest: point.dest,
eta: point.eta,
dest: point.port,
eta: point.last_time,
value:[point.lng,point.lat],
num:point.count,
symbol: 'image://img/luncx.png',
@@ -3730,8 +3730,11 @@ function Vehicleshipfn(id,lang){
$(".callsign").html(shipinfo.call_sign)
$(".longitude").html(shipinfo.lng)
$(".latitude").html(shipinfo.lat)
$(".destinationc").html(shipinfo.dest)
$(".yujidaodashijian").html(shipinfo.eta_utc)
$(".destinationc").html(shipinfo.port)
$(".yujidaodashijian").html(shipinfo.last_time)
$(".Nextstation").html(shipinfo.dest)
$(".Nexttime").html(shipinfo.eta)
var shiphis = result.data.ship_his;
const routetimeline = document.getElementById('routetimeline');
if(shiphis.length>0){