{% extends "portal/base.html" %} {% block title %}充值 - cmhub{% endblock %} {% block content %}

充值

{{ user.email }}
充值记录
当前点数
{{ balance.points_balance }}
充值总额
{{ recharge_total_amount|floatformat:2 }}
入账点数
{{ recharge_points_total }}

发起充值

{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors|striptags }}
{% endif %}
{{ form.amount }} {% if form.amount.errors %}
{{ form.amount.errors|striptags }}
{% endif %}
{{ form.pay_method.label }}
{% for radio in form.pay_method %}
{{ radio.tag }}
{% endfor %}
{% if form.pay_method.errors %}
{{ form.pay_method.errors|striptags }}
{% endif %}
{% if current_order %}

待支付订单

订单号:{{ current_order.order_no }}
{{ current_order.status }}
金额
{{ current_order.amount_money|floatformat:2 }} {{ current_order.currency }}
预计到账
{{ current_order.points_granted }} 点
支付方式
{{ current_order.pay_method }}
创建时间
{{ current_order.created_at|date:"Y-m-d H:i" }}
二维码有效期
{{ current_order.expires_at|date:"Y-m-d H:i"|default:"-" }}
到账时间
{{ current_order.paid_at|date:"Y-m-d H:i"|default:"-" }}
{% if current_order.status == "pending" %} 正在等待支付结果,页面会自动轮询订单状态。 {% elif current_order.status == "paid" %} 订单已到账,余额已刷新。 {% else %} 订单当前状态为 {{ current_order.status }}。 {% endif %}
{% endif %}

最近充值

全部
{% if recent_recharge_orders %}
{% for order in recent_recharge_orders %} {% endfor %}
订单号 金额 点数 状态 创建时间
{{ order.order_no }} {{ order.amount_money|floatformat:2 }} {{ order.currency }} {{ order.points_granted }} {{ order.status }} {{ order.created_at|date:"Y-m-d H:i" }}
{% else %}
暂无充值记录
{% endif %}
{% endblock %}