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
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
8c720721deba3bee3e8f53273ddaa2d74d39a914
2 parents
f7b92ada
aa2af9d3
master
...
baidu_ocpcapi
develop
feature/canbuy
feature/channelDataMap
feature/company-profile
feature/contact
feature/detail-link
feature/home-optimize
feature/overseas-edition
feature/payment
feature/pcurl
feature/reduce
feature/refactor_alert
feature/shoppingPay
feature/virtualOrder
hotfix/11
hotfix/cart
hotfix/changeappversion
hotfix/gift
hotfix/im
hotfix/link
hotfix/ocpc
hotfix/shop
hotfix/upload
hotfix/yohobi
release/6.9.0
release/6.9.2
2019-12-5
all
Merge remote-tracking branch 'origin/master' into release/6.4.1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
apps/product/models/shop-service.js
apps/product/views/partial/list/shop-list.hbs
apps/product/views/partial/list/shop-search.hbs
apps/product/models/shop-service.js
View file @
8c72072
...
...
@@ -59,6 +59,8 @@ function _getShopData(channel, params, shopInfo) {
params
.
domain
&&
delete
params
.
domain
;
params
.
shopId
&&
delete
params
.
shopId
;
resData
.
shopBaseUrl
=
baseUrl
;
return
co
(
function
*
()
{
let
result
=
yield
Promise
.
props
({
header
:
headerModel
.
requestHeaderData
(
channel
),
// 头部数据
...
...
@@ -110,7 +112,7 @@ function _getShopData(channel, params, shopInfo) {
showDiscount
:
false
,
gender
:
gender
}),
href
:
`
/
product
/
shoplist
?
navBar
=
1
&
shopId
=
$
{
shopId
}
`
href
:
`
$
{
baseUrl
}
/nb1
`
};
_
.
set
(
allGoods
,
'sort.newPage'
,
true
);
// 启用新的分页导航
...
...
@@ -435,7 +437,10 @@ function _getShopListData(channel, params, shopInfo) {
{
shop_id
:
shopId
,
query
:
''
}),
'shop'
)
:
Promise
.
resolve
({})
});
let
resData
=
{
headerData
:
Object
.
assign
(
result
.
header
.
headerData
,
{
header
:
true
})};
let
resData
=
{
headerData
:
Object
.
assign
(
result
.
header
.
headerData
,
{
header
:
true
}),
shopBaseUrl
:
baseUrl
};
let
shopName
=
''
;
// 店铺装修
...
...
apps/product/views/partial/list/shop-list.hbs
View file @
8c72072
...
...
@@ -39,7 +39,7 @@
抱歉!没有找到相关的商品
</p>
<div
class=
"search-again clearfix"
>
<form
method=
"GET"
action=
"
/product/shoplist
"
>
<form
method=
"GET"
action=
"
{{
@root
.
shopBaseUrl
}}
"
>
<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"
>
...
...
apps/product/views/partial/list/shop-search.hbs
View file @
8c72072
<div
class=
"shop-search"
>
<form
action=
"
/product/shoplist
"
method=
"get"
id=
"shop-search-form"
>
<form
action=
"
{{
shopBaseUrl
}}
"
method=
"get"
id=
"shop-search-form"
>
<span>
<input
type=
"hidden"
name=
"shopId"
value=
"
{{
shopId
}}
"
>
<input
id=
"shop-query-key"
type=
"text"
name=
"query"
class=
"shop-query-key"
autocomplete=
"off"
x-webkit-speech=
""
lang=
"zh-CN"
placeholder=
"关键词搜索"
{{#
shopKey
}}
value=
"
{{
.
}}
"
{{/
shopKey
}}
>
</span>
<span
class=
"iconfont shop-query-submit"
>

</span>
</form>
</div>
\ No newline at end of file
</div>
...
...
Please
register
or
login
to post a comment