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
f3d8d9d51c850ff9eff866cc8a798c4293cb862d
1 parent
49c6becb
camel个人中心
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
apps/me/controllers/favorite.js
apps/me/views/partial/collection/product.hbs
config/common.js
apps/me/controllers/favorite.js
View file @
f3d8d9d
...
...
@@ -66,7 +66,9 @@ const favorite = {
});
retData
.
categoryList
.
forEach
(
c
=>
{
c
.
categoryId
=
"categoryId"
in
c
?
c
.
categoryId
:
c
.
category_id
;
c
.
checked
=
c
.
categoryId
===
sort
;
c
.
categoryName
=
"categoryName"
in
c
?
c
.
categoryName
:
c
.
category_name
;
});
retData
.
products
=
data
.
product_list
.
filter
(
p
=>
{
...
...
@@ -89,7 +91,7 @@ const favorite = {
ret
.
content
.
banner
=
thumb
;
}
res
.
display
(
'index'
,
ret
);
res
.
display
(
'index'
,
ret
);
console
.
log
(
JSON
.
stringify
(
ret
));
}).
catch
(
next
);
},
...
...
apps/me/views/partial/collection/product.hbs
View file @
f3d8d9d
...
...
@@ -11,7 +11,7 @@
<div
class=
"clearfix product-list"
>
{{#
each
products
}}
<div
class=
"goods-info"
data-id=
"
{{
product
I
d
}}
"
>
<div
class=
"goods-info"
data-id=
"
{{
product
_i
d
}}
"
>
<div
class=
"choose-icon"
>
<span
class=
"iconfont"
>

</span>
</div>
...
...
@@ -26,8 +26,8 @@
{{/
stateText
}}
</div>
<div
class=
"desc"
>
<div
class=
"brand-name"
><a
href=
"
{{
https
url
}}
"
target=
"_blank"
>
{{
brandName
}}
</a></div>
<div
class=
"product-name"
><a
href=
"
{{
https
url
}}
"
target=
"_blank"
>
{{
productName
}}
</a></div>
<div
class=
"brand-name"
><a
href=
"
{{
https
url
}}
"
target=
"_blank"
>
{{
brand_name
}}
</a></div>
<div
class=
"product-name"
><a
href=
"
{{
https
url
}}
"
target=
"_blank"
>
{{
product_name
}}
</a></div>
<p
class=
"price"
>
¥
{{
round
sales_price
2
}}
</p>
</div>
...
...
config/common.js
View file @
f3d8d9d
...
...
@@ -25,9 +25,6 @@ module.exports = {
singleApi
:
'http://single.yoho.cn/'
,
api
:
'http://api.yoho.yohoops.org/'
,
service
:
'http://service.yoho.yohoops.org/'
// api: 'http://api-test1.yohops.com:9999/',
// service: 'http://service-test1.yohops.com:9999/',
},
useOneapm
:
false
,
useCache
:
false
,
...
...
Please
register
or
login
to post a comment