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
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
9 years ago
Commit
991b9f1baa36d93643f4a152b169c7ef9099ebc6
1 parent
5d5c8177
品牌集合 单个不显示
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
yohobuy/www.yohobuy.com/application/models/Home/Favorite.php
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
yohobuy/www.yohobuy.com/application/models/Home/Favorite.php
View file @
991b9f1
...
...
@@ -186,7 +186,7 @@ class FavoriteModel
$brands
[
$brandkey
][
'brandOrShopType'
]
=
empty
(
$brandval
[
'brandOrShopType'
])
?
''
:
$brandval
[
'brandOrShopType'
];
$brands
[
$brandkey
][
'shop_id'
]
=
empty
(
$brandval
[
'shop_id'
])
?
''
:
$brandval
[
'shop_id'
];
$brands
[
$brandkey
][
'img'
]
=
Images
::
getImageUrl
(
$brandval
[
'brand_ico'
],
100
,
100
);
//品牌缩略图
$brands
[
$brandkey
][
'url'
]
=
Helpers
::
url
(
''
,
''
,
$brandval
[
'brand_domain'
]);
//品牌链接
$brands
[
$brandkey
][
'url'
]
=
Helpers
::
url
(
''
,
array
(
'shopId'
=>
$brands
[
$brandkey
][
'shop_id'
])
,
$brandval
[
'brand_domain'
]);
//品牌链接
$brands
[
$brandkey
][
'name'
]
=
$brandval
[
'brand_name'
];
//品牌名
$brands
[
$brandkey
][
'naCount'
]
=
$brandval
[
'new_product_num'
];
//新品到着数量
$brands
[
$brandkey
][
'colCount'
]
=
$brandval
[
'brand_favorite_num'
];
//收藏人气
...
...
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
View file @
991b9f1
...
...
@@ -456,7 +456,10 @@ class ShopModel
{
$result
=
array
();
$brand
=
isset
(
$parameters
[
'brand'
])
?
$parameters
[
'brand'
]
:
''
;
if
(
count
(
$data
[
'resource_data'
])
<=
1
)
{
return
$result
;
}
foreach
(
$data
[
'resource_data'
]
as
$resource
)
{
$result
[]
=
array
(
'url'
=>
Helpers
::
url
(
...
...
Please
register
or
login
to post a comment