help.php 710 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. # 定义名称
  9. ->fetch('body@test', '1')
  10. ->loop
  11. (
  12. '.layui-colla-item',
  13. 'store/admin/help.getList',
  14. array
  15. (
  16. '.layui-colla-title' => array
  17. (
  18. 'html' => '<{$v.name}>',
  19. ),
  20. '.layui-colla-content' => array
  21. (
  22. 'html' => '<{$v.content}>',
  23. 'class' => '<{$k == 0 ? "layui-colla-content layui-show" : "layui-colla-content"}>'
  24. ),
  25. )
  26. )
  27. ->fetch('#page','<{Dever::page("current")}>')
  28. # display
  29. ->display();