切换导航条
此项目
正在载入...
登录
潘浩文
/
scoreshop
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
潘浩文
7 years ago
提交
bf87b8bbf05b8670e1a5a7c3b53395662888acd2
1 个父辈
97193bfb
1 个管道 的构建
通过
耗费 0 秒
1
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
26 行增加
和
12 行删除
app/portal/controller/IndexController.php
public/themes/simpleboot3/portal/index.html
app/portal/controller/IndexController.php
查看文件 @
bf87b8b
...
...
@@ -26,8 +26,10 @@ class IndexController extends WeChatBaseController
//首页接口1111111111
public
function
index
()
{
$banner
=
Db
::
name
(
'config'
)
->
where
(
'id'
,
1
)
->
find
()[
'index_banner'
];
$banner
=
json_decode
(
$banner
,
true
);
$re
=
Db
::
name
(
'config'
)
->
where
(
'id'
,
1
)
->
find
();
$yuyue
=
$re
[
'link'
];
$this
->
assign
(
'yuyue'
,
$yuyue
);
$banner
=
json_decode
(
$re
[
'index_banner'
],
true
);
$this
->
assign
(
'banner'
,
$banner
[
'photos'
]);
$data
=
Db
::
name
(
'active'
)
->
where
(
'is_top'
,
1
)
->
select
();
$this
->
assign
(
'list'
,
$data
);
...
...
public/themes/simpleboot3/portal/index.html
查看文件 @
bf87b8b
...
...
@@ -161,14 +161,14 @@
</div>
<p
class=
"rank_name"
>
停车
</p>
</div>
<div>
<div
class=
"yuyue"
>
<div
class=
"rank_img"
>
<img
src=
"__TMPL__/public/assets/images/img/appoint.png"
alt=
""
>
</div>
<p
class=
"rank_name"
>
预约
</p>
</div>
<div>
<div
class=
"map"
>
<div
class=
"rank_img"
>
<img
src=
"__TMPL__/public/assets/images/img/map.png"
alt=
""
>
...
...
@@ -179,18 +179,19 @@
</div>
<div
class=
"activetext"
>
<foreach
name=
"active"
item=
"vo"
>
<div>
<div
class=
"index_img"
>
<img
src=
"img/index_img.png"
alt=
""
>
<img
src=
"{:cmf_get_image_preview_url($thumbnail)}"
alt=
""
>
</div>
<div
class=
"index_content"
>
<p
class=
"index_name"
>
【口袋森林】全新升级
{$vo.name}
</p>
<
p
class=
"index_text"
>
猛戳领取独家9折门票优惠券
</p
>
<
!--<p class="index_text">猛戳领取独家9折门票优惠券</p>--
>
</div>
</div>
</foreach>
</div>
</div>
...
...
@@ -207,18 +208,29 @@
})
//品牌跳转
$
(
".brand"
).
click
(
function
(){
window
.
location
.
href
=
'brand.html'
window
.
location
.
href
=
"{:url('portal/brand/index')}"
})
//活动跳转
$
(
".active"
).
click
(
function
(){
window
.
location
.
href
=
'active.html'
window
.
location
.
href
=
"{:url('portal/active/index')}"
})
//兑礼跳转
$
(
".integral"
).
click
(
function
(){
window
.
location
.
href
=
'ritual.html'
window
.
location
.
href
=
"{:url('portal/prize/index')}"
})
//品牌跳转
$
(
".stopcar"
).
click
(
function
(){
alert
(
'敬请期待'
)
})
//活动跳转
$
(
".yuyue"
).
click
(
function
(){
window
.
location
.
href
=
"{$yuyue}"
})
//兑礼跳转
$
(
".map"
).
click
(
function
(){
alert
(
'敬请期待'
)
})
</script>
...
...
请
注册
或
登录
后发表评论