123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <?php /*a:2:{s:67:"D:\phpstudy_pro\WWW\caiping\app\admin\view\admin\edit_personal.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
- <script src="/static/dist/xm-select.js"></script>
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <style>
- .footer{
- width: 100%;
- height: 25px;
- text-align: center;
- position: fixed;
- bottom: 0;
- }
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <form class="layui-form p-4">
- <h3 class="pb-3">修改个人信息</h3>
- <table class="layui-table layui-table-form">
- <tr>
- <td class="layui-td-gray">用户名<font>*</font></td>
- <td><input type="text" lay-verify="required" autocomplete="off" placeholder="请输入节点名称" class="layui-input"
- value="<?php echo htmlentities($admin['username']); ?>" disabled></td>
- <td class="layui-td-gray" rowspan="3">头像</td>
- <td rowspan="3">
- <div class="layui-upload">
- <button type="button" class="layui-btn layui-btn-normal" id="uploadBtn">上传头像</button>
- <div class="layui-upload-list" id="demo1">
- <img src="<?php echo htmlentities($admin['thumb']); ?>" width="100" />
- <input type="hidden" name="thumb" value="<?php echo htmlentities($admin['thumb']); ?>">
- </div>
- </div>
- </td>
- <td class="layui-td-gray" rowspan="3">扫码关注并绑定公众号</td>
- <td rowspan="3">
- <div class="we-login">
- <button type="button" class="layui-btn layui-btn-normal" id="reQrCode">刷新</button>
- <div class="login-img">
- <img src="<?php echo htmlentities($QrCode); ?>" width="100" id="codebox" />
- <p>有效时长:5分钟。失效请刷新!!!</p>
- <p>请勿泄露:防止被他人扫码绑定!!!</p>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray">昵称<font>*</font></td>
- <td>
- <input type="text" name="nickname" lay-verify="required" placeholder="请输入昵称" lay-reqText="请输入昵称"
- autocomplete="off" class="layui-input" value="<?php echo htmlentities($admin['nickname']); ?>">
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray">手机号码</td>
- <td><input type="text" name="mobile" lay-verify="required" placeholder="请输入手机" autocomplete="off"
- class="layui-input" value="<?php echo htmlentities($admin['mobile']); ?>"></td>
- </tr>
- </table>
- <div class="py-3">
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
- <button type="reset" class="layui-btn layui-btn-primary">重置</button>
- <button type="button" lay-submit="" class="layui-btn layui-btn-normal" lay-filter="aaa">aaa</button>
- </div>
- </form>
- <!-- <div>
- <table class="layui-table layui-table-form">
- <tr>
- <td class="layui-td-gray" rowspan="3">扫码关注并绑定公众号</td>
- <td rowspan="3">
- <div class="we-login">
- <button type="button" class="layui-btn layui-btn-normal" id="reQrCode">刷新</button>
- <div class="login-img">
- <img src="<?php echo htmlentities($QrCode); ?>" width="100" />
- <p>有效时长:5分钟。失效请刷新!!!</p>
- <p>请勿泄露:防止被他人扫码绑定!!!</p>
- </div>
- </div>
- </td>
- </tr>
- </table>
- </div> -->
- <!-- /主体 -->
- <!-- 底部 -->
-
- <div class="footer">
- 逸管工程项目管理系统 © www.yiguanfep.com
- <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
- <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\"noreferrer'target=\”blank\"" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
- <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
- </div>
-
-
- <!-- /底部 -->
-
- <!-- 脚本 -->
-
- <script>
- const moduleInit = ['tool'];
- function gouguInit() {
- var form = layui.form, tool = layui.tool, upload = layui.upload;
- //头像上传
- var uploadInst = upload.render({
- elem: '#uploadBtn'
- , url: '/admin/api/upload'
- , done: function (e) {
- //如果上传失败
- if (e.code == 1) {
- return layer.msg('上传失败');
- }
- else {
- //上传成功
- $('#demo1 input').attr('value', e.data.filepath);
- $('#demo1 img').attr('src', e.data.filepath);
- }
- }
- });
- //刷新二维码
- $('#reQrCode').click(function(e){
-
- createQrCode();
- });
-
-
- function createQrCode(){
- var loadIndex = layer.msg('请稍等...', {
- icon: 16,
- shade: 0.01
- });;
-
- $.ajax({
- url: "/wechat/officialaccount/getQrCode_bindAccount",
- type: 'get',
- success: function (res) {
- $('#codebox').attr('src',res)
- layer.close(loadIndex)
- }
- })
- }
- createQrCode();
-
- let a = 1;
- //监听提交
- form.on('submit(webform)', function (data) {
- if(a){
- let callback = function (e) {
-
- layer.msg(e.msg);
- if (e.code == 0) {
- layer.confirm('保存成功,关闭本页面吗?', { icon: 3, title: '提示' }, function (index) {
- tool.tabClose();
- a = 1
- layer.close(index);
- });
- }
- }
- tool.post("/admin/api/personal_submit", data.field, callback);
- }
-
- a = 0
- return false;
- });
- let aaa = 100;
- form.on('submit(aaa)', function (data) {
-
- alert("这是弹出框提示文本")
- console.log(aaa)
- return false;
- });
- }
- </script>
- <!-- /脚本 -->
-
- <!-- <script src="/static/assets/layui/layui.js"></script> -->
- <script src="/static/assets/layui/layui.js"></script>
- <script src="/static/assets/third_party/echart/echarts.min.js"></script>
- <script src="/static/assets/gougu/gouguInit.js"></script>
- <script src="https://unpkg.com/pinyin-pro"></script>
- <script>
-
- var { pinyin } = pinyinPro;
- </script>
-
-
- <!-- 统计代码 -->
-
- <!-- /统计代码 -->
- </body>
- </html>
|