Publish reviewed history-free open-source snapshot (2026-10-12)
This commit is contained in:
@@ -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