Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郝肖肖
9 years ago
Commit
93259c4d53a86b9736e492fafc9fac74b97cd936
2 parents
2ec70e23
03f0bae9
Merge branch 'release/4.4' of
http://git.dev.yoho.cn/web/yohobuy
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
View file @
93259c4
...
...
@@ -426,7 +426,10 @@ class ShopModel
}
}
return
$result
;
return
array
(
'title'
=>
empty
(
$result
[
0
][
'title'
])
?
''
:
$result
[
0
][
'title'
],
'list'
=>
$result
);
}
/**
...
...
@@ -571,13 +574,8 @@ class ShopModel
$list
=
self
::
$fun
(
self
::
getResourceData
(
$list
),
$parameters
);
switch
(
$fun
)
{
case
'shopTopBanner'
:
$data
[
$fun
]
=
$list
;
break
;
case
'signboard'
:
$data
[
$fun
]
=
array
(
'title'
=>
isset
(
$list
[
0
][
'title'
])
?
$list
[
0
][
'title'
]
:
''
,
'list'
=>
$list
);
$data
[
$fun
]
=
$list
;
break
;
}
}
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
93259c4
...
...
@@ -95,7 +95,7 @@ class IndexController extends WebAction
//调用模型获得品牌页数据
$data
=
BrandsModel
::
getBrandSearchData
(
$condition
,
$options
);
$data
[
'signboard'
]
=
isset
(
$result
[
'signboard'
])
?
$result
[
'signboard'
]
:
''
;
//水牌
//统计前三个商品
$skn
=
array
();
$arr
=
array
();
...
...
Please
register
or
login
to post a comment