Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zzzzzzz
9 years ago
Commit
99a94fd3c6d69bed4ec47367e981c1b90245775e
1 parent
2be3a118
收藏bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
apps/home/models/favorite.js
apps/home/models/favorite.js
View file @
99a94fd
...
...
@@ -174,14 +174,9 @@ const favfavBrand = (uid, page, limit) => {
link
:
'/product/pro_'
+
data
.
productId
+
'_'
+
data
.
goods
[
0
].
id
+
'/'
+
data
.
cnAlphabet
+
'.html'
,
imgUrl
:
data
.
defaultImages
,
price
:
'¥'
+
data
.
marketPrice
price
:
'¥'
+
data
.
marketPrice
,
discount
:
data
.
marketPrice
>
data
.
salesPrice
?
'¥'
+
data
.
salesPrice
:
false
,
});
if
(
data
.
marketPrice
>
data
.
salesPrice
)
{
obj
.
productList
.
push
({
discount
:
'¥'
+
data
.
salesPrice
});
}
});
resu
.
hasFavBrand
.
push
(
obj
);
...
...
Please
register
or
login
to post a comment