切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
2d4a2f666d86e88f1cab911dbc8ff1a83541d39d
1 个父辈
c039f96e
首页分类图片
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
4 行删除
application/api/controller/Index.php
public/api.html
application/api/controller/Index.php
查看文件 @
2d4a2f6
...
...
@@ -67,7 +67,8 @@ class Index extends Base
}],
"category_list": [{ //一级分类
"id": 1, //分类ID
"name": "商品分类" //分类名称
"name": "商品分类", //分类名称
"image": "http://www.ant.top/uploads/20201221/559d2a240ec20b096590a902217009ff.png", //分类图片
}],
"seckill_list": {
"type": "1",
...
...
@@ -226,7 +227,7 @@ class Index extends Base
public
function
index
()
{
$banner_list
=
Banner
::
field
(
'id,image'
)
->
select
();
$category_list
=
Category
::
where
(
'pid'
,
0
)
->
field
(
'id,nam
e'
)
->
limit
(
9
)
->
select
();
$category_list
=
Category
::
where
(
'pid'
,
1
)
->
field
(
'id,name,imag
e'
)
->
limit
(
9
)
->
select
();
$seckill_list
=
\addons\shopro\model\Goods
::
indexSeckillGoodsList
();
$groupon_list
=
\addons\shopro\model\Goods
::
indexGrouponGoodsList
();
$this
->
success
(
'首页'
,
compact
(
'banner_list'
,
'category_list'
,
'seckill_list'
,
'groupon_list'
));
...
...
public/api.html
查看文件 @
2d4a2f6
...
...
@@ -797,7 +797,8 @@
}],
"category_list": [{ //一级分类
"id": 1, //分类ID
"name": "商品分类" //分类名称
"name": "商品分类", //分类名称
"image": "http://www.ant.top/uploads/20201221/559d2a240ec20b096590a902217009ff.png", //分类图片
}],
"seckill_list": {
"type": "1",
...
...
@@ -10296,7 +10297,7 @@
<div
class=
"row mt0 footer"
>
<div
class=
"col-md-6"
align=
"left"
>
Generated on 2020-12-
16 20:04:12
</div>
Generated on 2020-12-
21 09:50:40
</div>
<div
class=
"col-md-6"
align=
"right"
>
<a
href=
"./"
target=
"_blank"
>
My Website
</a>
</div>
...
...
请
注册
或
登录
后发表评论