123456789101112131415161718192021222324252627282930313233 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | home
- |--------------------------------------------------------------------------
- */
- $view
- # 定义名称
- ->fetch('body@test', '1')
- ->loop
- (
- '.layui-colla-item',
- 'store/admin/help.getList',
- array
- (
- '.layui-colla-title' => array
- (
- 'html' => '<{$v.name}>',
- ),
- '.layui-colla-content' => array
- (
- 'html' => '<{$v.content}>',
- 'class' => '<{$k == 0 ? "layui-colla-content layui-show" : "layui-colla-content"}>'
- ),
- )
- )
- ->fetch('#page','<{Dever::page("current")}>')
- # display
- ->display();
|