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
Plain Diff
Browse Files
Authored by
姜枫
2016-08-18 17:34:56 +0800
Commit
779a1db5af190c592fbbfd83ea2fd59a0d6adace
2 parents
83e99e47
dc936ef5
Merge branch 'release/1.0' of
http://git.yoho.cn/fe/yoho-blk
into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
apps/brand/models/brand.js
apps/product/models/item-api.js
doraemon/views/partial/nav-menu.hbs
apps/brand/models/brand.js
View file @
779a1db
...
...
@@ -31,7 +31,7 @@ const _processListData = (list) => {
_
.
forEach
(
list
.
data
.
allList
,
function
(
value
,
index
)
{
_
.
forEach
(
value
,
function
(
data
)
{
data
.
brandDomain
=
`
$
{
config
.
siteUrl
}
/product/
shop
/
$
{
data
.
brandDomain
}
/list
`
;
data
.
brandDomain
=
`
$
{
config
.
siteUrl
}
/product/
shop
/
$
{
data
.
brandDomain
}
`
;
});
if
(
index
!==
'0~9'
)
{
...
...
apps/product/models/item-api.js
View file @
779a1db
...
...
@@ -41,7 +41,7 @@ const getProductBaseAsync = (productId, uid, skn) => {
* @return { Object } 收藏状态
*/
const
getUserIsFav
=
(
uid
,
productId
)
=>
{
return
SingleAPI
.
get
(
''
,
{
return
SingleAPI
.
get
(
'
/favorite
'
,
{
method
:
'app.favorite.isFavoriteNew'
,
id
:
productId
,
uid
:
uid
,
...
...
doraemon/views/partial/nav-menu.hbs
View file @
779a1db
...
...
@@ -6,7 +6,8 @@
{{#
navbars
}}
<li
class=
"nav-item
{{#if
cur
}}
cur
{{/if}}
"
>
<a
href=
"
{{
link
}}
"
{{#if
isNewPage
}}
target=
"_blank"
{{/if}}
>
{{
en
}}{{
cn
}}
<span
class=
"nav-en"
>
{{
en
}}
</span>
<span
class=
"nav-cn"
>
{{
cn
}}
</span>
</a>
</li>
{{/
navbars
}}
...
...
Please
register
or
login
to post a comment