Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

left.htm 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {php}
  2. $firstrun = input('param.firstrun/d', 0);
  3. $admin_1664273231_arr = cookie('admin-1664273231-arr');
  4. $admin_1664273231_arr = json_decode($admin_1664273231_arr);
  5. if (1 == $firstrun) $admin_1664273231_arr = null;
  6. {/php}
  7. <div class="sidebar-second order-navBox">
  8. <ul id="accordion" class="accordion">
  9. <li data-value="1" {if null === $admin_1664273231_arr || in_array(1, $admin_1664273231_arr)}class="open"{/if}>
  10. <a class="link">消息通知<i class="fa fa-angle-right"></i></a>
  11. <ul class="submenu" {if is_array($admin_1664273231_arr) && !in_array(1, $admin_1664273231_arr)}style="display: none;"{/if}>
  12. <li>
  13. <a href="{:url('Notice/buyer_notice')}" {if condition="preg_match('/^notice_details_/i', $Request.action) || in_array($Request.action, ['buyer_notice','seller_notice'])"}class="active"{/if}>基础通知</a>
  14. </li>
  15. </ul>
  16. </li>
  17. <!-- <li data-value="2" {if null === $admin_1664273231_arr || in_array(2, $admin_1664273231_arr)}class="open"{/if}>
  18. <a class="link">接口配置<i class="fa fa-angle-right"></i></a>
  19. <ul class="submenu" {if is_array($admin_1664273231_arr) && !in_array(2, $admin_1664273231_arr)}style="display: none;"{/if}>
  20. <li>
  21. <a href="{:url('Notice/conf_sms')}" {if condition="in_array($Request.action, ['conf_sms'])"}class="active"{/if}>短信配置</a>
  22. </li>
  23. <li>
  24. <a href="{:url('UsersNotice/conf_weixin')}" {if condition="in_array($Request.action, ['conf_weixin'])"}class="active"{/if}>微信小程序</a>
  25. </li>
  26. <li>
  27. <a href="{:url('UsersNotice/conf_wechat')}" {if condition="in_array($Request.action, ['conf_wechat'])"}class="active"{/if}>微信公众号</a>
  28. </li>
  29. </ul>
  30. </li> -->
  31. </ul>
  32. </div>
  33. <script type="text/javascript">
  34. $(function() {
  35. openClose();
  36. $('#accordion > li > a.link').click(function() {
  37. var $this = $(this);
  38. $parent = $this.parent();
  39. $next = $this.next();
  40. $next.slideToggle();
  41. $parent.toggleClass('open');
  42. openClose();
  43. });
  44. function openClose() {
  45. var arr = [];
  46. var className = '';
  47. $('#accordion > li').each(function(index, item){
  48. className = " " + $(item).attr('class') + " ";
  49. if (-1 < className.indexOf(' open ')) {
  50. arr.push($(item).data('value'));
  51. }
  52. });
  53. arr = JSON.stringify(arr);
  54. setCookies('admin-1664273231-arr', arr);
  55. }
  56. });
  57. </script>