Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
2aaa452f225247f335399bd975c067b35661ff9f
1 parent
e9cfff32
fix bug 225
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
apps/me/models/favorite.js
apps/product/models/helpers.js
apps/product/models/search.js
apps/me/models/favorite.js
View file @
2aaa452
...
...
@@ -44,6 +44,7 @@ const favorite = {
* @returns {*}
*/
getFavoriteEditoreial
(
param
)
{
param
.
app_type
=
1
;
return
ServiceAPI
.
get
(
'guang/api/*/favorite/getUserFavArticleList'
,
param
);
},
...
...
@@ -74,7 +75,8 @@ const favorite = {
cancelEditorialFavorite
(
uid
,
ids
)
{
return
ServiceAPI
.
get
(
'guang/api/*/favorite/cancelFavorite'
,
{
article_id
:
ids
,
uid
:
uid
uid
:
uid
,
app_type
:
1
});
}
};
...
...
apps/product/models/helpers.js
View file @
2aaa452
...
...
@@ -239,6 +239,7 @@ const helpers = {
}).
join
(
'、'
);
if
(
brandNames
)
{
brandNames
=
brandNames
.
length
>
10
?
brandNames
.
substr
(
0
,
10
)
+
'...'
:
brandNames
;
filters
.
push
(
this
.
newFilter
(
'brand'
,
q
.
brand
,
brandNames
));
}
}
...
...
apps/product/models/search.js
View file @
2aaa452
...
...
@@ -37,7 +37,8 @@ const Search = {
let
finalParams
=
{
method
:
'app.search.li'
,
limit
:
45
limit
:
45
,
app_type
:
1
};
Object
.
assign
(
finalParams
,
_paramHanlde
(
params
));
...
...
@@ -47,7 +48,8 @@ const Search = {
queryProductOfBrand
(
params
)
{
let
finalParams
=
{
method
:
'app.search.brand'
,
limit
:
45
limit
:
45
,
app_type
:
1
};
Object
.
assign
(
finalParams
,
_paramHanlde
(
params
));
...
...
@@ -57,7 +59,8 @@ const Search = {
queryNewProduct
(
params
)
{
let
finalParams
=
{
method
:
'app.search.newProduct'
,
limit
:
45
limit
:
45
,
app_type
:
1
};
Object
.
assign
(
finalParams
,
_paramHanlde
(
params
));
...
...
@@ -66,7 +69,8 @@ const Search = {
},
queryAllSort
()
{
return
api
.
get
(
''
,
{
method
:
'app.sort.get'
method
:
'app.sort.get'
,
app_type
:
1
});
}
};
...
...
Please
register
or
login
to post a comment