e3a78359aa9db34f093f6e7f93b5e5b9.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <?php /*a:2:{s:100:"E:\phpstudy_pro_8.1.0.1_64bit_Green\phpstudy_pro\WWW\yueshengshop\app\admin\view\config\captcha.html";i:1587196808;s:90:"E:\phpstudy_pro_8.1.0.1_64bit_Green\phpstudy_pro\WWW\yueshengshop\app\admin\view\base.html";i:1587517806;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta name="renderer" content="webkit" />
  6. <meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1" />
  7. <title><?php echo htmlentities((isset($menu_info['title']) && ($menu_info['title'] !== '')?$menu_info['title']:"")); ?> - <?php echo htmlentities((isset($website['title']) && ($website['title'] !== '')?$website['title']:"Niushop开源商城")); ?></title>
  8. <meta name="keywords" content="<?php echo htmlentities((isset($website['keywords']) && ($website['keywords'] !== '')?$website['keywords']:'Niushop开源商城')); ?>">
  9. <meta name="description" content="<?php echo htmlentities((isset($website['desc']) && ($website['desc'] !== '')?$website['desc']:'描述')); ?>}">
  10. <link rel="icon" type="image/x-icon" href="http://yueshengshop.top/public/static/img/bitbug_favicon.ico" />
  11. <link rel="stylesheet" type="text/css" href="http://yueshengshop.top/public/static/css/iconfont.css" />
  12. <link rel="stylesheet" type="text/css" href="http://yueshengshop.top/public/static/ext/layui/css/layui.css" />
  13. <link rel="stylesheet" type="text/css" href="http://yueshengshop.top/public/static/loading/msgbox.css"/>
  14. <link rel="stylesheet" type="text/css" href="http://yueshengshop.top/app/admin/view/public/css/common.css" />
  15. <script src="http://yueshengshop.top/public/static/js/jquery-3.1.1.js"></script>
  16. <script src="http://yueshengshop.top/public/static/ext/layui/layui.js"></script>
  17. <script>
  18. layui.use(['layer', 'upload', 'element'], function() {});
  19. window.ns_url = {
  20. baseUrl: "http://yueshengshop.top/",
  21. route: ['<?php echo request()->module(); ?>', '<?php echo request()->controller(); ?>', '<?php echo request()->action(); ?>'],
  22. };
  23. </script>
  24. <script src="http://yueshengshop.top/public/static/js/common.js"></script>
  25. <style>
  26. .ns-calendar{background: url("http://yueshengshop.top/public/static/img/ns_calendar.png") no-repeat center / 16px 16px;}
  27. </style>
  28. <style>
  29. .ns-form {margin-top: 0;}
  30. </style>
  31. <script type="text/javascript">
  32. </script>
  33. </head>
  34. <body>
  35. <!-- logo -->
  36. <div class="ns-logo">
  37. <div class="logo-box">
  38. <img src="http://yueshengshop.top/app/admin/view/public/img/logo.png">
  39. </div>
  40. <span>B2B2C多商户平台端</span>
  41. <span>
  42. 服务电话:400-886-7993
  43. </span>
  44. </div>
  45. <div class="layui-layout layui-layout-admin">
  46. <div class="layui-header">
  47. <!-- 一级菜单 -->
  48. <ul class="layui-nav layui-layout-left">
  49. <?php $serond_menu = []; foreach($menu as $menu_k => $menu_v): ?>
  50. <li class="layui-nav-item <?php if($menu_v['selected']): ?> layui-this<?php endif; ?>">
  51. <a href="<?php echo htmlentities($menu_v['url']); ?>"><?php echo htmlentities($menu_v['title']); ?></a>
  52. </li>
  53. <?php if($menu_v['selected']):
  54. $serond_menu = $menu_v['child_list'];
  55. ?>
  56. <?php endif; ?>
  57. <?php endforeach; ?>
  58. </ul>
  59. <ul class="layui-nav layui-layout-right">
  60. <li class="layui-nav-item">
  61. <a href="javascript:;">
  62. <div class="ns-img-box">
  63. <img src="http://yueshengshop.top/app/admin/view/public/img/default_headimg.png" alt="">
  64. </div>
  65. <?php echo htmlentities($user_info['username']); ?>
  66. </a>
  67. <dl class="layui-nav-child">
  68. <dd class="ns-reset-pass" onclick="resetPassword();">
  69. <a href="javascript:;">修改密码</a>
  70. </dd>
  71. <dd>
  72. <a onclick="clearCache()" href="javascript:;">清除缓存</a>
  73. </dd>
  74. <dd>
  75. <a href="<?php echo addon_url('admin/login/logout'); ?>" class="login-out">退出登录</a>
  76. </dd>
  77. </dl>
  78. </li>
  79. </ul>
  80. </div>
  81. <?php if(!(empty($serond_menu) || (($serond_menu instanceof \think\Collection || $serond_menu instanceof \think\Paginator ) && $serond_menu->isEmpty()))): ?>
  82. <div class="layui-side">
  83. <div class="layui-side-scroll">
  84. <span class="ns-side-title"><?php echo htmlentities($crumbs[0]['title']); ?></span>
  85. <!-- 二三级菜单-->
  86. <ul class="layui-nav layui-nav-tree" lay-filter="test">
  87. <?php foreach($serond_menu as $menu_second_k => $menu_second_v): ?>
  88. <li class="layui-nav-item <?php if($menu_second_v['selected']): ?> layui-nav-itemed <?php endif; if(!$menu_second_v['child_list'] && $menu_second_v['selected']): ?> layui-this<?php endif; ?>">
  89. <a class="layui-menu-tips" href="<?php if(!$menu_second_v['child_list']): ?> <?php echo htmlentities($menu_second_v['url']); else: ?>javascript:;<?php endif; ?>"><?php echo htmlentities($menu_second_v['title']); ?></a>
  90. <?php if(!(empty($menu_second_v['child_list']) || (($menu_second_v['child_list'] instanceof \think\Collection || $menu_second_v['child_list'] instanceof \think\Paginator ) && $menu_second_v['child_list']->isEmpty()))): ?>
  91. <dl class="layui-nav-child">
  92. <?php foreach($menu_second_v["child_list"] as $menu_third_k => $menu_third_v): ?>
  93. <dd class="<?php if($menu_third_v['selected']): ?> layui-this<?php endif; ?>">
  94. <a href="<?php echo htmlentities($menu_third_v['url']); ?>"><?php echo htmlentities($menu_third_v['title']); ?></a>
  95. </dd>
  96. <?php endforeach; ?>
  97. </dl>
  98. <?php endif; ?>
  99. </li>
  100. <?php endforeach; ?>
  101. </ul>
  102. </div>
  103. </div>
  104. <?php endif; ?>
  105. <div class="layui-body<?php if(empty($serond_menu) || (($serond_menu instanceof \think\Collection || $serond_menu instanceof \think\Paginator ) && $serond_menu->isEmpty())): ?> child_no_exit<?php endif; ?>">
  106. <!-- 面包屑 -->
  107. <?php if(count($serond_menu) > 0): ?>
  108. <div class="ns-crumbs<?php if(empty($serond_menu) || (($serond_menu instanceof \think\Collection || $serond_menu instanceof \think\Paginator ) && $serond_menu->isEmpty())): ?> child_no_exit<?php endif; ?>">
  109. <span class="layui-breadcrumb" lay-separator="-">
  110. <?php foreach($crumbs as $crumbs_k => $crumbs_v): if(count($crumbs) == ($crumbs_k + 1)): ?>
  111. <a href="<?php echo htmlentities($crumbs_v['url']); ?>"><cite><?php echo htmlentities($crumbs_v['title']); ?></cite></a>
  112. <?php else: ?>
  113. <a href="<?php echo htmlentities($crumbs_v['url']); ?>"><?php echo htmlentities($crumbs_v['title']); ?></a>
  114. <?php endif; ?>
  115. <?php endforeach; ?>
  116. </span>
  117. </div>
  118. <?php endif; ?>
  119. <div class="ns-body-content <?php if(count($serond_menu) < 1): ?> crumbs_no_exit<?php endif; ?>">
  120. <div class="ns-body">
  121. <!-- 四级导航 -->
  122. <?php if(isset($forth_menu) && !empty($forth_menu)): ?>
  123. <div class="fourstage-nav layui-tab layui-tab-brief" lay-filter="edit_user_tab">
  124. <ul class="layui-tab-title">
  125. <?php if(is_array($forth_menu) || $forth_menu instanceof \think\Collection || $forth_menu instanceof \think\Paginator): $i = 0; $__LIST__ = $forth_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?>
  126. <li class="<?php echo $menu['selected']==1 ? 'layui-this' : ''; ?>" lay-id="basic_info"><a href="<?php echo htmlentities($menu['parse_url']); ?>"><?php echo htmlentities($menu['title']); ?></a></li>
  127. <?php endforeach; endif; else: echo "" ;endif; ?>
  128. </ul>
  129. </div>
  130. <?php endif; ?>
  131. <div class="layui-form ns-form">
  132. <div class="layui-form-item">
  133. <label class="layui-form-label">是否启用平台登录:</label>
  134. <div class="layui-input-block">
  135. <input type="checkbox" name="admin_login" value="1" lay-skin="switch" <?php if($config_info['admin_login'] == 1): ?> checked <?php endif; ?> />
  136. </div>
  137. <div class="ns-word-aux">设置平台端登录验证码是否开启</div>
  138. </div>
  139. <div class="layui-form-item">
  140. <label class="layui-form-label">是否启用商家登录:</label>
  141. <div class="layui-input-block">
  142. <input type="checkbox" name="shop_login" value="1" lay-skin="switch" <?php if($config_info['shop_login'] == 1): ?>checked <?php endif; ?> />
  143. </div>
  144. <div class="ns-word-aux">设置商户端登录验证码是否开启</div>
  145. </div>
  146. <div class="ns-form-row">
  147. <button class="layui-btn ns-bg-color" lay-submit lay-filter="save">保存</button>
  148. </div>
  149. </div>
  150. </div>
  151. <!-- 版权信息 -->
  152. <div class="ns-footer">
  153. <div class="ns-footer-img">
  154. <a href="#"><img style="-webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: grayscale(100%);filter: gray;" src="<?php if(!empty($copyright['logo'])): ?> <?php echo img($copyright['logo']); else: ?>http://yueshengshop.top/public/static/img/copyright_logo.png<?php endif; ?>" /></a>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <!-- 重置密码弹框html -->
  161. <div class="layui-form" id="reset_pass" style="display: none;">
  162. <div class="layui-form-item">
  163. <label class="layui-form-label"><span class="required">*</span>原密码</label>
  164. <div class="layui-input-block">
  165. <input type="password" id="old_pass" name="old_pass" required class="layui-input ns-len-mid" maxlength="18" autocomplete="off" readonly onfocus="this.removeAttribute('readonly');" onblur="this.setAttribute('readonly',true);">
  166. <span class="required"></span>
  167. </div>
  168. </div>
  169. <div class="layui-form-item">
  170. <label class="layui-form-label"><span class="required">*</span>新密码</label>
  171. <div class="layui-input-block">
  172. <input type="password" id="new_pass" name="new_pass" required class="layui-input ns-len-mid" maxlength="18" autocomplete="off" readonly onfocus="this.removeAttribute('readonly');" onblur="this.setAttribute('readonly',true);">
  173. <span class="required"></span>
  174. </div>
  175. </div>
  176. <div class="layui-form-item">
  177. <label class="layui-form-label"><span class="required">*</span>确认新密码</label>
  178. <div class="layui-input-block">
  179. <input type="password" id="repeat_pass" name="repeat_pass" required class="layui-input ns-len-mid" maxlength="18" autocomplete="off" readonly onfocus="this.removeAttribute('readonly');" onblur="this.setAttribute('readonly',true);">
  180. <span class="required"></span>
  181. </div>
  182. </div>
  183. <div class="ns-form-row">
  184. <button class="layui-btn ns-bg-color" onclick="repass()">确定</button>
  185. <button class="layui-btn layui-btn-primary" onclick="closePass()">返回</button>
  186. </div>
  187. </div>
  188. <script type="text/javascript">
  189. layui.use('element',function () {
  190. var element = layui.element;
  191. element.render('breadcrumb');
  192. });
  193. function clearCache () {
  194. $.ajax({
  195. type: 'post',
  196. url: ns.url("admin/Login/clearCache"),
  197. dataType: 'JSON',
  198. success: function(res) {
  199. layer.msg(res.message);
  200. location.reload();
  201. }
  202. })
  203. }
  204. /**
  205. * 重置密码
  206. */
  207. var index;
  208. function resetPassword() {
  209. index = layer.open({
  210. type:1,
  211. content:$('#reset_pass'),
  212. offset: 'auto',
  213. area: ['650px']
  214. });
  215. setTimeout(function() {
  216. $(".ns-reset-pass").removeClass('layui-this');
  217. }, 1000);
  218. }
  219. // $(".ns-reset-pass").on('click', function() {
  220. // $(this).removeClass('layui-this');
  221. // })
  222. var repeat_flag = false;
  223. function repass(){
  224. var old_pass = $("#old_pass").val();
  225. var new_pass = $("#new_pass").val();
  226. var repeat_pass = $("#repeat_pass").val();
  227. if (old_pass == '') {
  228. $("#old_pass").focus();
  229. layer.msg("原密码不能为空");
  230. return;
  231. }
  232. if (new_pass == '') {
  233. $("#new_pass").focus();
  234. layer.msg("密码不能为空");
  235. return;
  236. } else if ($("#new_pass").val().length < 6) {
  237. $("#new_pass").focus();
  238. layer.msg("密码不能少于6位数");
  239. return;
  240. }
  241. if (repeat_pass == '') {
  242. $("#repeat_pass").focus();
  243. layer.msg("密码不能为空");
  244. return;
  245. } else if ($("#repeat_pass").val().length < 6) {
  246. $("#repeat_pass").focus();
  247. layer.msg("密码不能少于6位数");
  248. return;
  249. }
  250. if (new_pass != repeat_pass) {
  251. $("#repeat_pass").focus();
  252. layer.msg("两次密码输入不一样,请重新输入");
  253. return;
  254. }
  255. if(repeat_flag)return;
  256. repeat_flag = true;
  257. $.ajax({
  258. type: "POST",
  259. dataType: 'JSON',
  260. url: ns.url("admin/login/modifypassword"),
  261. data: {"old_pass": old_pass,"new_pass": new_pass},
  262. success: function(res) {
  263. layer.msg(res.message);
  264. repeat_flag = false;
  265. if (res.code == 0) {
  266. layer.close(index);
  267. location.reload();
  268. }
  269. }
  270. });
  271. }
  272. function closePass() {
  273. layer.close(index);
  274. }
  275. layui.use('element', function() {
  276. var element = layui.element;
  277. element.init();
  278. });
  279. </script>
  280. <script>
  281. layui.use('form', function() {
  282. var form = layui.form,
  283. repeat_flag = false; //防重复标识
  284. form.render();
  285. form.on('submit(save)', function(data) {
  286. if (repeat_flag) return false;
  287. repeat_flag = true;
  288. $.ajax({
  289. type: 'POST',
  290. dataType: 'JSON',
  291. url: ns.url("admin/config/captcha"),
  292. data: data.field,
  293. success: function(res) {
  294. layer.msg(res.message);
  295. repeat_flag = false;
  296. if (res.code == 0) {
  297. location.reload();
  298. }
  299. }
  300. });
  301. });
  302. });
  303. </script>
  304. </body>
  305. </html>