quanwei
18 hours ago c441dea81bd86bdfb12dff35821fed51f4cc91c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
 
namespace app\operations\controller\link;
 
use app\operations\controller\Controller;
use app\operations\model\plus\assemble\Active;
use app\operations\model\plus\seckill\Active as ActiveModel;
use app\operations\model\page\Page as PageModel;
use app\operations\model\plus\table\Table as TableModel;
 
/**
 * Class Link
 * @package app\operations\controller\link
 * 超链接控制器
 */
class Link extends Controller
{
    /**
     *获取数据
     */
    public function index($activeName)
    {
        // 万能表单
        $list = (new TableModel())->getAll();
        $tableList = [];
        foreach ($list as $item) {
            $tableList[] = [
                'id' => $item['table_id'],
                'url' => 'pages/plus/table/table?table_id=' . $item['table_id'],
                'name' => $item['name'],
                'type' => '表单'
            ];
        }
        return $this->renderSuccess('', compact('tableList'));
    }
 
    /**
     * 获取自定义页面
     */
    public function getPageList()
    {
        $model = new PageModel;
        $list = $model->getLists();
        return $this->renderSuccess('', compact('list'));
    }
}