feat: upgrade widgets and affiliate commission flow

This commit is contained in:
kate522 committed 2026-08-16 18:29:31 +08:00
1 parent 22c0c9df9c
commit 698a9beb74
33 files changed
+709 -227

No files matched your search

+3 -3
View File
@@ -31,7 +31,7 @@
}
function request(payload) {
return fetch(rest + '/pay/balance/withdraw', {
return fetch(rest + '/earnings/withdrawals', {
method: 'POST',
credentials: 'same-origin',
headers: {
@@ -53,7 +53,7 @@
var values = new FormData(form);
var amount = Number(values.get('amount') || 0);
var method = String(values.get('method') || 'alipay');
var account = String(values.get('account_info') || '').trim();
var account = String(values.get('account') || values.get('account_info') || '').trim();
var minimum = Number(page.getAttribute('data-min-amount') || 50);
if (amount < minimum) {
setMessage('最低提现金额为 ' + minimum, true);
@@ -69,7 +69,7 @@
button.disabled = true;
button.textContent = '提交中…';
}
request({ amount: amount, method: method, account_info: account }).then(function (result) {
request({ amount: amount, method: method, account: account }).then(function (result) {
if (button) {
button.disabled = false;
button.textContent = '提交提现申请';