• 预览
  • 代码

扩展功能 - 图片管理

图片管理功能用于banner轮播图、广告图,涉及到图片的基本上都可以使用到这个功能,根据需求添加、获取数据即可。
测试Demo

测试数据
Array
(
    [0] => Array
        (
            [id] => 1
            [type_id] => 1
            [name] => CopyLians's Blog
            [color] => #f60
            [url] => https://www.copylian.com/
            [thumb] => Array
                (
                    [0] => Array
                        (
                            [name] => 1.jpg
                            [sort] => 1
                            [thumb] => /uploads/uploadfile/images/20190104/thumb/thumb_20190104160843_5c2f148b10d4d.jpg
                            [photo] => /uploads/uploadfile/images/20190104/20190104160843_5c2f148b10d4d.jpg
                            [type] => images
                            [oringinal_type] => images
                            [location] => upload
                        )

                )

            [open] => 2
            [weigh] => 1
            [other] => onclick='javascript:;'
            [remark] => CopyLians's Blog
            [status] => 1
            [create_time] => 2018-12-07 23:12:55
            [update_time] => 2019-01-04 16:08:47
        )

    [1] => Array
        (
            [id] => 2
            [type_id] => 1
            [name] => 刘瑞琦Richael 
            [color] => #439ce0
            [url] => https://www.aikehou.com/
            [thumb] => Array
                (
                    [0] => Array
                        (
                            [name] => 2.jpg
                            [sort] => 1
                            [thumb] => /uploads/uploadfile/images/20190104/thumb/thumb_20190104161005_5c2f14ddda2de.jpg
                            [photo] => /uploads/uploadfile/images/20190104/20190104161005_5c2f14ddda2de.jpg
                            [type] => images
                            [oringinal_type] => images
                            [location] => upload
                        )

                )

            [open] => 2
            [weigh] => 2
            [other] => 
            [remark] => 刘瑞琦Richael 
            [status] => 1
            [create_time] => 2019-01-04 16:11:00
            [update_time] => 2019-01-04 16:14:11
        )

    [2] => Array
        (
            [id] => 3
            [type_id] => 1
            [name] => 刘瑞琦Richael 
            [color] => #156777
            [url] => 
            [thumb] => Array
                (
                    [0] => Array
                        (
                            [name] => 3.jpg
                            [sort] => 1
                            [thumb] => /uploads/uploadfile/images/20190104/thumb/thumb_20190104161212_5c2f155c91104.jpg
                            [photo] => /uploads/uploadfile/images/20190104/20190104161212_5c2f155c91104.jpg
                            [type] => images
                            [oringinal_type] => images
                            [location] => upload
                        )

                )

            [open] => 2
            [weigh] => 3
            [other] => onclick='alert("My Love")'
            [remark] => 刘瑞琦Richael 
            [status] => 1
            [create_time] => 2019-01-04 16:12:41
            [update_time] => 2019-01-04 16:17:44
        )

)