|
@@ -9,36 +9,142 @@
|
|
|
<div class="c-body">
|
|
|
<div class="row m-0">
|
|
|
<div class="col-5 my-3">
|
|
|
+ <% if (accountData.auth_mobile !== '') { %>
|
|
|
+ <!--已绑定手机-->
|
|
|
+ <div class="form-group">
|
|
|
+ <label>已认证手机(用于 找回密码、接收通知)</label>
|
|
|
+ <div class="input-group mb-3">
|
|
|
+ <input class="form-control" readonly="" value="<%= accountData.auth_mobile %>">
|
|
|
+ <div class="input-group-append">
|
|
|
+ <button class="btn btn-outline-secondary" id="change-mobile">修改手机</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
<!--绑定手机-->
|
|
|
- <form id="mobile-form" method="post" action="/profile/bind">
|
|
|
+ <form id="mobile-form" method="post" action="/profile/bind" <% if (accountData.auth_mobile !== '') { %>style="display: none" <% } %>>
|
|
|
<div class="form-group">
|
|
|
<label>认证手机(用于 找回密码、接收通知)</label>
|
|
|
- <input class="form-control" placeholder="输入11位手机号码" value="<%= accountData.auth_mobile %>"
|
|
|
- <% if(accountData.auth_mobile !== '') { %>disabled="disabled"<% } %> name="auth_mobile"
|
|
|
- maxlength="11"/>
|
|
|
- </div>
|
|
|
- <% if (accountData.auth_mobile === '') { %>
|
|
|
- <div class="form-group">
|
|
|
<div class="input-group mb-3">
|
|
|
- <input class="form-control" readonly="readonly" name="code"/>
|
|
|
- <input type="hidden" name="_csrf" value="<%= ctx.csrf %>">
|
|
|
+ <input class="form-control" placeholder="输入11位手机号码" value="" name="auth_mobile" maxlength="11"/>
|
|
|
<div class="input-group-append">
|
|
|
<button class="btn btn-outline-secondary" type="button" id="get-code">获取验证码</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="input-group mb-3">
|
|
|
+ <input class="form-control" type="text" readonly="readonly" name="code" placeholder="输入短信中的6位验证码" />
|
|
|
+ <input type="hidden" name="_csrf" value="<%= ctx.csrf %>">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<button type="submit" class="btn btn-secondary disabled" id="bind-btn">确认绑定</button>
|
|
|
- <% } %>
|
|
|
</form>
|
|
|
+ <% if (accountData.auth_mobile !== '') { %>
|
|
|
+ <!--短信通知开关(已有认证手机后显示)-->
|
|
|
+ <div class="mt-5">
|
|
|
+ <h4>通知类型</h4>
|
|
|
+ <p class="text-muted">勾选您需要接收的短信类型。</p>
|
|
|
+ <div class="form-group row">
|
|
|
+ <label class="col-sm-2 col-form-label">台帐审批</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype1" value="option1">
|
|
|
+ <label class="form-check-label" for="smstype1">需要我审批</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype2" value="option2">
|
|
|
+ <label class="form-check-label" for="smstype2">审批通过(审批人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype3" value="option3">
|
|
|
+ <label class="form-check-label" for="smstype3">审批通过(上报人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype4" value="option4">
|
|
|
+ <label class="form-check-label" for="smstype4">审批退回(审批人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype5" value="option5">
|
|
|
+ <label class="form-check-label" for="smstype5">审批退回(上报人)</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group row">
|
|
|
+ <label class="col-sm-2 col-form-label">计量审批</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype6" value="option6">
|
|
|
+ <label class="form-check-label" for="smstype6">需要我审批</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype7" value="option7">
|
|
|
+ <label class="form-check-label" for="smstype7">审批通过(审批人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype8" value="option8">
|
|
|
+ <label class="form-check-label" for="smstype8">审批通过(上报人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype9" value="option9">
|
|
|
+ <label class="form-check-label" for="smstype9">审批退回(审批人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype10" value="option10">
|
|
|
+ <label class="form-check-label" for="smstype10">审批退回(上报人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype11" value="option11">
|
|
|
+ <label class="form-check-label" for="smstype11">审批退回(接收人)</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group row">
|
|
|
+ <label class="col-sm-2 col-form-label">变更管理</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype12" value="option12">
|
|
|
+ <label class="form-check-label" for="smstype12">需要我审批</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype13" value="option13">
|
|
|
+ <label class="form-check-label" for="smstype13">审批通过(审批人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype14" value="option14">
|
|
|
+ <label class="form-check-label" for="smstype14">审批通过(上报人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype15" value="option15">
|
|
|
+ <label class="form-check-label" for="smstype15">审批退回(审批人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype16" value="option16">
|
|
|
+ <label class="form-check-label" for="smstype16">审批退回(上报人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype17" value="option17">
|
|
|
+ <label class="form-check-label" for="smstype17">审批退回(接收人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype18" value="option18">
|
|
|
+ <label class="form-check-label" for="smstype18">审批终止(审批人)</label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check ">
|
|
|
+ <input class="form-check-input" type="checkbox" id="smstype19" value="option19">
|
|
|
+ <label class="form-check-label" for="smstype19">审批终止(上报人)</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <button type="submit" class="btn btn-primary">确认修改</button>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script type="text/javascript">
|
|
|
- new Vue({
|
|
|
- el: '#app',
|
|
|
- });
|
|
|
const csrf = '<%= ctx.csrf %>';
|
|
|
</script>
|
|
|
<script type="text/javascript" src="/public/js/profile.js"></script>
|