style: 优化适配收银台模板文件

This commit is contained in:
v03413
2026-01-04 11:17:39 +08:00
parent ad56be1af7
commit a470fb8e64
25 changed files with 357 additions and 965 deletions
+27 -3
View File
@@ -52,6 +52,27 @@
});
}
function getPaymentConfig() {
const container = document.querySelector('.payment-container');
if (!container) return {};
return {
token: container.getAttribute('data-token') || 'USDT',
network: container.getAttribute('data-network') || 'TRC20',
networkName: container.getAttribute('data-network-name') || 'TRON',
warningToken: container.getAttribute('data-warning-token') || 'TRX'
};
}
function replacePlaceholders(text) {
const config = getPaymentConfig();
return text
.replace(/\{\{token\}\}/g, config.token)
.replace(/\{\{network\}\}/g, config.network)
.replace(/\{\{networkName\}\}/g, config.networkName)
.replace(/\{\{warningToken\}\}/g, config.warningToken);
}
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function (element) {
const key = element.getAttribute('data-i18n');
@@ -60,14 +81,17 @@
if (matches) {
const attr = matches[1];
const transKey = matches[2];
let translation = i18next.t(transKey);
translation = replacePlaceholders(translation);
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
element.innerHTML = translation;
} else {
element.setAttribute(attr, i18next.t(transKey));
element.setAttribute(attr, translation);
}
}
} else {
const translation = i18next.t(key);
let translation = i18next.t(key);
translation = replacePlaceholders(translation);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
-35
View File
@@ -1,35 +0,0 @@
# 国际化语言文件
## 文件说明
- `zh.json` - 中文翻译
- `en.json` - 英文翻译
## 使用方式
页面会自动根据浏览器语言设置选择对应的语言包:
- 如果浏览器语言是中文(zh),则显示中文
- 如果浏览器语言是英文(en),则显示英文
- 其他语言默认显示英文
用户也可以通过右上角的语言切换器手动切换语言,选择会保存在 localStorage 中。
## 添加新语言
如果需要添加新语言,请:
1. 在此目录创建新的语言文件,如 `ja.json`(日语)
2. 复制 `en.json` 的结构,翻译所有内容
3. 在模板文件的语言切换器中添加新选项
4. 更新 JavaScript 代码中的语言检测逻辑
## 翻译内容
包含以下内容的翻译:
- 页面标题和说明
- 订单信息标签
- 倒计时文字
- 收款地址标签
- 转账说明
- 弹窗提示消息(支付超时、网络确认、支付成功)
- 复制功能反馈
+5 -5
View File
@@ -1,8 +1,8 @@
{
"payment": {
"title": "USDT Payment",
"subtitle": "Please use <strong>TRON</strong> TRC20 network for transfer",
"networkBadge": "TRC20",
"title": "{{token}} Payment",
"subtitle": "Please use <strong>{{networkName}}</strong> {{network}} network for transfer",
"networkBadge": "{{network}}",
"paymentAmount": "Payment Amount:",
"merchantOrder": "Merchant Order:",
"orderAmount": "Order Amount:",
@@ -12,10 +12,10 @@
"countdownSubtitle": "Please complete the transfer within the specified time. Do not pay if timeout, reorder instead",
"minutes": "min",
"seconds": "sec",
"addressLabel": "Receiving Address (TRC20 Network)",
"addressLabel": "Receiving Address ({{network}} Network)",
"copyAddress": "Copy Address",
"instructionsTitle": "📋 Transfer Instructions",
"instruction1": "Must use <strong>TRC20 network</strong> for transfer, do not send TRX!",
"instruction1": "Must use <strong>{{network}} network</strong> for transfer, do not send {{warningToken}}!",
"instruction2": "The system will automatically confirm the receipt after transfer",
"instruction3": "Transfer amount must exactly match the displayed amount",
"instruction4": "If you have any questions, please contact customer service",
+5 -5
View File
@@ -1,8 +1,8 @@
{
"payment": {
"title": "USDT 支付",
"subtitle": "请使用 <strong>波场 (TRON)</strong> TRC20 网络进行转账",
"networkBadge": "TRC20",
"title": "{{token}} 支付",
"subtitle": "请使用 <strong>{{networkName}}</strong> {{network}} 网络进行转账",
"networkBadge": "{{network}}",
"paymentAmount": "付款数额:",
"merchantOrder": "商户订单:",
"orderAmount": "订单金额:",
@@ -12,10 +12,10 @@
"countdownSubtitle": "请在指定时间内完成转账,超时勿付请重新下单",
"minutes": "分",
"seconds": "秒",
"addressLabel": "收款地址 (TRC20 网络)",
"addressLabel": "收款地址 ({{network}} 网络)",
"copyAddress": "复制地址",
"instructionsTitle": "📋 转账说明",
"instruction1": "必须使用 <strong>TRC20 网络</strong> 进行转账,请勿转入 TRX!",
"instruction1": "必须使用 <strong>{{network}} 网络</strong> 进行转账,请勿转入 {{warningToken}}!",
"instruction2": "转账完成后系统会自动确认到账",
"instruction3": "转账金额必须与显示金额完全一致",
"instruction4": "如果有其它疑问,请联系客服处理",
+1 -67
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="BNB" data-network="BEP20" data-network-name="币安智能链 (BSC)" data-warning-token="USDT/USDC">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
@@ -94,73 +94,7 @@
</div>
<script>
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
currentLang = 'en';
}
i18next.init({
lng: currentLang,
debug: false,
resources: {
zh: { translation: {} },
en: { translation: {} }
}
}, function(err, t) {
if (err) {
console.error('i18next initialization failed:', err);
return;
}
Promise.all([
fetch('/payment/locales/zh.json').then(r => r.json()),
fetch('/payment/locales/en.json').then(r => r.json())
]).then(function([zhData, enData]) {
i18next.addResourceBundle('zh', 'translation', zhData);
i18next.addResourceBundle('en', 'translation', enData);
updateContent();
document.getElementById('languageSwitcher').value = currentLang;
}).catch(function(error) {
console.error('Failed to load language files:', error);
});
});
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function(element) {
const key = element.getAttribute('data-i18n');
if (key.startsWith('[')) {
const matches = key.match(/\[(.+?)\](.+)/);
if (matches) {
const attr = matches[1];
const transKey = matches[2];
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
} else {
element.setAttribute(attr, i18next.t(transKey));
}
}
} else {
const translation = i18next.t(key);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
element.innerHTML = translation;
}
}
});
}
function changeLanguage(lang) {
i18next.changeLanguage(lang, function(err, t) {
if (err) {
console.error('Language change failed:', err);
return;
}
currentLang = lang;
localStorage.setItem('payment_language', lang);
updateContent();
});
}
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
+86 -153
View File
@@ -1,10 +1,9 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ETH・ERC20 一款更好用的个人USDT收款网关 BEpusdt</title>
<title>Ethereum・ETH 一款更好用的个人USDT收款网关 BEpusdt</title>
<link rel="shortcut icon" href="/payment/img/tether.svg">
<link rel="stylesheet" href="/payment/css/core.min.css">
<script src="/payment/js/jquery.min.js"></script>
@@ -12,166 +11,100 @@
<script src="/payment/i18n/i18next.min.js"></script>
<script src="/payment/js/core.min.js"></script>
</head>
<body>
<div class="payment-container">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
<option value="en">English</option>
</select>
<div class="payment-container" data-token="ETH" data-network="ERC20" data-network-name="以太坊 (Ethereum)" data-warning-token="USDT/USDC">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
<option value="en">English</option>
</select>
</div>
<div class="crypto-icon">ETH</div>
<h1 class="payment-title" data-i18n="payment.title">ETH 支付</h1>
<p class="payment-subtitle">
<span class="status-indicator"></span>
<span data-i18n="payment.subtitle">请使用 <strong>以太坊 (Ethereum)</strong> ERC20 网络进行转账</span>
<span class="network-badge" data-i18n="payment.networkBadge">ERC20</span>
</p>
<div class="order-info">
<div class="order-item">
<span class="order-label" data-i18n="payment.paymentAmount">付款数额:</span>
<span class="order-value amount-value" id="payAmount" onclick="copyAmount()"
data-i18n="[title]payment.clickToCopy" title="点击复制金额">{{.amount}} ETH</span>
</div>
<div class="crypto-icon">ETH</div>
<h1 class="payment-title" data-i18n="payment.title">ETH 支付</h1>
<p class="payment-subtitle">
<span class="status-indicator"></span>
<span data-i18n="payment.subtitle">请使用 <strong>以太坊 (Ethereum)</strong> ERC20 网络进行转账</span>
<span class="network-badge" data-i18n="payment.networkBadge">ERC20</span>
</p>
<div class="order-info">
<div class="order-item">
<span class="order-label" data-i18n="payment.paymentAmount">付款数额:</span>
<span class="order-value amount-value" id="payAmount" onclick="copyAmount()" data-i18n="[title]payment.clickToCopy" title="点击复制金额">{{.amount}} ETH</span>
</div>
<div class="order-item">
<span class="order-label" data-i18n="payment.merchantOrder">商户订单:</span>
<span class="order-value">{{.order_id}}</span>
</div>
<div class="order-item">
<span class="order-label" data-i18n="payment.orderAmount">订单金额:</span>
<span class="order-value">
<span class="fiat-amount"><span data-i18n="payment.amountPrefix">约</span> {{.money}} {{.fiat}}</span>
<div class="order-item">
<span class="order-label" data-i18n="payment.merchantOrder">商户订单:</span>
<span class="order-value">{{.order_id}}</span>
</div>
<div class="order-item">
<span class="order-label" data-i18n="payment.orderAmount">订单金额:</span>
<span class="order-value">
<span class="fiat-amount"><span
data-i18n="payment.amountPrefix">约</span> {{.money}} {{.fiat}}</span>
</span>
</div>
</div>
<div class="countdown-banner">
<div class="countdown-content">
<div class="countdown-info">
<div class="countdown-title" data-i18n="payment.countdownTitle">⏰ 支付倒计时</div>
<div class="countdown-subtitle" data-i18n="payment.countdownSubtitle">请在指定时间内完成转账,超时勿付请重新下单</div>
</div>
<div class="countdown-timer" id="countdown">
<div class="time-unit">
<span class="time-number" id="minutes">15</span>
<span class="time-label" data-i18n="payment.minutes">分</span>
</div>
<span class="time-separator">:</span>
<div class="time-unit">
<span class="time-number" id="seconds">00</span>
<span class="time-label" data-i18n="payment.seconds">秒</span>
</div>
</div>
<div class="countdown-banner">
<div class="countdown-content">
<div class="countdown-info">
<div class="countdown-title" data-i18n="payment.countdownTitle">⏰ 支付倒计时</div>
<div class="countdown-subtitle" data-i18n="payment.countdownSubtitle">
请在指定时间内完成转账,超时勿付请重新下单
</div>
</div>
</div>
<div class="qr-section">
<div class="qr-code" id="qrcode"></div>
<div class="address-section">
<div class="address-label" data-i18n="payment.addressLabel">收款地址 (ERC20 网络)</div>
<div class="address-text" id="walletAddress">{{.address}}</div>
<button class="copy-btn" onclick="copyAddress()" data-i18n="payment.copyAddress">复制地址</button>
</div>
</div>
<div class="instructions">
<h4 data-i18n="payment.instructionsTitle">📋 转账说明</h4>
<ol>
<li data-i18n="[html]payment.instruction1">必须使用 <strong>ERC20 网络</strong> 进行转账,请勿转入 USDT/USDC!</li>
<li data-i18n="payment.instruction2">转账完成后系统会自动确认到账</li>
<li data-i18n="payment.instruction3">转账金额必须与显示金额完全一致</li>
<li data-i18n="payment.instruction4">如果有其它疑问,请联系客服处理</li>
</ol>
</div>
<div class="footer-info">
<div class="project-info">
<span class="powered-by" data-i18n="payment.poweredBy">Powered by</span>
<a href="https://github.com/v03413/BEpusdt" target="_blank" class="project-link">
<strong>BEpusdt</strong>
</a>
<span class="open-source" data-i18n="payment.github">Github</span>
<div class="countdown-timer" id="countdown">
<div class="time-unit">
<span class="time-number" id="minutes">15</span>
<span class="time-label" data-i18n="payment.minutes">分</span>
</div>
<span class="time-separator">:</span>
<div class="time-unit">
<span class="time-number" id="seconds">00</span>
<span class="time-label" data-i18n="payment.seconds">秒</span>
</div>
</div>
</div>
</div>
<script>
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
currentLang = 'en';
}
i18next.init({
lng: currentLang,
debug: false,
resources: {
zh: { translation: {} },
en: { translation: {} }
}
}, function(err, t) {
if (err) {
console.error('i18next initialization failed:', err);
return;
}
Promise.all([
fetch('/payment/locales/zh.json').then(r => r.json()),
fetch('/payment/locales/en.json').then(r => r.json())
]).then(function([zhData, enData]) {
i18next.addResourceBundle('zh', 'translation', zhData);
i18next.addResourceBundle('en', 'translation', enData);
updateContent();
document.getElementById('languageSwitcher').value = currentLang;
}).catch(function(error) {
console.error('Failed to load language files:', error);
});
<div class="qr-section">
<div class="qr-code" id="qrcode"></div>
<div class="address-section">
<div class="address-label" data-i18n="payment.addressLabel">收款地址 (ERC20 网络)</div>
<div class="address-text" id="walletAddress">{{.address}}</div>
<button class="copy-btn" onclick="copyAddress()" data-i18n="payment.copyAddress">复制地址</button>
</div>
</div>
<div class="instructions">
<h4 data-i18n="payment.instructionsTitle">📋 转账说明</h4>
<ol>
<li data-i18n="[html]payment.instruction1">必须使用 <strong>ERC20 网络</strong> 进行转账,请勿转入 USDT/USDC!
</li>
<li data-i18n="payment.instruction2">转账完成后系统会自动确认到账</li>
<li data-i18n="payment.instruction3">转账金额必须与显示金额完全一致</li>
<li data-i18n="payment.instruction4">如果有其它疑问,请联系客服处理</li>
</ol>
</div>
<div class="footer-info">
<div class="project-info">
<span class="powered-by" data-i18n="payment.poweredBy">Powered by</span>
<a href="https://github.com/v03413/BEpusdt" target="_blank" class="project-link">
<strong>BEpusdt</strong>
</a>
<span class="open-source" data-i18n="payment.github">Github</span>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
expire: "{{.expire}}",
address: "{{.address}}",
amount: "{{.amount}}",
trade_id: "{{.trade_id}}",
return_url: "{{.return_url}}"
});
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function(element) {
const key = element.getAttribute('data-i18n');
if (key.startsWith('[')) {
const matches = key.match(/\[(.+?)\](.+)/);
if (matches) {
const attr = matches[1];
const transKey = matches[2];
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
} else {
element.setAttribute(attr, i18next.t(transKey));
}
}
} else {
const translation = i18next.t(key);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
element.innerHTML = translation;
}
}
});
}
function changeLanguage(lang) {
i18next.changeLanguage(lang, function(err, t) {
if (err) {
console.error('Language change failed:', err);
return;
}
currentLang = lang;
localStorage.setItem('payment_language', lang);
updateContent();
});
}
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
expire: "{{.expire}}",
address: "{{.address}}",
amount: "{{.amount}}",
trade_id: "{{.trade_id}}",
return_url: "{{.return_url}}"
});
});
</script>
});
</script>
</body>
</html>
+1 -67
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="TRX" data-network="TRC20" data-network-name="波场 (TRON)" data-warning-token="USDT">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
@@ -94,73 +94,7 @@
</div>
<script>
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
currentLang = 'en';
}
i18next.init({
lng: currentLang,
debug: false,
resources: {
zh: { translation: {} },
en: { translation: {} }
}
}, function(err, t) {
if (err) {
console.error('i18next initialization failed:', err);
return;
}
Promise.all([
fetch('/payment/locales/zh.json').then(r => r.json()),
fetch('/payment/locales/en.json').then(r => r.json())
]).then(function([zhData, enData]) {
i18next.addResourceBundle('zh', 'translation', zhData);
i18next.addResourceBundle('en', 'translation', enData);
updateContent();
document.getElementById('languageSwitcher').value = currentLang;
}).catch(function(error) {
console.error('Failed to load language files:', error);
});
});
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function(element) {
const key = element.getAttribute('data-i18n');
if (key.startsWith('[')) {
const matches = key.match(/\[(.+?)\](.+)/);
if (matches) {
const attr = matches[1];
const transKey = matches[2];
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
} else {
element.setAttribute(attr, i18next.t(transKey));
}
}
} else {
const translation = i18next.t(key);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
element.innerHTML = translation;
}
}
});
}
function changeLanguage(lang) {
i18next.changeLanguage(lang, function(err, t) {
if (err) {
console.error('Language change failed:', err);
return;
}
currentLang = lang;
localStorage.setItem('payment_language', lang);
updateContent();
});
}
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
+1 -67
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDC" data-network="Aptos" data-network-name="Aptos" data-warning-token="APT">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
@@ -94,73 +94,7 @@
</div>
<script>
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
currentLang = 'en';
}
i18next.init({
lng: currentLang,
debug: false,
resources: {
zh: { translation: {} },
en: { translation: {} }
}
}, function(err, t) {
if (err) {
console.error('i18next initialization failed:', err);
return;
}
Promise.all([
fetch('/payment/locales/zh.json').then(r => r.json()),
fetch('/payment/locales/en.json').then(r => r.json())
]).then(function([zhData, enData]) {
i18next.addResourceBundle('zh', 'translation', zhData);
i18next.addResourceBundle('en', 'translation', enData);
updateContent();
document.getElementById('languageSwitcher').value = currentLang;
}).catch(function(error) {
console.error('Failed to load language files:', error);
});
});
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function(element) {
const key = element.getAttribute('data-i18n');
if (key.startsWith('[')) {
const matches = key.match(/\[(.+?)\](.+)/);
if (matches) {
const attr = matches[1];
const transKey = matches[2];
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
} else {
element.setAttribute(attr, i18next.t(transKey));
}
}
} else {
const translation = i18next.t(key);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
element.innerHTML = translation;
}
}
});
}
function changeLanguage(lang) {
i18next.changeLanguage(lang, function(err, t) {
if (err) {
console.error('Language change failed:', err);
return;
}
currentLang = lang;
localStorage.setItem('payment_language', lang);
updateContent();
});
}
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
+1 -67
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDC" data-network="Arbitrum" data-network-name="Arbitrum One" data-warning-token="ETH">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
@@ -94,73 +94,7 @@
</div>
<script>
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
currentLang = 'en';
}
i18next.init({
lng: currentLang,
debug: false,
resources: {
zh: { translation: {} },
en: { translation: {} }
}
}, function(err, t) {
if (err) {
console.error('i18next initialization failed:', err);
return;
}
Promise.all([
fetch('/payment/locales/zh.json').then(r => r.json()),
fetch('/payment/locales/en.json').then(r => r.json())
]).then(function([zhData, enData]) {
i18next.addResourceBundle('zh', 'translation', zhData);
i18next.addResourceBundle('en', 'translation', enData);
updateContent();
document.getElementById('languageSwitcher').value = currentLang;
}).catch(function(error) {
console.error('Failed to load language files:', error);
});
});
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function(element) {
const key = element.getAttribute('data-i18n');
if (key.startsWith('[')) {
const matches = key.match(/\[(.+?)\](.+)/);
if (matches) {
const attr = matches[1];
const transKey = matches[2];
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
} else {
element.setAttribute(attr, i18next.t(transKey));
}
}
} else {
const translation = i18next.t(key);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
element.innerHTML = translation;
}
}
});
}
function changeLanguage(lang) {
i18next.changeLanguage(lang, function(err, t) {
if (err) {
console.error('Language change failed:', err);
return;
}
currentLang = lang;
localStorage.setItem('payment_language', lang);
updateContent();
});
}
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
+1 -67
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDC" data-network="Base" data-network-name="Base" data-warning-token="ETH">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
@@ -94,73 +94,7 @@
</div>
<script>
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
currentLang = 'en';
}
i18next.init({
lng: currentLang,
debug: false,
resources: {
zh: { translation: {} },
en: { translation: {} }
}
}, function(err, t) {
if (err) {
console.error('i18next initialization failed:', err);
return;
}
Promise.all([
fetch('/payment/locales/zh.json').then(r => r.json()),
fetch('/payment/locales/en.json').then(r => r.json())
]).then(function([zhData, enData]) {
i18next.addResourceBundle('zh', 'translation', zhData);
i18next.addResourceBundle('en', 'translation', enData);
updateContent();
document.getElementById('languageSwitcher').value = currentLang;
}).catch(function(error) {
console.error('Failed to load language files:', error);
});
});
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function(element) {
const key = element.getAttribute('data-i18n');
if (key.startsWith('[')) {
const matches = key.match(/\[(.+?)\](.+)/);
if (matches) {
const attr = matches[1];
const transKey = matches[2];
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
} else {
element.setAttribute(attr, i18next.t(transKey));
}
}
} else {
const translation = i18next.t(key);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
element.innerHTML = translation;
}
}
});
}
function changeLanguage(lang) {
i18next.changeLanguage(lang, function(err, t) {
if (err) {
console.error('Language change failed:', err);
return;
}
currentLang = lang;
localStorage.setItem('payment_language', lang);
updateContent();
});
}
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
+1 -67
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDC" data-network="BEP20" data-network-name="币安智能链 (BSC)" data-warning-token="BNB">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
@@ -94,73 +94,7 @@
</div>
<script>
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
currentLang = 'en';
}
i18next.init({
lng: currentLang,
debug: false,
resources: {
zh: { translation: {} },
en: { translation: {} }
}
}, function(err, t) {
if (err) {
console.error('i18next initialization failed:', err);
return;
}
Promise.all([
fetch('/payment/locales/zh.json').then(r => r.json()),
fetch('/payment/locales/en.json').then(r => r.json())
]).then(function([zhData, enData]) {
i18next.addResourceBundle('zh', 'translation', zhData);
i18next.addResourceBundle('en', 'translation', enData);
updateContent();
document.getElementById('languageSwitcher').value = currentLang;
}).catch(function(error) {
console.error('Failed to load language files:', error);
});
});
function updateContent() {
document.querySelectorAll('[data-i18n]').forEach(function(element) {
const key = element.getAttribute('data-i18n');
if (key.startsWith('[')) {
const matches = key.match(/\[(.+?)\](.+)/);
if (matches) {
const attr = matches[1];
const transKey = matches[2];
if (attr === 'html') {
element.innerHTML = i18next.t(transKey);
} else {
element.setAttribute(attr, i18next.t(transKey));
}
}
} else {
const translation = i18next.t(key);
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
element.placeholder = translation;
} else {
element.innerHTML = translation;
}
}
});
}
function changeLanguage(lang) {
i18next.changeLanguage(lang, function(err, t) {
if (err) {
console.error('Language change failed:', err);
return;
}
currentLang = lang;
localStorage.setItem('payment_language', lang);
updateContent();
});
}
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
+108 -175
View File
@@ -1,178 +1,111 @@
<!DOCTYPE html>
</html>
</body>
</script>
});
});
return_url: "{{.return_url}}"
trade_id: "{{.trade_id}}",
amount: "{{.amount}}",
address: "{{.address}}",
expire: "{{.expire}}",
Payment.init({
document.addEventListener('DOMContentLoaded', function () {
}
});
updateContent();
localStorage.setItem('payment_language', lang);
currentLang = lang;
}
return;
console.error('Language change failed:', err);
if (err) {
i18next.changeLanguage(lang, function(err, t) {
function changeLanguage(lang) {
}
});
}
}
element.innerHTML = translation;
} else {
element.placeholder = translation;
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
const translation = i18next.t(key);
} else {
}
}
element.setAttribute(attr, i18next.t(transKey));
} else {
element.innerHTML = i18next.t(transKey);
if (attr === 'html') {
const transKey = matches[2];
const attr = matches[1];
if (matches) {
const matches = key.match(/\[(.+?)\](.+)/);
if (key.startsWith('[')) {
const key = element.getAttribute('data-i18n');
document.querySelectorAll('[data-i18n]').forEach(function(element) {
function updateContent() {
});
});
console.error('Failed to load language files:', error);
}).catch(function(error) {
document.getElementById('languageSwitcher').value = currentLang;
updateContent();
i18next.addResourceBundle('en', 'translation', enData);
i18next.addResourceBundle('zh', 'translation', zhData);
]).then(function([zhData, enData]) {
fetch('/payment/locales/en.json').then(r => r.json())
fetch('/payment/locales/zh.json').then(r => r.json()),
Promise.all([
}
return;
console.error('i18next initialization failed:', err);
if (err) {
}, function(err, t) {
}
en: { translation: {} }
zh: { translation: {} },
resources: {
debug: false,
lng: currentLang,
i18next.init({
}
currentLang = 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
<script>
</div>
</div>
</div>
<span class="open-source" data-i18n="payment.github">Github</span>
</a>
<strong>BEpusdt</strong>
<a href="https://github.com/v03413/BEpusdt" target="_blank" class="project-link">
<span class="powered-by" data-i18n="payment.poweredBy">Powered by</span>
<div class="project-info">
<div class="footer-info">
</div>
</ol>
<li data-i18n="payment.instruction4">如果有其它疑问,请联系客服处理</li>
<li data-i18n="payment.instruction3">转账金额必须与显示金额完全一致</li>
<li data-i18n="payment.instruction2">转账完成后系统会自动确认到账</li>
<li data-i18n="[html]payment.instruction1">必须使用 <strong>ERC20 网络</strong> 进行转账,请勿转入 ETH!</li>
<ol>
<h4 data-i18n="payment.instructionsTitle">📋 转账说明</h4>
<div class="instructions">
</div>
</div>
<button class="copy-btn" onclick="copyAddress()" data-i18n="payment.copyAddress">复制地址</button>
<div class="address-text" id="walletAddress">{{.address}}</div>
<div class="address-label" data-i18n="payment.addressLabel">收款地址 (ERC20 网络)</div>
<div class="address-section">
<div class="qr-code" id="qrcode"></div>
<div class="qr-section">
</div>
</div>
</div>
</div>
<span class="time-label" data-i18n="payment.seconds">秒</span>
<span class="time-number" id="seconds">00</span>
<div class="time-unit">
<span class="time-separator">:</span>
</div>
<span class="time-label" data-i18n="payment.minutes">分</span>
<span class="time-number" id="minutes">15</span>
<div class="time-unit">
<div class="countdown-timer" id="countdown">
</div>
<div class="countdown-subtitle" data-i18n="payment.countdownSubtitle">请在指定时间内完成转账,超时勿付请重新下单</div>
<div class="countdown-title" data-i18n="payment.countdownTitle">⏰ 支付倒计时</div>
<div class="countdown-info">
<div class="countdown-content">
<div class="countdown-banner">
</div>
</div>
</span>
<span class="fiat-amount"><span data-i18n="payment.amountPrefix">约</span> {{.money}} {{.fiat}}</span>
<span class="order-value">
<span class="order-label" data-i18n="payment.orderAmount">订单金额:</span>
<div class="order-item">
</div>
<span class="order-value">{{.order_id}}</span>
<span class="order-label" data-i18n="payment.merchantOrder">商户订单:</span>
<div class="order-item">
</div>
<span class="order-value amount-value" id="payAmount" onclick="copyAmount()" data-i18n="[title]payment.clickToCopy" title="点击复制金额">{{.amount}} USDC</span>
<span class="order-label" data-i18n="payment.paymentAmount">付款数额:</span>
<div class="order-item">
<div class="order-info">
</p>
<span class="network-badge" data-i18n="payment.networkBadge">ERC20</span>
<span data-i18n="payment.subtitle">请使用 <strong>以太坊 (Ethereum)</strong> ERC20 网络进行转账</span>
<span class="status-indicator"></span>
<p class="payment-subtitle">
<h1 class="payment-title" data-i18n="payment.title">USDC 支付</h1>
<div class="crypto-icon">USDC</div>
</div>
</select>
<option value="en">English</option>
<option value="zh">中文</option>
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<div class="language-switcher">
<div class="payment-container">
<body>
</head>
<script src="/payment/js/core.min.js"></script>
<script src="/payment/i18n/i18next.min.js"></script>
<script src="/payment/js/jquery.qrcode_1.0.min.js"></script>
<script src="/payment/js/jquery.min.js"></script>
<link rel="stylesheet" href="/payment/css/core.min.css">
<link rel="shortcut icon" href="/payment/img/tether.svg">
<title>USDC・ERC20 一款更好用的个人USDC收款网关 BEpusdt</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<head>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>USDC・ERC20 一款更好用的个人USDC收款网关 BEpusdt</title>
<link rel="shortcut icon" href="/payment/img/tether.svg">
<link rel="stylesheet" href="/payment/css/core.min.css">
<script src="/payment/js/jquery.min.js"></script>
<script src="/payment/js/jquery.qrcode_1.0.min.js"></script>
<script src="/payment/i18n/i18next.min.js"></script>
<script src="/payment/js/core.min.js"></script>
</head>
<body>
<div class="payment-container" data-token="USDC" data-network="ERC20" data-network-name="以太坊 (Ethereum)" data-warning-token="ETH">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
<option value="en">English</option>
</select>
</div>
<div class="crypto-icon">USDC</div>
<h1 class="payment-title" data-i18n="payment.title">USDC 支付</h1>
<p class="payment-subtitle">
<span class="status-indicator"></span>
<span data-i18n="payment.subtitle">请使用 <strong>以太坊 (Ethereum)</strong> ERC20 网络进行转账</span>
<span class="network-badge" data-i18n="payment.networkBadge">ERC20</span>
</p>
<div class="order-info">
<div class="order-item">
<span class="order-label" data-i18n="payment.paymentAmount">付款数额:</span>
<span class="order-value amount-value" id="payAmount" onclick="copyAmount()" data-i18n="[title]payment.clickToCopy" title="点击复制金额">{{.amount}} USDC</span>
</div>
<div class="order-item">
<span class="order-label" data-i18n="payment.merchantOrder">商户订单:</span>
<span class="order-value">{{.order_id}}</span>
</div>
<div class="order-item">
<span class="order-label" data-i18n="payment.orderAmount">订单金额:</span>
<span class="order-value">
<span class="fiat-amount"><span data-i18n="payment.amountPrefix">约</span> {{.money}} {{.fiat}}</span>
</span>
</div>
</div>
<div class="countdown-banner">
<div class="countdown-content">
<div class="countdown-info">
<div class="countdown-title" data-i18n="payment.countdownTitle">⏰ 支付倒计时</div>
<div class="countdown-subtitle" data-i18n="payment.countdownSubtitle">请在指定时间内完成转账,超时勿付请重新下单</div>
</div>
<div class="countdown-timer" id="countdown">
<div class="time-unit">
<span class="time-number" id="minutes">15</span>
<span class="time-label" data-i18n="payment.minutes">分</span>
</div>
<span class="time-separator">:</span>
<div class="time-unit">
<span class="time-number" id="seconds">00</span>
<span class="time-label" data-i18n="payment.seconds">秒</span>
</div>
</div>
</div>
</div>
<div class="qr-section">
<div class="qr-code" id="qrcode"></div>
<div class="address-section">
<div class="address-label" data-i18n="payment.addressLabel">收款地址 (ERC20 网络)</div>
<div class="address-text" id="walletAddress">{{.address}}</div>
<button class="copy-btn" onclick="copyAddress()" data-i18n="payment.copyAddress">复制地址</button>
</div>
</div>
<div class="instructions">
<h4 data-i18n="payment.instructionsTitle">📋 转账说明</h4>
<ol>
<li data-i18n="[html]payment.instruction1">必须使用 <strong>ERC20 网络</strong> 进行转账,请勿转入 ETH!</li>
<li data-i18n="payment.instruction2">转账完成后系统会自动确认到账</li>
<li data-i18n="payment.instruction3">转账金额必须与显示金额完全一致</li>
<li data-i18n="payment.instruction4">如果有其它疑问,请联系客服处理</li>
</ol>
</div>
<div class="footer-info">
<div class="project-info">
<span class="powered-by" data-i18n="payment.poweredBy">Powered by</span>
<a href="https://github.com/v03413/BEpusdt" target="_blank" class="project-link">
<strong>BEpusdt</strong>
</a>
<span class="open-source" data-i18n="payment.github">Github</span>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
expire: "{{.expire}}",
address: "{{.address}}",
amount: "{{.amount}}",
trade_id: "{{.trade_id}}",
return_url: "{{.return_url}}"
});
});
</script>
</body>
</html>
+108 -175
View File
@@ -1,178 +1,111 @@
<!DOCTYPE html>
</html>
</body>
</script>
});
});
return_url: "{{.return_url}}"
trade_id: "{{.trade_id}}",
amount: "{{.amount}}",
address: "{{.address}}",
expire: "{{.expire}}",
Payment.init({
document.addEventListener('DOMContentLoaded', function () {
}
});
updateContent();
localStorage.setItem('payment_language', lang);
currentLang = lang;
}
return;
console.error('Language change failed:', err);
if (err) {
i18next.changeLanguage(lang, function(err, t) {
function changeLanguage(lang) {
}
});
}
}
element.innerHTML = translation;
} else {
element.placeholder = translation;
if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') {
const translation = i18next.t(key);
} else {
}
}
element.setAttribute(attr, i18next.t(transKey));
} else {
element.innerHTML = i18next.t(transKey);
if (attr === 'html') {
const transKey = matches[2];
const attr = matches[1];
if (matches) {
const matches = key.match(/\[(.+?)\](.+)/);
if (key.startsWith('[')) {
const key = element.getAttribute('data-i18n');
document.querySelectorAll('[data-i18n]').forEach(function(element) {
function updateContent() {
});
});
console.error('Failed to load language files:', error);
}).catch(function(error) {
document.getElementById('languageSwitcher').value = currentLang;
updateContent();
i18next.addResourceBundle('en', 'translation', enData);
i18next.addResourceBundle('zh', 'translation', zhData);
]).then(function([zhData, enData]) {
fetch('/payment/locales/en.json').then(r => r.json())
fetch('/payment/locales/zh.json').then(r => r.json()),
Promise.all([
}
return;
console.error('i18next initialization failed:', err);
if (err) {
}, function(err, t) {
}
en: { translation: {} }
zh: { translation: {} },
resources: {
debug: false,
lng: currentLang,
i18next.init({
}
currentLang = 'en';
if (currentLang !== 'zh' && currentLang !== 'en') {
let currentLang = localStorage.getItem('payment_language') || navigator.language.split('-')[0] || 'en';
<script>
</div>
</div>
</div>
<span class="open-source" data-i18n="payment.github">Github</span>
</a>
<strong>BEpusdt</strong>
<a href="https://github.com/v03413/BEpusdt" target="_blank" class="project-link">
<span class="powered-by" data-i18n="payment.poweredBy">Powered by</span>
<div class="project-info">
<div class="footer-info">
</div>
</ol>
<li data-i18n="payment.instruction4">如果有其它疑问,请联系客服处理</li>
<li data-i18n="payment.instruction3">转账金额必须与显示金额完全一致</li>
<li data-i18n="payment.instruction2">转账完成后系统会自动确认到账</li>
<li data-i18n="[html]payment.instruction1">必须使用 <strong>Polygon 网络</strong> 进行转账,请勿转入 MATIC!</li>
<ol>
<h4 data-i18n="payment.instructionsTitle">📋 转账说明</h4>
<div class="instructions">
</div>
</div>
<button class="copy-btn" onclick="copyAddress()" data-i18n="payment.copyAddress">复制地址</button>
<div class="address-text" id="walletAddress">{{.address}}</div>
<div class="address-label" data-i18n="payment.addressLabel">收款地址 (Polygon 网络)</div>
<div class="address-section">
<div class="qr-code" id="qrcode"></div>
<div class="qr-section">
</div>
</div>
</div>
</div>
<span class="time-label" data-i18n="payment.seconds">秒</span>
<span class="time-number" id="seconds">00</span>
<div class="time-unit">
<span class="time-separator">:</span>
</div>
<span class="time-label" data-i18n="payment.minutes">分</span>
<span class="time-number" id="minutes">15</span>
<div class="time-unit">
<div class="countdown-timer" id="countdown">
</div>
<div class="countdown-subtitle" data-i18n="payment.countdownSubtitle">请在指定时间内完成转账,超时勿付请重新下单</div>
<div class="countdown-title" data-i18n="payment.countdownTitle">⏰ 支付倒计时</div>
<div class="countdown-info">
<div class="countdown-content">
<div class="countdown-banner">
</div>
</div>
</span>
<span class="fiat-amount"><span data-i18n="payment.amountPrefix">约</span> {{.money}} {{.fiat}}</span>
<span class="order-value">
<span class="order-label" data-i18n="payment.orderAmount">订单金额:</span>
<div class="order-item">
</div>
<span class="order-value">{{.order_id}}</span>
<span class="order-label" data-i18n="payment.merchantOrder">商户订单:</span>
<div class="order-item">
</div>
<span class="order-value amount-value" id="payAmount" onclick="copyAmount()" data-i18n="[title]payment.clickToCopy" title="点击复制金额">{{.amount}} USDC</span>
<span class="order-label" data-i18n="payment.paymentAmount">付款数额:</span>
<div class="order-item">
<div class="order-info">
</p>
<span class="network-badge" data-i18n="payment.networkBadge">Polygon</span>
<span data-i18n="payment.subtitle">请使用 <strong>Polygon</strong> 网络进行转账</span>
<span class="status-indicator"></span>
<p class="payment-subtitle">
<h1 class="payment-title" data-i18n="payment.title">USDC 支付</h1>
<div class="crypto-icon">USDC</div>
</div>
</select>
<option value="en">English</option>
<option value="zh">中文</option>
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<div class="language-switcher">
<div class="payment-container">
<body>
</head>
<script src="/payment/js/core.min.js"></script>
<script src="/payment/i18n/i18next.min.js"></script>
<script src="/payment/js/jquery.qrcode_1.0.min.js"></script>
<script src="/payment/js/jquery.min.js"></script>
<link rel="stylesheet" href="/payment/css/core.min.css">
<link rel="shortcut icon" href="/payment/img/tether.svg">
<title>USDC・Polygon 一款更好用的个人USDC收款网关 BEpusdt</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<head>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>USDC・Polygon 一款更好用的个人USDC收款网关 BEpusdt</title>
<link rel="shortcut icon" href="/payment/img/tether.svg">
<link rel="stylesheet" href="/payment/css/core.min.css">
<script src="/payment/js/jquery.min.js"></script>
<script src="/payment/js/jquery.qrcode_1.0.min.js"></script>
<script src="/payment/i18n/i18next.min.js"></script>
<script src="/payment/js/core.min.js"></script>
</head>
<body>
<div class="payment-container" data-token="USDC" data-network="Polygon" data-network-name="Polygon" data-warning-token="POL/MATIC">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
<option value="en">English</option>
</select>
</div>
<div class="crypto-icon">USDC</div>
<h1 class="payment-title" data-i18n="payment.title">USDC 支付</h1>
<p class="payment-subtitle">
<span class="status-indicator"></span>
<span data-i18n="payment.subtitle">请使用 <strong>Polygon</strong> 网络进行转账</span>
<span class="network-badge" data-i18n="payment.networkBadge">Polygon</span>
</p>
<div class="order-info">
<div class="order-item">
<span class="order-label" data-i18n="payment.paymentAmount">付款数额:</span>
<span class="order-value amount-value" id="payAmount" onclick="copyAmount()" data-i18n="[title]payment.clickToCopy" title="点击复制金额">{{.amount}} USDC</span>
</div>
<div class="order-item">
<span class="order-label" data-i18n="payment.merchantOrder">商户订单:</span>
<span class="order-value">{{.order_id}}</span>
</div>
<div class="order-item">
<span class="order-label" data-i18n="payment.orderAmount">订单金额:</span>
<span class="order-value">
<span class="fiat-amount"><span data-i18n="payment.amountPrefix">约</span> {{.money}} {{.fiat}}</span>
</span>
</div>
</div>
<div class="countdown-banner">
<div class="countdown-content">
<div class="countdown-info">
<div class="countdown-title" data-i18n="payment.countdownTitle">⏰ 支付倒计时</div>
<div class="countdown-subtitle" data-i18n="payment.countdownSubtitle">请在指定时间内完成转账,超时勿付请重新下单</div>
</div>
<div class="countdown-timer" id="countdown">
<div class="time-unit">
<span class="time-number" id="minutes">15</span>
<span class="time-label" data-i18n="payment.minutes">分</span>
</div>
<span class="time-separator">:</span>
<div class="time-unit">
<span class="time-number" id="seconds">00</span>
<span class="time-label" data-i18n="payment.seconds">秒</span>
</div>
</div>
</div>
</div>
<div class="qr-section">
<div class="qr-code" id="qrcode"></div>
<div class="address-section">
<div class="address-label" data-i18n="payment.addressLabel">收款地址 (Polygon 网络)</div>
<div class="address-text" id="walletAddress">{{.address}}</div>
<button class="copy-btn" onclick="copyAddress()" data-i18n="payment.copyAddress">复制地址</button>
</div>
</div>
<div class="instructions">
<h4 data-i18n="payment.instructionsTitle">📋 转账说明</h4>
<ol>
<li data-i18n="[html]payment.instruction1">必须使用 <strong>Polygon 网络</strong> 进行转账,请勿转入 POL/MATIC!</li>
<li data-i18n="payment.instruction2">转账完成后系统会自动确认到账</li>
<li data-i18n="payment.instruction3">转账金额必须与显示金额完全一致</li>
<li data-i18n="payment.instruction4">如果有其它疑问,请联系客服处理</li>
</ol>
</div>
<div class="footer-info">
<div class="project-info">
<span class="powered-by" data-i18n="payment.poweredBy">Powered by</span>
<a href="https://github.com/v03413/BEpusdt" target="_blank" class="project-link">
<strong>BEpusdt</strong>
</a>
<span class="open-source" data-i18n="payment.github">Github</span>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
Payment.init({
expire: "{{.expire}}",
address: "{{.address}}",
amount: "{{.amount}}",
trade_id: "{{.trade_id}}",
return_url: "{{.return_url}}"
});
});
</script>
</body>
</html>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDC" data-network="Solana" data-network-name="Solana" data-warning-token="SOL">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDC" data-network="TRC20" data-network-name="波场 (TRON)" data-warning-token="TRX">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDC" data-network="X Layer" data-network-name="X Layer" data-warning-token="OKB">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="Aptos" data-network-name="Aptos" data-warning-token="APT">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="Arbitrum" data-network-name="Arbitrum One" data-warning-token="ETH">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="BEP20" data-network-name="币安智能链 (BSC)" data-warning-token="BNB">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="ERC20" data-network-name="以太坊 (Ethereum)" data-warning-token="ETH">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="Plasma" data-network-name="Plasma (XPL)" data-warning-token="XPL">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="Polygon" data-network-name="Polygon" data-warning-token="POL/MATIC">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="Solana" data-network-name="Solana" data-warning-token="SOL">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -12,7 +12,7 @@
<script src="/payment/js/core.min.js"></script>
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="TRC20" data-network-name="波场 (TRON)" data-warning-token="TRX">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>
+1 -1
View File
@@ -14,7 +14,7 @@
</head>
<body>
<div class="payment-container">
<div class="payment-container" data-token="USDT" data-network="X Layer" data-network-name="X Layer" data-warning-token="OKB">
<div class="language-switcher">
<select id="languageSwitcher" onchange="changeLanguage(this.value)">
<option value="zh">中文</option>