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
7 years ago
Commit
4ca14b872776761f3f8584053af824ae6c5f7867
1 parent
a6966f7d
fix price
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
apps/product/controllers/shop.js
apps/product/models/public-handler.js
apps/product/views/action/list/brand.hbs
apps/product/views/action/shop/list.hbs
apps/product/controllers/shop.js
View file @
4ca14b8
...
...
@@ -69,7 +69,10 @@ exports.index = (req, res, next) => {
res
.
render
(
'shop/index'
,
shopObj
);
}
else
{
// 基础模版
Object
.
assign
(
shopObj
,
{
page
:
'list'
});
Object
.
assign
(
shopObj
,
{
page
:
'list'
,
pageClass
:
'static-list-page'
});
// 基础店铺装修为空则不cache
if
(
!
shopObj
.
brand
||
!
shopObj
.
brand
.
shopBanner
)
{
...
...
@@ -109,6 +112,7 @@ exports.list = (req, res, next) => {
if
(
shopObj
.
templateType
===
2
)
{
// 经典模板
Object
.
assign
(
shopObj
,
{
page
:
'shop'
,
pageClass
:
'static-list-page'
,
shopId
:
req
.
query
.
shopId
,
shopKey
:
req
.
query
.
query
||
''
});
...
...
@@ -119,7 +123,10 @@ exports.list = (req, res, next) => {
}
res
.
render
(
'shop/list'
,
shopObj
);
}
else
{
// 基础模版
Object
.
assign
(
shopObj
,
{
page
:
'list'
});
Object
.
assign
(
shopObj
,
{
page
:
'list'
,
pageClass
:
'static-list-page'
});
// 基础店铺装修为空则不cache
if
(
!
shopObj
.
brand
||
!
shopObj
.
brand
.
shopBanner
)
{
...
...
apps/product/models/public-handler.js
View file @
4ca14b8
...
...
@@ -545,6 +545,8 @@ exports.handleSaleFilterData = (origin, params, baseUrl) => {
dest
.
price
.
push
(
price
);
});
dest
.
priceSeatUrl
=
priceHref
.
replace
(
'{price}'
,
'{seat}'
);
}
// 处理用户自主填写的价格区间
...
...
apps/product/views/action/list/brand.hbs
View file @
4ca14b8
<div
class=
"product-page yoho-page product-list-page"
>
<div
class=
"product-page yoho-page product-list-page
{{
pageClass
}}
"
>
{{#
brand
}}
{{>
list
/
list
}}
{{/
brand
}}
{{/
brand
}}
</div>
...
...
apps/product/views/action/shop/list.hbs
View file @
4ca14b8
<div
class=
"shop-index-page product-list-page product-page yoho-page center-content"
>
<div
class=
"shop-index-page product-list-page product-page yoho-page center-content
{{
pageClass
}}
"
>
<div
class=
"center-content clearfix"
>
{{>
common
/
path-nav
}}
...
...
Please
register
or
login
to post a comment