切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
831beb8ef69d952d41636566355d2bd994ea9b79
1 个父辈
eef36192
轮播图商品
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
11 行增加
和
3 行删除
application/api/controller/Index.php
public/api.html
application/api/controller/Index.php
查看文件 @
831beb8
...
...
@@ -39,8 +39,9 @@ class Index extends Base
"banner_list": [{ //轮播图
"id": 3, //轮播图ID
"image": "http://www.ant.top/uploads/20201214/b655ea4dc4779222ab7a4e2b95feb3a4.png" //图片地址
"type" :
'1'
, //跳转类型:1=无跳转,2=商品,3=开通会员
"type" :
1
, //跳转类型:1=无跳转,2=商品,3=开通会员
"goods_id" : 1, //商品ID
"goods" : //见商品详情数据
}],
"category_list": [{ //一级分类
"id": 1, //分类ID
...
...
@@ -219,6 +220,12 @@ class Index extends Base
public
function
index
()
{
$banner_list
=
Banner
::
field
(
'id,image,type,goods_id'
)
->
select
();
foreach
(
$banner_list
as
$k
=>
$v
){
// 查询商品
if
(
$v
[
'type'
]
==
'2'
){
$banner_list
[
$k
][
'goods'
]
=
\addons\shopro\model\Goods
::
getGoodsDetail
(
$v
[
'goods_id'
]);
}
}
$category_list
=
Category
::
where
(
'pid'
,
1
)
->
field
(
'id,name,image'
)
->
limit
(
9
)
->
select
();
$seckill_list
=
\addons\shopro\model\Goods
::
indexActivityGoodsList
(
'seckill'
);
$groupon_list
=
\addons\shopro\model\Goods
::
indexActivityGoodsList
(
'groupon'
);
...
...
public/api.html
查看文件 @
831beb8
...
...
@@ -7447,8 +7447,9 @@
"banner_list": [{ //轮播图
"id": 3, //轮播图ID
"image": "http://www.ant.top/uploads/20201214/b655ea4dc4779222ab7a4e2b95feb3a4.png" //图片地址
"type" :
'1'
, //跳转类型:1=无跳转,2=商品,3=开通会员
"type" :
1
, //跳转类型:1=无跳转,2=商品,3=开通会员
"goods_id" : 1, //商品ID
"goods" : //见商品详情数据
}],
"category_list": [{ //一级分类
"id": 1, //分类ID
...
...
@@ -11110,7 +11111,7 @@
<div
class=
"row mt0 footer"
>
<div
class=
"col-md-6"
align=
"left"
>
Generated on 2021-02-06 1
6:39:45
</div>
Generated on 2021-02-06 1
7:08:56
</div>
<div
class=
"col-md-6"
align=
"right"
>
<a
href=
"./"
target=
"_blank"
>
My Website
</a>
</div>
...
...
请
注册
或
登录
后发表评论