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
8 years ago
Commit
dfe3cc88ad288e34f2a49fe9ea0444747f18765d
2 parents
35ba731c
ae62bc6c
Merge branch 'hotfix/searchOrder' into release/5.3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
apps/product/models/search-api.js
doraemon/views/partial/product/good.hbs
apps/product/models/search-api.js
View file @
dfe3cc8
...
...
@@ -65,13 +65,17 @@ const getProductList = (params, from) => {
sales
:
'Y'
,
outlets
:
2
,
stocknumber
:
1
,
order
:
's_n_desc'
,
need_filter
:
'yes'
,
limit
:
60
};
Object
.
assign
(
finalParams
,
params
);
// 店铺默认排序s_w_desc
if
(
params
.
shopId
||
params
.
shop_id
||
params
.
shop
)
{
finalParams
.
order
=
params
.
order
||
's_w_desc'
;
}
if
(
from
)
{
finalParams
.
from
=
from
;
}
...
...
doraemon/views/partial/product/good.hbs
View file @
dfe3cc8
...
...
@@ -62,12 +62,6 @@
</span>
{{/
sales_price
}}
{{#
student_price
}}
<span
class=
"sale-price"
>
¥
{{
round
.
2
}}
</span>
{{/
student_price
}}
{{#
discount
}}
<span
class=
"discount"
>
{{
.
}}
折
</span>
{{/
discount
}}
...
...
Please
register
or
login
to post a comment