f9f0dfe31e89f09da3b71cfcc8cba46a.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. <?php /*a:2:{s:114:"E:\phpstudy_pro_8.1.0.1_64bit_Green\phpstudy_pro\WWW\yueshengshop\app\admin\view\shop_account\withdraw_config.html";i:1588237533;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. <script type="text/javascript">
  29. </script>
  30. </head>
  31. <body>
  32. <!-- logo -->
  33. <div class="ns-logo">
  34. <div class="logo-box">
  35. <img src="http://yueshengshop.top/app/admin/view/public/img/logo.png">
  36. </div>
  37. <span>B2B2C多商户平台端</span>
  38. <span>
  39. 服务电话:400-886-7993
  40. </span>
  41. </div>
  42. <div class="layui-layout layui-layout-admin">
  43. <div class="layui-header">
  44. <!-- 一级菜单 -->
  45. <ul class="layui-nav layui-layout-left">
  46. <?php $serond_menu = []; foreach($menu as $menu_k => $menu_v): ?>
  47. <li class="layui-nav-item <?php if($menu_v['selected']): ?> layui-this<?php endif; ?>">
  48. <a href="<?php echo htmlentities($menu_v['url']); ?>"><?php echo htmlentities($menu_v['title']); ?></a>
  49. </li>
  50. <?php if($menu_v['selected']):
  51. $serond_menu = $menu_v['child_list'];
  52. ?>
  53. <?php endif; ?>
  54. <?php endforeach; ?>
  55. </ul>
  56. <ul class="layui-nav layui-layout-right">
  57. <li class="layui-nav-item">
  58. <a href="javascript:;">
  59. <div class="ns-img-box">
  60. <img src="http://yueshengshop.top/app/admin/view/public/img/default_headimg.png" alt="">
  61. </div>
  62. <?php echo htmlentities($user_info['username']); ?>
  63. </a>
  64. <dl class="layui-nav-child">
  65. <dd class="ns-reset-pass" onclick="resetPassword();">
  66. <a href="javascript:;">修改密码</a>
  67. </dd>
  68. <dd>
  69. <a onclick="clearCache()" href="javascript:;">清除缓存</a>
  70. </dd>
  71. <dd>
  72. <a href="<?php echo addon_url('admin/login/logout'); ?>" class="login-out">退出登录</a>
  73. </dd>
  74. </dl>
  75. </li>
  76. </ul>
  77. </div>
  78. <?php if(!(empty($serond_menu) || (($serond_menu instanceof \think\Collection || $serond_menu instanceof \think\Paginator ) && $serond_menu->isEmpty()))): ?>
  79. <div class="layui-side">
  80. <div class="layui-side-scroll">
  81. <span class="ns-side-title"><?php echo htmlentities($crumbs[0]['title']); ?></span>
  82. <!-- 二三级菜单-->
  83. <ul class="layui-nav layui-nav-tree" lay-filter="test">
  84. <?php foreach($serond_menu as $menu_second_k => $menu_second_v): ?>
  85. <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; ?>">
  86. <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>
  87. <?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()))): ?>
  88. <dl class="layui-nav-child">
  89. <?php foreach($menu_second_v["child_list"] as $menu_third_k => $menu_third_v): ?>
  90. <dd class="<?php if($menu_third_v['selected']): ?> layui-this<?php endif; ?>">
  91. <a href="<?php echo htmlentities($menu_third_v['url']); ?>"><?php echo htmlentities($menu_third_v['title']); ?></a>
  92. </dd>
  93. <?php endforeach; ?>
  94. </dl>
  95. <?php endif; ?>
  96. </li>
  97. <?php endforeach; ?>
  98. </ul>
  99. </div>
  100. </div>
  101. <?php endif; ?>
  102. <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; ?>">
  103. <!-- 面包屑 -->
  104. <?php if(count($serond_menu) > 0): ?>
  105. <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; ?>">
  106. <span class="layui-breadcrumb" lay-separator="-">
  107. <?php foreach($crumbs as $crumbs_k => $crumbs_v): if(count($crumbs) == ($crumbs_k + 1)): ?>
  108. <a href="<?php echo htmlentities($crumbs_v['url']); ?>"><cite><?php echo htmlentities($crumbs_v['title']); ?></cite></a>
  109. <?php else: ?>
  110. <a href="<?php echo htmlentities($crumbs_v['url']); ?>"><?php echo htmlentities($crumbs_v['title']); ?></a>
  111. <?php endif; ?>
  112. <?php endforeach; ?>
  113. </span>
  114. </div>
  115. <?php endif; ?>
  116. <div class="ns-body-content <?php if(count($serond_menu) < 1): ?> crumbs_no_exit<?php endif; ?>">
  117. <div class="ns-body">
  118. <!-- 四级导航 -->
  119. <?php if(isset($forth_menu) && !empty($forth_menu)): ?>
  120. <div class="fourstage-nav layui-tab layui-tab-brief" lay-filter="edit_user_tab">
  121. <ul class="layui-tab-title">
  122. <?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;?>
  123. <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>
  124. <?php endforeach; endif; else: echo "" ;endif; ?>
  125. </ul>
  126. </div>
  127. <?php endif; ?>
  128. <div class="layui-form">
  129. <!-- 基础上传 -->
  130. <div class="layui-card ns-card-common ns-card-brief">
  131. <div class="layui-card-header">
  132. <span class="ns-card-title">结算周期设置</span>
  133. </div>
  134. <div class="layui-card-body">
  135. <div class="layui-form-item">
  136. <label class="layui-form-label">结算周期类型:</label>
  137. <div class="layui-input-block">
  138. <div class="layui-input-inline">
  139. <input type="radio" name="period_type" value="1" lay-filter="period_type" title="按天" <?php echo $config_info['value']['period_type']==1 ? 'checked' : ''; ?> />
  140. <input type="radio" name="period_type" value="2" lay-filter="period_type" title="按周" <?php echo $config_info['value']['period_type']==2 ? 'checked' : ''; ?> />
  141. <input type="radio" name="period_type" value="3" lay-filter="period_type" title="按月" <?php echo $config_info['value']['period_type']==3 ? 'checked' : ''; ?> />
  142. </div>
  143. </div>
  144. <div class="ns-word-aux">按天是指每天0点开始,按周是指每周一0点开始,按月是指每月一号0点开始</div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="layui-card ns-card-common ns-card-brief">
  149. <div class="layui-card-header">
  150. <span class="ns-card-title">提现设置</span>
  151. </div>
  152. <div class="layui-card-body">
  153. <div class="layui-form-item">
  154. <label class="layui-form-label">最低提现金额:</label>
  155. <div class="layui-input-block">
  156. <div class="layui-input-inline">
  157. <input type="number" name="min_withdraw" lay-verify="required|flo" value="<?php echo htmlentities($config_info['value']['min_withdraw']); ?>" autocomplete="off" class="layui-input ns-len-small">
  158. </div>
  159. <div class="layui-form-mid">元</div>
  160. </div>
  161. <div class="ns-word-aux">最低提现金额,对手动申请提现有效</div>
  162. </div>
  163. <div class="layui-form-item">
  164. <label class="layui-form-label">最高提现金额:</label>
  165. <div class="layui-input-block">
  166. <div class="layui-input-inline">
  167. <input type="number" name="max_withdraw" lay-verify="required|flo|check_num" value="<?php echo htmlentities($config_info['value']['max_withdraw']); ?>" autocomplete="off" class="layui-input ns-len-small">
  168. </div>
  169. <div class="layui-form-mid">元</div>
  170. </div>
  171. <div class="ns-word-aux">最高提现金额,对手动申请提现有效</div>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="layui-card ns-card-common ns-card-brief">
  176. <div class="layui-card-header">
  177. <span class="ns-card-title">体验入驻设置</span>
  178. </div>
  179. <div class="layui-card-body">
  180. <div class="layui-form-item">
  181. <label class="layui-form-label">快速入驻:</label>
  182. <div class="layui-input-block">
  183. <input type="checkbox" name="id_experience" value="1" lay-skin="switch" <?php if($config_info['value']['id_experience'] == 1): ?>checked<?php endif; ?> >
  184. </div>
  185. <div class="ns-word-aux">开启后,入驻界面显示<span style="color: #4685fd;">快速开店</span>选项</div>
  186. </div>
  187. <div class="layui-form-item">
  188. <label class="layui-form-label">体验入驻时长:</label>
  189. <div class="layui-input-block">
  190. <div class="layui-input-inline">
  191. <input type="number" name="expire_time" value="<?php echo htmlentities($config_info['value']['expire_time']); ?>" min="0" autocomplete="off" class="layui-input ns-len-small">
  192. </div>
  193. <div class="layui-form-mid">天</div>
  194. </div>
  195. </div>
  196. <div class="layui-form-item">
  197. <label class="layui-form-label">体验开店套餐:</label>
  198. <div class="layui-input-block">
  199. <div class="layui-input-inline">
  200. <select name="group_id">
  201. <option value="">请选择权限组</option>
  202. <?php foreach($group_list as $group_list_k => $group_list_v): ?>
  203. <option value="<?php echo htmlentities($group_list_v['group_id']); ?>" <?php if($group_list_v['group_id']==$config_info['value']['group_id']): ?>selected<?php endif; ?>><?php echo htmlentities($group_list_v['group_name']); ?> </option>
  204. <?php endforeach; ?>
  205. </select>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <div class="ns-single-filter-box">
  212. <div class="ns-form-row">
  213. <button class="layui-btn ns-bg-color" lay-submit lay-filter="save">保存</button>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <!-- 版权信息 -->
  219. <div class="ns-footer">
  220. <div class="ns-footer-img">
  221. <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>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <!-- 重置密码弹框html -->
  228. <div class="layui-form" id="reset_pass" style="display: none;">
  229. <div class="layui-form-item">
  230. <label class="layui-form-label"><span class="required">*</span>原密码</label>
  231. <div class="layui-input-block">
  232. <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);">
  233. <span class="required"></span>
  234. </div>
  235. </div>
  236. <div class="layui-form-item">
  237. <label class="layui-form-label"><span class="required">*</span>新密码</label>
  238. <div class="layui-input-block">
  239. <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);">
  240. <span class="required"></span>
  241. </div>
  242. </div>
  243. <div class="layui-form-item">
  244. <label class="layui-form-label"><span class="required">*</span>确认新密码</label>
  245. <div class="layui-input-block">
  246. <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);">
  247. <span class="required"></span>
  248. </div>
  249. </div>
  250. <div class="ns-form-row">
  251. <button class="layui-btn ns-bg-color" onclick="repass()">确定</button>
  252. <button class="layui-btn layui-btn-primary" onclick="closePass()">返回</button>
  253. </div>
  254. </div>
  255. <script type="text/javascript">
  256. layui.use('element',function () {
  257. var element = layui.element;
  258. element.render('breadcrumb');
  259. });
  260. function clearCache () {
  261. $.ajax({
  262. type: 'post',
  263. url: ns.url("admin/Login/clearCache"),
  264. dataType: 'JSON',
  265. success: function(res) {
  266. layer.msg(res.message);
  267. location.reload();
  268. }
  269. })
  270. }
  271. /**
  272. * 重置密码
  273. */
  274. var index;
  275. function resetPassword() {
  276. index = layer.open({
  277. type:1,
  278. content:$('#reset_pass'),
  279. offset: 'auto',
  280. area: ['650px']
  281. });
  282. setTimeout(function() {
  283. $(".ns-reset-pass").removeClass('layui-this');
  284. }, 1000);
  285. }
  286. // $(".ns-reset-pass").on('click', function() {
  287. // $(this).removeClass('layui-this');
  288. // })
  289. var repeat_flag = false;
  290. function repass(){
  291. var old_pass = $("#old_pass").val();
  292. var new_pass = $("#new_pass").val();
  293. var repeat_pass = $("#repeat_pass").val();
  294. if (old_pass == '') {
  295. $("#old_pass").focus();
  296. layer.msg("原密码不能为空");
  297. return;
  298. }
  299. if (new_pass == '') {
  300. $("#new_pass").focus();
  301. layer.msg("密码不能为空");
  302. return;
  303. } else if ($("#new_pass").val().length < 6) {
  304. $("#new_pass").focus();
  305. layer.msg("密码不能少于6位数");
  306. return;
  307. }
  308. if (repeat_pass == '') {
  309. $("#repeat_pass").focus();
  310. layer.msg("密码不能为空");
  311. return;
  312. } else if ($("#repeat_pass").val().length < 6) {
  313. $("#repeat_pass").focus();
  314. layer.msg("密码不能少于6位数");
  315. return;
  316. }
  317. if (new_pass != repeat_pass) {
  318. $("#repeat_pass").focus();
  319. layer.msg("两次密码输入不一样,请重新输入");
  320. return;
  321. }
  322. if(repeat_flag)return;
  323. repeat_flag = true;
  324. $.ajax({
  325. type: "POST",
  326. dataType: 'JSON',
  327. url: ns.url("admin/login/modifypassword"),
  328. data: {"old_pass": old_pass,"new_pass": new_pass},
  329. success: function(res) {
  330. layer.msg(res.message);
  331. repeat_flag = false;
  332. if (res.code == 0) {
  333. layer.close(index);
  334. location.reload();
  335. }
  336. }
  337. });
  338. }
  339. function closePass() {
  340. layer.close(index);
  341. }
  342. layui.use('element', function() {
  343. var element = layui.element;
  344. element.init();
  345. });
  346. </script>
  347. <script>
  348. layui.use(['form'], function() {
  349. var form = layui.form,
  350. repeat_flag = false; //防重复标识
  351. form.render();
  352. form.verify({
  353. rate: function(value){
  354. if(value > 100 || value < 0 || value%1 != 0){
  355. return '请填写0-100的整数';
  356. }
  357. },
  358. flo: function (value) {
  359. console.log(1);
  360. if (value == '') {
  361. return;
  362. }
  363. var reg = /^(0|[1-9]\d*)(\s|$|\.\d{1,2}\b)/;
  364. if (!reg.test(value)) {
  365. return '价格不能小于0,可保留两位小数!'
  366. }
  367. },
  368. check_num:function(value){
  369. if($("input[name='min_withdraw']").val() > value){
  370. return '最小提现金额不能大于最大提现金额!';
  371. }
  372. }
  373. });
  374. form.on('submit(save)', function(data) {
  375. if (repeat_flag) return;
  376. repeat_flag = true;
  377. field = data.field;
  378. if(field.expire_time != ''){
  379. if(field.group_id == 0){
  380. layer.msg('请选择体验开店套餐');
  381. repeat_flag = false;
  382. return;
  383. }
  384. }
  385. $.ajax({
  386. type: 'POST',
  387. dataType: 'JSON',
  388. url: ns.url("admin/shopaccount/withdrawconfig"),
  389. data: {
  390. 'config_json': JSON.stringify(data.field)
  391. },
  392. success: function(res) {
  393. layer.msg(res.message);
  394. repeat_flag = false;
  395. if (res.code == 0) {
  396. location.reload();
  397. }
  398. }
  399. });
  400. });
  401. });
  402. </script>
  403. </body>
  404. </html>