Publish reviewed history-free open-source snapshot (2026-10-12)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}登录 · {{ PLATFORM_NAME }}{% endblock %}
|
||||
{% block content %}
|
||||
<section class="auth-layout">
|
||||
<div class="auth-copy">
|
||||
<span class="eyebrow">安全连接,从这里开始</span>
|
||||
<h1>连接你的工作网络,<br>清晰、稳定、可控。</h1>
|
||||
<p>统一查看服务状态、使用流量、有效期和订阅地址。公司员工与外部联系人使用同一入口。</p>
|
||||
<div class="feature-line"><span>01</span> 每人独立订阅与流量统计</div>
|
||||
<div class="feature-line"><span>02</span> 全局线路策略与个人专用线路</div>
|
||||
<div class="feature-line"><span>03</span> 到期、超额或停权立即生效</div>
|
||||
</div>
|
||||
<div class="auth-card">
|
||||
<h2>账号登录</h2>
|
||||
<p class="muted">使用纵横家账号,安全访问你的专属服务</p>
|
||||
<form method="post" class="form-grid">
|
||||
{% csrf_token %}
|
||||
{% if form.non_field_errors %}<div class="form-error">{{ form.non_field_errors }}</div>{% endif %}
|
||||
<label>用户名{{ form.username }}</label>
|
||||
<label>密码{{ form.password }}</label>
|
||||
{% if next %}<input type="hidden" name="next" value="{{ next }}">{% endif %}
|
||||
<button class="button primary wide" type="submit">登录</button>
|
||||
</form>
|
||||
{% if WECOM_AVAILABLE %}
|
||||
<form method="post" action="{% url 'wecom-start' %}" class="wecom-login">
|
||||
{% csrf_token %}<input type="hidden" name="purpose" value="login">
|
||||
{% if next %}<input type="hidden" name="next" value="{{ next }}">{% endif %}
|
||||
<button class="button secondary wide" type="submit">企业微信扫码登录</button>
|
||||
</form>
|
||||
<p class="muted">首次使用请先密码登录,在“个人绑定”中关联企业微信。</p>
|
||||
{% endif %}
|
||||
<p class="auth-foot">还没有账号?<a href="{% url 'register' %}">提交注册申请</a></p>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}密码已修改 · {{ PLATFORM_NAME }}{% endblock %}
|
||||
{% block content %}
|
||||
<section class="narrow-card compact">
|
||||
<h1>密码已修改</h1>
|
||||
<p>新密码已经生效。</p>
|
||||
<a class="button primary" href="{% url 'portal-dashboard' %}">返回用户中心</a>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}修改密码 · {{ PLATFORM_NAME }}{% endblock %}
|
||||
{% block content %}
|
||||
<section class="narrow-card compact">
|
||||
<h1>修改密码</h1>
|
||||
<form method="post" class="form-grid">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button class="button primary" type="submit">保存新密码</button>
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}注册 · {{ PLATFORM_NAME }}{% endblock %}
|
||||
{% block content %}
|
||||
<section class="narrow-card">
|
||||
<span class="eyebrow">新用户申请</span>
|
||||
<h1>创建服务账号</h1>
|
||||
<p class="muted">注册时选择套餐,一并提交申请。内部员工核实身份并审核后免费开通;外部人员的在线付费套餐暂未开放付款,仅登记申请,不立即开通。</p>
|
||||
<form method="post" class="form-grid two-column">
|
||||
{% csrf_token %}
|
||||
{% if form.non_field_errors %}<div class="form-error full">{{ form.non_field_errors }}</div>{% endif %}
|
||||
{% for field in form %}
|
||||
<label class="{% if field.name == 'accept_terms' %}checkbox-label full{% endif %}">
|
||||
{% if field.name == 'accept_terms' %}{{ field }} {{ field.label }}{% else %}{{ field.label }}{{ field }}{% endif %}
|
||||
{% if field.help_text %}<small>{{ field.help_text|safe }}</small>{% endif %}
|
||||
{% for error in field.errors %}<span class="field-error">{{ error }}</span>{% endfor %}
|
||||
</label>
|
||||
{% endfor %}
|
||||
<button class="button primary full" type="submit">注册并进入用户中心</button>
|
||||
</form>
|
||||
<p class="auth-foot">已经有账号?<a href="{% url 'login' %}">返回登录</a></p>
|
||||
</section>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}个人绑定 · {{ PLATFORM_NAME }}{% endblock %}
|
||||
{% block content %}
|
||||
<section class="hero-row"><div><span class="eyebrow">账号与安全</span><h1>企业微信绑定</h1>
|
||||
<p class="muted">平台账号 {{ user.username }} · {{ user.get_identity_type_display }}</p></div>
|
||||
<a class="button secondary" href="{% url 'portal-dashboard' %}">返回用户中心</a></section>
|
||||
<section class="card">
|
||||
{% if user.identity_type == "employee" %}<p class="notice-line">内部员工免费,套餐和服务权限仍以后台审核为准。</p>
|
||||
{% else %}<p class="notice-line">外部人员 1024G/月套餐为 8 元。绑定企业微信不会自动变更计费身份。</p>{% endif %}
|
||||
{% if binding %}
|
||||
<h2>已绑定 · {{ binding.get_kind_display }}</h2>
|
||||
<p class="muted">绑定时间:{{ binding.created_at|date:"Y-m-d H:i" }}。绑定不改变套餐或管理员权限。</p>
|
||||
<form method="post" action="{% url 'wecom-unbind' %}" class="form-grid">
|
||||
{% csrf_token %}<label>当前平台密码<input type="password" name="password" required autocomplete="current-password"></label>
|
||||
<button type="submit" class="button secondary">验证密码并解绑</button></form>
|
||||
{% elif wecom_available %}
|
||||
<h2>尚未绑定</h2><p class="muted">验证平台密码后打开企业微信扫码页。同一企业微信身份只能绑定一个平台账号。</p>
|
||||
<form method="post" action="{% url 'wecom-start' %}" class="form-grid">
|
||||
{% csrf_token %}<input type="hidden" name="purpose" value="bind">
|
||||
<label>当前平台密码<input type="password" name="password" required autocomplete="current-password"></label>
|
||||
<button type="submit" class="button primary">验证密码并扫码绑定</button></form>
|
||||
{% else %}<h2>企业微信尚未接通</h2><p class="muted">管理员配置公司自建应用及可信回调域名后启用。账号密码登录仍可使用。</p>{% endif %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user