Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
9aaa0055ea750612dc1fed0ded7812598009076b
2 parents
7d6b9614
45bc0702
Merge branch 'release/4.9.2'
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
9 deletions
template/m.yohobuy.com/actions/product/index/shop.phtml
template/m.yohobuy.com/actions/product/shop/index.phtml
template/m.yohobuy.com/partials/home/hot_category.phtml
template/m.yohobuy.com/partials/product/hot_category.phtml
yohobuy/m.yohobuy.com/application/models/Guang/Index.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
template/m.yohobuy.com/actions/product/index/shop.phtml
View file @
9aaa005
...
...
@@ -90,7 +90,7 @@
{
{!
热门品类
}
}
<div
class=
"first"
>
{
{#
hotCategory
}
}
{
{>
home
/hot_category
}
}
{
{>
product
/hot_category
}
}
{
{/
hotCategory
}
}
</div>
...
...
template/m.yohobuy.com/actions/product/shop/index.phtml
View file @
9aaa005
...
...
@@ -74,7 +74,7 @@
{
{!
热门品类
}
}
{
{#
hotCategory
}
}
{
{>
home
/hot_category
}
}
{
{>
product
/hot_category
}
}
{
{/
hotCategory
}
}
<div
class=
"popularity-title"
>
...
...
template/m.yohobuy.com/partials/home/hot_category.phtml
View file @
9aaa005
...
...
@@ -14,7 +14,6 @@
<img src="{{img}}" alt="">
</div>
</a>
<div class="img-cover">{{name}}</div>
</li>
{{/ list}}
</ul>
...
...
template/m.yohobuy.com/partials/product/hot_category.phtml
0 → 100644
View file @
9aaa005
<div class="hot-category">
{{> home/floor_header}}
{{# banner}}
<a class="category-banner" href="{{url}}">
<img class="lazy" data-original="{{img}}">
</a>
{{/ banner}}
<ul class="category-list clearfix">
{{# list}}
<li data-bp-id="shop_hotcategory_{{img}}_0" class="buriedpoint">
<a href="{{url}}">
<div class="img-box">
<img src="{{img}}" alt="">
</div>
</a>
<div class="img-cover">{{name}}</div>
</li>
{{/ list}}
</ul>
</div>
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/models/Guang/Index.php
View file @
9aaa005
...
...
@@ -89,7 +89,7 @@ class IndexModel
}
$data
[
'guang'
][
'infos'
][]
=
$build
;
}
print_r
(
$data
[
'guang'
][
'infos'
]);
//
print_r($data['guang']['infos']);
// 分页需要参数
$data
[
'guang'
][
'gender'
]
=
$gender
;
...
...
@@ -190,6 +190,7 @@ class IndexModel
// 内容列表
if
(
!
empty
(
$article
[
'data'
][
'list'
][
'artList'
]))
{
foreach
(
$article
[
'data'
][
'list'
][
'artList'
]
as
$value
)
{
$data
[
'guang'
][
'infos'
][
$curIndex
][
'info'
][]
=
Helpers
::
formatArticle
(
$value
,
true
,
false
,
true
);
}
...
...
@@ -214,7 +215,7 @@ class IndexModel
$category
=
array
();
$article
=
array
();
//print_r($data);
return
$data
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
View file @
9aaa005
...
...
@@ -24,12 +24,8 @@ class IndexController extends AbstractAction
$this
->
setTitle
(
'逛'
);
$this
->
setNavHeader
(
'逛'
,
true
,
SITE_MAIN
);
// $uid = $this->getUid();
$udid
=
$this
->
getUdid
();
$uid
=
8039759
;
//$udid = P_YDoclyC4l9GWC9gScyTpbMiWnQpaYA;
$type
=
$this
->
get
(
'id'
,
0
);
$gender
=
$this
->
get
(
'gender'
);
if
(
is_string
(
$gender
))
{
...
...
Please
register
or
login
to post a comment