| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <% include ./sub_menu.ejs %>
- <div class="panel-content" id="app">
- <div class="panel-title">
- <div class="title-main">
- <h2>短信通知</h2>
- </div>
- </div>
- <div class="content-wrap">
- <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" <% if (accountData.auth_mobile !== '') { %>style="display: none" <% } %>>
- <div class="form-group">
- <label>认证手机(用于 找回密码、接收通知)</label>
- <div class="input-group mb-3">
- <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">
- const csrf = '<%= ctx.csrf %>';
- </script>
- <script type="text/javascript" src="/public/js/profile.js"></script>
|