Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
8 years ago
Commit
f8f00cebd327e115c723f9f3b693dcee42788b04
1 parent
e955bb20
all goods search
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
apps/product/controllers/list.js
apps/product/views/partial/list/shop-list.hbs
apps/product/controllers/list.js
View file @
f8f00ce
...
...
@@ -34,7 +34,10 @@ const shop = (shopId, req, res, next, brandInfo) => {
if
(
pjax
)
{
list
.
getShopGoodsData
(
shopId
,
req
.
yoho
.
channel
,
params
,
shopInfo
).
then
(
result
=>
{
Object
.
assign
(
result
,
{
layout
:
false
});
Object
.
assign
(
result
,
{
shopId
:
shopId
,
layout
:
false
});
res
.
render
(
'list/goods-list'
,
result
);
}).
catch
(
next
);
return
;
...
...
apps/product/views/partial/list/shop-list.hbs
View file @
f8f00ce
...
...
@@ -34,5 +34,19 @@
</div>
</div>
{{^}}
{{>
product
/
no-result
}}
<div
class=
"no-result"
>
<p
class=
"no-title"
>
抱歉!没有找到相关的商品
</p>
<div
class=
"search-again clearfix"
>
<form
method=
"GET"
action=
"/product/shoplist"
>
<input
id=
"no-result-input"
name=
"query"
type=
"text"
placeholder=
"换个关键词试试"
>
<input
type=
"hidden"
name=
"shopId"
value=
"
{{
@root
.
shopId
}}
"
>
<button
class=
"search-again-btn"
type=
"submit"
>
<i
class=
"iconfont"
>

</i>
</button>
</form>
</div>
<p
class=
"no-tip"
>
建议您:看看输入的文字是否有误 / 减少分类条件限制 / 重新搜索
</p>
</div>
{{/if}}
...
...
Please
register
or
login
to post a comment