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
215d8aec49451e8ea9f0f2663b84099d5f97a9e2
1 parent
070ac907
商品列表 面包屑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
4 deletions
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
View file @
215d8ae
...
...
@@ -193,13 +193,16 @@ class ShopModel
// 组织模板数据
$result
=
HelperSearch
::
getList
(
$res
,
$searchCondition
[
'options'
],
$searchCondition
[
'userInput'
]);
$data
[
'pathNav'
]
=
$result
[
'pathNav'
];
$data
[
'goods'
]
=
$result
[
'goods'
];
$data
[
'opts'
]
=
$result
[
'opts'
];
$data
[
'leftContent'
]
=
isset
(
$result
[
'leftContent'
])
?
$result
[
'leftContent'
]
:
''
;
$data
[
'filters'
]
=
$result
[
'filters'
];
$data
[
'pathNav'
]
=
$result
[
'pathNav'
];
$data
[
'pathNav'
]
=
array_merge
(
$result
[
'pathNav'
],
array
(
array
(
'href'
=>
''
,
'name'
=>
$data
[
'brandIntro'
][
'brandName'
],
'title'
=>
$data
[
'brandIntro'
][
'brandName'
])
)
);
// $data['name'] = '全部商品 ALL';
// $sort = self::getSort($res['sort']);
// $data['goodsMenu']['menuList'] = $sort;
...
...
@@ -412,7 +415,31 @@ class ShopModel
return
$result
;
}
/**
* 水牌
* @param type $data
* @return type []
*/
public
static
function
signboard
(
$data
)
{
$result
=
array
();
foreach
(
$data
[
'resource_data'
]
as
$resource
)
{
if
(
empty
(
$resource
[
'data'
]))
{
continue
;
}
foreach
(
$resource
[
'data'
]
as
$val
)
{
$result
[]
=
array
(
'img'
=>
self
::
imageView2
(
$val
[
'src'
],
160
,
240
),
'url'
=>
$val
[
'url'
],
);
}
}
return
$result
;
}
/**
* 品牌一览
* @param type $data
...
...
@@ -534,6 +561,13 @@ class ShopModel
return
$result
;
}
public
static
function
basisTemplate
(
$shopId
)
{
$result
=
array
();
$shopData
=
ShopData
::
shopsDecoratorList
(
$shopId
);
}
/**
* 潮流资讯
* @param type string $tag 搜索内容
...
...
Please
register
or
login
to post a comment