Fix exact email grants and clarify cloud and wind labels

This commit is contained in:
2569718930@qq.com
2026-04-07 10:17:17 +08:00
parent eab6ec7cff
commit 22621f5d9c
5 changed files with 78 additions and 12 deletions
+9
View File
@@ -92,6 +92,8 @@ function buildNearbyIconHtml(detail: CityDetail, station: NearbyStation) {
? String(rawLabel).replace(/\s*\(NMC\)$/i, "区域实况 (NMC)")
: rawLabel;
let windHtml = "";
const windDirectionText = String(station.wind_direction_text || "").trim();
const windPowerText = String(station.wind_power_text || "").trim();
if (station.wind_dir != null) {
const rotation = (Number(station.wind_dir) + 180) % 360;
@@ -103,6 +105,13 @@ function buildNearbyIconHtml(detail: CityDetail, station: NearbyStation) {
<span class="wind-val">${speed}</span>
</div>
`;
} else if (windDirectionText || windPowerText) {
const windText = [windDirectionText, windPowerText].filter(Boolean).join(" ");
windHtml = `
<div class="nearby-wind">
<span class="wind-val">${windText}</span>
</div>
`;
}
return `