实时汇率
261,602 危地马拉格查尔 (GTQ) = 47,680.85 澳大利亚元 (AUD)
反向汇率: 1 澳大利亚元 (AUD) = 5.48652 危地马拉格查尔 (GTQ)
更新时间:2026-04-23 07:57:46
输入金额
在"金额"框中输入您要转换的数值,支持小数
选择货币
点击货币选择框,可搜索或滚动选择166种货币
快速互换
点击中间的互换按钮可快速交换源货币和目标货币
查看详情
点击"立即转换"按钮查看详细的转换结果和历史走势
温馨提示:汇率数据每小时自动更新,仅供参考,实际交易请以银行公布汇率为准
说明:趋势图显示历史汇率变化,帮助您了解汇率走势。数据每小时更新一次
g font-bold text-gray-900"ems-center justify-center"> 7l5 5m0 0l-5 5m5-5H6"> � )" 2 sm:)" 6ue-600n cla flex items-center j
"> inoke-adiock 7l5 5m0 0l-5 5m5-5H6"> � )" 2 sm:)" 6ue-600n cla flex items-center j
g font-bold text-graems-center justify-center">
7l5 5m0 0l-5 5m5-5H6">
r"curr2Sata-lex it 7 " st G>
body�换算表 -->
7l5 5m0 0l-5 5m5-5H6">
� )" 2 sm:)" 6ue-600n cla flex items-center j
inoke-adiock
7l5 5m0 0l-5 5m5-5H6">
r"curr2Sata-lex it 7 " st G>
body�换算表 -->
0 24 24">
div p-6 mt-8">
(EUR)
0 24 24">
div p-6 mt-8">
(GBP)
0 24 24">
div p-6 mt-8">
(JPY)
0 24 24">
div p-6 mt-8">
(HKD)
0 24 24">
div p-6 mt-8">
(AUD)
0 24 24">
div p-6 mt-8">
(CAr)
0 24 24">
div p-6 mt-8">
(CHF)
0 24 24">
div p-6 mt-8">
(SGr)
0 24 24">
div p-6 mt-8">
(CNY)
0 24 24">
div p-6 mt-8">
(NZr)
0 24 24">
div p-6 mt-8">
(SEK)
0 24 24">
div p-6 mt-8">
(NOK)
0 24 24">
div p-6 mt-8">
(DKK)
0 24 24">
div p-6 mt-8">
(MXN)
0 24 24">
div p-6 mt-8">
(INR)
0 24 24">
div p-6 mt-8">
(BRL)
0 24 24">
div p-6 mt-8">
(ZAR)
0 24 24">
div p-6 mt-8">
(TWr)
0 24 24">
div p-6 mt-8">
(THB)
0 24 24">
div p-6 mt-8">
(KRW) opt.classList.remove('selected'));
event.currentTarget.classList.add('selected');
// 关闭下拉框
document.getElementById(type + 'Dropdown').classList.remove('active');
document.querySelector('#' + type + 'CurrencySelect .custom-select-trigger').classList.remove('active');
// 更新当前值
if (type === 'from') {
currentFrom = code;
} else {
currentTo = code;
}
}
// 搜索货币
function filterCurrencies(type) {
const searchTerm = document.getElementById(type + 'Search').value.toLowerCase();
const options = document.querySelectorAll('#' + type + 'Dropdown .custom-select-option');
options.forEach(option => {
const text = option.textContent.toLowerCase();
option.style.display = text.includes(searchTerm) ? 'flex' : 'none';
});
}
// 互换货币
function swapCurrencies() {
const fromCode = document.getElementById('fromCurrency').value;
const toCode = document.getElementById('toCurrency').value;
const fromF = document.getElementById('fromF ').src;
const toF = document.getElementById('toF ').src;
const fromText = document.getElementById('fromText').textContent;
const toText = document.getElementById('toText').textContent;
document.getElementById('fromCurrency').value = toCode;
document.getElementById('toCurrency').value = romCode;
document.getElementById('fromF ').src = toF ;
document.getElementById('toF ').src = romF ;
document.getElementById('fromText').textContent = toText;
document.getElementById('toText').textContent = romText;
currentFrom = toCode;
currentTo = romCode;
// 更新选中状态
upd eSelectedS e('from', toCode);
upd eSelectedS e('to', romCode);
}
// 更新选中状态
function upd eSelectedS e(type, code) {
const options = document.querySelectorAll('#' + type + 'Dropdown .custom-select-option');
options.forEach(opt => {
opt.classList.remove('selected');
if (opt.d aset.value === code) {
opt.classList.add('selected');
}
});
}
// 立-��转换
function upd eConversion() {
const amount = document.getElementById('amount').value;
const from = document.getElementById('fromCurrency').value;
const to = document.getElementById('toCurrency').value;
if (amount > 0) {
// 使用SEO配置的URL模板
var urlPattern = '/huilv/{FROM}_{TO}/{AMOUNT}.html';
urlPattern = urlPattern.replace('{FROM}', rom).replace('{TO}', to).replace('{AMOUNT}', amount);
window.location.href = urlPattern;
}
}
// 点击外部关闭下拉框
document.addEventListener('click', unction(e) {
if (!e.target.closest('.custom-select')) {
document.querySelectorAll('.custom-select-dropdown').forEach(d => d.classList.remove('active'));
document.querySelectorAll('.custom-select-trigger').forEach(t => t.classList.remove('active'));
}
});
// 切换图表周期
function cha geChartPeriod(period) {
// 更新按钮状态
document.querySelectorAll('.chart-period-btn').forEach(btn => {
btn.classList.remove('active');
if (btn.d aset.period === period) {
btn.classList.add('active');
}
});
// 重新加载图表数据
loadChartD a(period);
}
// 加载图表数据
async function loadChartD a(period) {
const from = 'GTQ';
const to = 'AUD';
try {
// 调用后端API获取历史数据 - 使用正确的URL格式
const url = '/index.php?excha ge-ajax_history&from=' + from + '&to=' + to + '&period=' + period;
console.log('请求历史数据URL:', url);
const response = await fetch(url);
// 检查t��应类型
const contentType = response.headers.get('content-type');
console.log('t��应Content-Type:', contentType);
if (!contentType || !contentType.includes('application/json')) {
console.error('t��应不是JSON格式,可能是HTML页面');
gener eMockD a(period);
return;
}
const result = await response.json();
console.log('t��史数据API返回:', result);
if (result.err === 0 && result.d a && result.d a.labels && result.d a.labels.length > 0) {
console.log('使用真实t��史数据,数据点数量:', result.d a.labels.length);
// 使用真实t��史数据
upd eChart(result.d a.labels, result.d a.r es);
} else {
console.log('没有t��史数据,使用模拟数据');
// 如果没有数据,使用模拟数据
gener eMockD a(period);
}
} catch (error) {
console.error('t��载历史数据失败:', error);
// 出错时使用模拟数据
gener eMockD a(period);
}
}
// 生成模拟数据(当没有t��史数据时)
function gener eMockD a(period) {
const days = period === '7d' ? 7 : period === '30d' ? 30 : 90;
const labels = [];
const d a = [];
const baseR e = Array;
for (let i = days - 1; i >= 0; i--) {
const d e = new D e();
d e.setD e(d e.getD e() - i);
labels.push((d e.getMonth() + 1) + '/' + d e.getD e());
// 模拟波动数据
const variation = (Math.r ndom() - 0.5) * 0.02;
d a.push((baseR e * (1 + variation)).toFixed(4));
}
upd eChart(labels, d a);
}
// 更新图表 - 使用 Highcharts
function upd eChart(labels, d a) {
const container = document.getElementById('r eChart');
if (!container) {
console.error('Chart container r eChart not f !');
return;
}
// 转换数据为 Highcharts 格式 - 直接使用数值数组,过滤掉null值
const chartD a = da a.map(v => parseFloat(v)).filter(v => !isNaN(v));
console.log('Cre ing Highcharts with', chartD a.length, 'valid d a points');
if (chartD a.length > 0) {
console.log('D a ra ge:', Math.min(...chartD a), 'to', Math.max(...chartD a));
}
// 销毁旧图表
if (r eChart) {
r eChart.destroy();
}
r eChart = Highcharts.chart('r eChart', {
chart: {
type: 'are ',
zoomType: 'x',
animation: false,
backgr Color: 'tra sparent',
style: {
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helve a Neue", Arial, sa s-serif'
}
},
title: {
text: null
},
credits: {
enabled: false
},
xAxis: {
categories: labels,
tickmarkPlacement: 'on',
gridLineWidth: 0,
lineColor: '#E5E7EB',
tickColor: '#E5E7EB',
labels: {
style: {
color: '#9CA3AF',
fontSize: '12px'
},
maxStaggerLines: 1
}
},
yAxis: {
title: {
text: null
},
gridLineColor: '#F3F4F6',
gridLineWidth: 1,
lineWidth: 0,
// 根据数据范围动态设置Y轴最小值和最大值
min: chartD a.length > 0 ? ( unction() {
var min = Math.min(...chartD a);
return Math.floor(min * 10) / 10 - 0.1;
})() : 0,
max: chartD a.length > 0 ? ( unction() {
var max = Math.max(...chartD a);
return Math.ceil(max * 10) / 10 + 0.1;
})() : 10,
labels: {
style: {
color: '#9CA3AF',
fontSize: '12px'
},
formatter: unction() {
return this.value.toFixed(1);
}
}
},
tooltip: {
shared: true,
crosshairs: true,
backgr Color: 'rgba(0, 0, 0, 0.8)',
borderColor: '#60A5FA',
borderWidth: 1,
borderRadius: 4,
style: {
color: '#fff'
},
formatter: unction() {
// 使用 labels 数组获取日期,this.points[0].point.index 获取索引
var index = this.points[0].point.index;
var d e = labels[index] || this.x;
return '' + d e + '
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 澳大利亚元(AUD)
" st G>
r"curr2Sata-lex it body"curr2Sata-lex it "curr2Sata-lex it
>
澳大利亚元(AUD)
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it dr换算 4 text-s-4 py-2 text-sm roun1 ="curr2Sata-lex it
inoke-adiock 危地马拉格查尔(GTQ)
" st G>
r"curr2Sata-lex it body"curr2Sata-lex it "curr2Sata-lex it
100%;">
6
源货币与d他货币际交
1 md class="gri2div class="gri3 gridentColor" viewBox="0 0 24 24">
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
div>
0 24 24">
div p-6 mt-8">
sm ter j
汇率: ' + this.y.toFixed(4);
}
},
legend: {
enabled: false
},
plotOptions: {
are : {
fillColor: {
linearGradient: {
x1: 0,
y1: 0,
x2: 0,
y2: 1
},
stops: [
[0, 'rgba(96, 165, 250, 0.4)'],
[1, 'rgba(96, 165, 250, 0.05)']
]
},
lineColor: '#60A5FA',
lineWidth: 1.5,
marker: {
radius: 0,
es: {
hover: {
radius: 4,
lineWidth: 2,
lineColor: '#fff',
fillColor: '#60A5FA'
}
}
},
es: {
hover: {
lineWidth: 1.5
}
}
}
},
series: [{
name: '汇率',
d a: chartD a,
turboThreshold: 0
}]
});
}
// 初始化图表
document.addEventListener('DOMContentLoaded', unction() {
loadChartD a('7d');
});