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
zhangxiaoru
9 years ago
Commit
23e1460a05037a8802d91de5a73b586cbad1c173
1 parent
297599ff
exchange
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
apps/editorial/models/editorial.js
apps/me/controllers/favorite.js
public/js/editorial/index.page.js
public/js/me/address.page.js
apps/editorial/models/editorial.js
View file @
23e1460
...
...
@@ -229,7 +229,7 @@ const _getRelatedData = (idList) => {
cnAlphabet
:
data
.
cn_alphabet
});
});
console
.
log
(
productList
)
console
.
log
(
productList
)
;
return
productList
;
}
else
{
logger
.
error
(
'推荐商品 cood 不是 200'
);
...
...
@@ -246,7 +246,7 @@ const _getRelatedData = (idList) => {
const
_processContentData
=
(
list
)
=>
{
list
=
list
||
[];
list
=
camelCase
(
list
);
console
.
log
(
list
)
console
.
log
(
list
)
;
let
contentData
=
{
contents
:
[]
...
...
@@ -282,7 +282,7 @@ const _processContentData = (list) => {
if
(
value
.
goods
)
{
_
.
forEach
(
value
.
goods
.
data
,
function
(
data
)
{
console
.
log
(
data
)
console
.
log
(
data
)
;
idList
+=
data
.
id
+
','
;
related
.
relatedReco
.
push
(
data
);
...
...
@@ -310,8 +310,9 @@ const _processContentData = (list) => {
if
(
related
.
relatedReco
)
{
_
.
forEach
(
related
.
relatedReco
,
function
(
data
,
index
)
{
data
=
_
.
assign
(
data
,
{
//link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
})
// link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
});
data
=
_
.
assign
(
data
,
result
[
index
]);
});
result
.
splice
(
0
,
recoLength
.
length
);
...
...
apps/me/controllers/favorite.js
View file @
23e1460
...
...
@@ -87,7 +87,7 @@ const favorite = {
ret
.
content
.
favorite
.
data
=
retData
;
ret
.
content
.
banner
=
thumb
;
console
.
log
(
retData
)
console
.
log
(
retData
)
;
}
res
.
display
(
'index'
,
ret
);
...
...
public/js/editorial/index.page.js
View file @
23e1460
...
...
@@ -33,7 +33,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
}).
then
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$this
.
next
(
'b'
).
html
(
data
.
data
);
$this
.
toggleClass
(
'liked'
);
$this
.
toggleClass
(
'liked'
);
}
else
{
new
_alert
(
data
.
message
).
show
();
}
...
...
public/js/me/address.page.js
View file @
23e1460
...
...
@@ -281,7 +281,7 @@ $(function() {
}
});
});
...
...
Please
register
or
login
to post a comment