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
zhangxiaoru
9 years ago
Commit
b856365cf3f5331d56037e13c012db6ef5d9fc23
1 parent
99bedf02
recommend-for-you
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
apps/product/models/recommend-for-you.js
apps/product/models/recommend-for-you.js
View file @
b856365
...
...
@@ -2,7 +2,7 @@
var
api
=
global
.
yoho
.
API
;
//const camelCase = global.yoho.camelCase;
//
const camelCase = global.yoho.camelCase;
const
helpers
=
global
.
yoho
.
helpers
;
const
_
=
require
(
'lodash'
);
...
...
@@ -16,7 +16,7 @@ const getPreferenceData = (data) => {
let
list
=
data
.
data
||
{};
//list = camelCase(list);
//
list = camelCase(list);
let
distGoods
=
[];
...
...
@@ -27,7 +27,7 @@ const getPreferenceData = (data) => {
}
value
.
goodsId
=
value
.
goodsList
[
0
].
goodsId
;
//let goods = value;
//
let goods = value;
let
goods
=
[];
...
...
@@ -39,9 +39,9 @@ const getPreferenceData = (data) => {
url
:
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
value
.
product_id
}
_$
{
value
.
goodsId
}
/${value.cn_alphabet}.html`
)
,
marketPrice
:
value
.
market_price
,
salesPrice
:
value
.
sales_price
})
})
;
//goods.url = helpers.urlFormat(`/product/pro_${value.product_id}_${value.goodsId}/${value.cn_alphabet}.html`);
//
goods.url = helpers.urlFormat(`/product/pro_${value.product_id}_${value.goodsId}/${value.cn_alphabet}.html`);
if
(
_
.
get
(
goods
,
'tags[0]'
,
null
))
{
goods
.
tags
=
[];
...
...
Please
register
or
login
to post a comment