90611678d5b29c6d7b258e0e6f17a24c.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  10. <script src="/static/dist/xm-select.js"></script>
  11. <link rel="mobile-prefetch" href=""/>
  12. <title><?php echo get_system_config('web','admin_title'); ?></title>
  13. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  14. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  15. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  16. <style>
  17. .footer{
  18. width: 100%;
  19. height: 25px;
  20. text-align: center;
  21. position: fixed;
  22. bottom: 0;
  23. }
  24. </style>
  25. </head>
  26. <body class="main-body">
  27. <!-- 主体 -->
  28. <form class="layui-form p-4">
  29. <h3 class="pb-3">修改个人信息</h3>
  30. <table class="layui-table layui-table-form">
  31. <tr>
  32. <td class="layui-td-gray">用户名<font>*</font></td>
  33. <td><input type="text" lay-verify="required" autocomplete="off" placeholder="请输入节点名称" class="layui-input"
  34. value="<?php echo htmlentities($admin['username']); ?>" disabled></td>
  35. <td class="layui-td-gray" rowspan="3">头像</td>
  36. <td rowspan="3">
  37. <div class="layui-upload">
  38. <button type="button" class="layui-btn layui-btn-normal" id="uploadBtn">上传头像</button>
  39. <div class="layui-upload-list" id="demo1">
  40. <img src="<?php echo htmlentities($admin['thumb']); ?>" width="100" />
  41. <input type="hidden" name="thumb" value="<?php echo htmlentities($admin['thumb']); ?>">
  42. </div>
  43. </div>
  44. </td>
  45. <td class="layui-td-gray" rowspan="3">扫码关注并绑定公众号</td>
  46. <td rowspan="3">
  47. <div class="we-login">
  48. <button type="button" class="layui-btn layui-btn-normal" id="reQrCode">刷新</button>
  49. <div class="login-img">
  50. <img src="<?php echo htmlentities($QrCode); ?>" width="100" id="codebox" />
  51. <p>有效时长:5分钟。失效请刷新!!!</p>
  52. <p>请勿泄露:防止被他人扫码绑定!!!</p>
  53. </div>
  54. </div>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td class="layui-td-gray">昵称<font>*</font></td>
  59. <td>
  60. <input type="text" name="nickname" lay-verify="required" placeholder="请输入昵称" lay-reqText="请输入昵称"
  61. autocomplete="off" class="layui-input" value="<?php echo htmlentities($admin['nickname']); ?>">
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="layui-td-gray">手机号码</td>
  66. <td><input type="text" name="mobile" lay-verify="required" placeholder="请输入手机" autocomplete="off"
  67. class="layui-input" value="<?php echo htmlentities($admin['mobile']); ?>"></td>
  68. </tr>
  69. </table>
  70. <div class="py-3">
  71. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
  72. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  73. <button type="button" lay-submit="" class="layui-btn layui-btn-normal" lay-filter="aaa">aaa</button>
  74. </div>
  75. </form>
  76. <!-- <div>
  77. <table class="layui-table layui-table-form">
  78. <tr>
  79. <td class="layui-td-gray" rowspan="3">扫码关注并绑定公众号</td>
  80. <td rowspan="3">
  81. <div class="we-login">
  82. <button type="button" class="layui-btn layui-btn-normal" id="reQrCode">刷新</button>
  83. <div class="login-img">
  84. <img src="<?php echo htmlentities($QrCode); ?>" width="100" />
  85. <p>有效时长:5分钟。失效请刷新!!!</p>
  86. <p>请勿泄露:防止被他人扫码绑定!!!</p>
  87. </div>
  88. </div>
  89. </td>
  90. </tr>
  91. </table>
  92. </div> -->
  93. <!-- /主体 -->
  94. <!-- 底部 -->
  95. <div class="footer">
  96. 逸管工程项目管理系统 © www.yiguanfep.com
  97. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  98. <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\&quot;noreferrer'target=\”blank\&quot;" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
  99. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  100. </div>
  101. <!-- /底部 -->
  102. <!-- 脚本 -->
  103. <script>
  104. const moduleInit = ['tool'];
  105. function gouguInit() {
  106. var form = layui.form, tool = layui.tool, upload = layui.upload;
  107. //头像上传
  108. var uploadInst = upload.render({
  109. elem: '#uploadBtn'
  110. , url: '/admin/api/upload'
  111. , done: function (e) {
  112. //如果上传失败
  113. if (e.code == 1) {
  114. return layer.msg('上传失败');
  115. }
  116. else {
  117. //上传成功
  118. $('#demo1 input').attr('value', e.data.filepath);
  119. $('#demo1 img').attr('src', e.data.filepath);
  120. }
  121. }
  122. });
  123. //刷新二维码
  124. $('#reQrCode').click(function(e){
  125. createQrCode();
  126. });
  127. function createQrCode(){
  128. var loadIndex = layer.msg('请稍等...', {
  129. icon: 16,
  130. shade: 0.01
  131. });;
  132. $.ajax({
  133. url: "/wechat/officialaccount/getQrCode_bindAccount",
  134. type: 'get',
  135. success: function (res) {
  136. $('#codebox').attr('src',res)
  137. layer.close(loadIndex)
  138. }
  139. })
  140. }
  141. createQrCode();
  142. let a = 1;
  143. //监听提交
  144. form.on('submit(webform)', function (data) {
  145. if(a){
  146. let callback = function (e) {
  147. layer.msg(e.msg);
  148. if (e.code == 0) {
  149. layer.confirm('保存成功,关闭本页面吗?', { icon: 3, title: '提示' }, function (index) {
  150. tool.tabClose();
  151. a = 1
  152. layer.close(index);
  153. });
  154. }
  155. }
  156. tool.post("/admin/api/personal_submit", data.field, callback);
  157. }
  158. a = 0
  159. return false;
  160. });
  161. let aaa = 100;
  162. form.on('submit(aaa)', function (data) {
  163. alert("这是弹出框提示文本")
  164. console.log(aaa)
  165. return false;
  166. });
  167. }
  168. </script>
  169. <!-- /脚本 -->
  170. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  171. <script src="/static/assets/layui/layui.js"></script>
  172. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  173. <script src="/static/assets/gougu/gouguInit.js"></script>
  174. <script src="https://unpkg.com/pinyin-pro"></script>
  175. <script>
  176. var { pinyin } = pinyinPro;
  177. </script>
  178. <!-- 统计代码 -->
  179. <!-- /统计代码 -->
  180. </body>
  181. </html>