40 lines
2.1 KiB
PHP
40 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* Shared balance withdrawal modal.
|
|
*
|
|
* @package AKSRT
|
|
*/
|
|
|
|
defined('ABSPATH') || exit;
|
|
|
|
if (!empty($GLOBALS['aksrt_withdraw_modal_rendered'])) {
|
|
return;
|
|
}
|
|
$GLOBALS['aksrt_withdraw_modal_rendered'] = true;
|
|
|
|
$withdraw_min = max(1, (float) ($withdraw_min ?? 50));
|
|
$wallet_fmt = (string) ($wallet_fmt ?? '0.00');
|
|
?>
|
|
<div class="uc-modal" id="aksrt-withdraw-modal" hidden data-aksrt-withdraw-modal>
|
|
<div class="uc-modal__overlay" data-aksrt-withdraw-close></div>
|
|
<div class="uc-modal__dialog" role="dialog" aria-modal="true">
|
|
<button type="button" class="uc-modal__close" data-aksrt-withdraw-close aria-label="<?php esc_attr_e('关闭', 'aksrt'); ?>"><i class="fas fa-times" aria-hidden="true"></i></button>
|
|
<h3 class="uc-modal__title"><?php esc_html_e('余额提现', 'aksrt'); ?></h3>
|
|
<form data-aksrt-withdraw-form>
|
|
<label class="muted-color em09"><?php esc_html_e('提现金额', 'aksrt'); ?></label>
|
|
<input type="number" class="uc-card-pass__input" name="amount" min="<?php echo esc_attr((string) $withdraw_min); ?>" step="0.01" data-aksrt-withdraw-amount>
|
|
<p class="muted-2-color em09 mt6"><?php printf(esc_html__('最低提现 %s 元,当前余额 %s', 'aksrt'), esc_html((string) $withdraw_min), esc_html($wallet_fmt)); ?></p>
|
|
<label class="muted-color em09 mt10"><?php esc_html_e('收款方式', 'aksrt'); ?></label>
|
|
<select class="uc-card-pass__input" name="method" data-aksrt-withdraw-method>
|
|
<option value="alipay"><?php esc_html_e('支付宝', 'aksrt'); ?></option>
|
|
<option value="wechat"><?php esc_html_e('微信', 'aksrt'); ?></option>
|
|
<option value="bank"><?php esc_html_e('银行卡', 'aksrt'); ?></option>
|
|
</select>
|
|
<label class="muted-color em09 mt10"><?php esc_html_e('收款账号信息', 'aksrt'); ?></label>
|
|
<textarea class="uc-card-pass__input" name="account" rows="3" data-aksrt-withdraw-account placeholder="<?php esc_attr_e('姓名 + 账号 / 卡号', 'aksrt'); ?>"></textarea>
|
|
<p class="uc-modal__tip" data-aksrt-withdraw-tip></p>
|
|
<button type="submit" class="but jb-blue btn-block" data-aksrt-withdraw-submit><?php esc_html_e('提交申请', 'aksrt'); ?></button>
|
|
</form>
|
|
</div>
|
|
</div>
|