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
biao
9 years ago
Commit
33881008cff392cbfdaebdac7812fa5af2937efd
2 parents
83286bdc
3ddc0aaa
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
10 changed files
with
43 additions
and
12 deletions
apps/brand/controllers/brand.js
apps/editorial/controllers/editorial.js
apps/editorial/models/editorial.js
apps/me/views/partial/collection.hbs
apps/me/views/partial/collection/brand.hbs
apps/me/views/partial/collection/editorial.hbs
config/common.js
public/scss/editorial/_detail.css
public/scss/me/favorite/_brand.css
public/scss/me/favorite/_editorial.css
apps/brand/controllers/brand.js
View file @
3388100
...
...
@@ -21,15 +21,15 @@ const index = (req, res, next) => {
if
(
channel
===
'women'
)
{
contentCode
=
'527079e6c46d0f125eb46b835968971b'
;
name
=
'WOMEN首页'
;
link
=
'http://www.yohoblk.com'
;
link
=
'http://www.yohoblk.com
/women
'
;
}
else
if
(
channel
===
'lifestyle'
)
{
contentCode
=
'94b5ed607b6d565ffc29c2c04be121dc'
;
name
=
'LIFT STYLE首页'
;
link
=
'http://www.yohoblk.com/
women
'
;
link
=
'http://www.yohoblk.com/
lifestyle
'
;
}
else
{
contentCode
=
'81886aaa5e82e3741bc1ba1e04ec7706'
;
name
=
'MEN首页'
;
link
=
'http://www.yohoblk.com
/lifestyle
'
;
link
=
'http://www.yohoblk.com'
;
}
let
appType
=
1
;
...
...
apps/editorial/controllers/editorial.js
View file @
3388100
...
...
@@ -124,7 +124,7 @@ const list = (req, res) => {
},
{
pathTitle
:
'资讯'
,
name
:
req
.
query
.
query
name
:
req
.
query
.
query
||
result
.
authorName
}
],
pathTitle
:
req
.
query
.
query
||
result
.
authorName
,
...
...
apps/editorial/models/editorial.js
View file @
3388100
...
...
@@ -36,6 +36,7 @@ const _processListData = (list) => {
});
_
.
forEach
(
list
.
list
.
artList
,
(
data
)
=>
{
// console.log(data)
if
(
data
.
author
)
{
listData
=
_
.
assign
(
listData
,
{
...
...
@@ -151,7 +152,6 @@ const _processHeadData = (list) => {
_
.
forEach
(
list
,
function
(
data
,
index
)
{
if
(
index
===
0
)
{
data
.
isPraise
=
data
.
isPraise
===
'Y'
;
data
.
isFavor
=
data
.
isFavor
===
'Y'
;
...
...
@@ -340,13 +340,19 @@ const _processContentData = (list) => {
* @param id
* @returns {*}
*/
const
_getHeadData
=
(
id
,
uid
,
udid
,
appType
)
=>
{
return
serviceAPI
.
get
(
'/guang/api/*/article/getArticleBaseInfo'
,
{
let
par
=
{
id
:
id
,
uid
:
uid
,
udid
:
udid
,
app_type
:
appType
}).
then
((
result
)
=>
{
};
if
(
uid
)
{
par
.
uid
=
uid
;
}
return
serviceAPI
.
get
(
'/guang/api/*/article/getArticleBaseInfo'
,
par
).
then
((
result
)
=>
{
if
(
result
&&
result
.
code
===
200
)
{
return
result
.
data
;
}
else
{
...
...
apps/me/views/partial/collection.hbs
View file @
3388100
...
...
@@ -7,7 +7,7 @@
<a
href=
"/me/collection"
><span
class=
"badge"
></span>
商品收藏
</a>
</li>
<li
class=
"
{{#if
brand
}}
active
{{/if}}
"
>
<a
href=
"/me/collection/brand"
><span
class=
"badge"
></span>
店铺
收藏
</a>
<a
href=
"/me/collection/brand"
><span
class=
"badge"
></span>
品牌
收藏
</a>
</li>
<li
class=
"
{{#if
editorial
}}
active
{{/if}}
"
>
<a
href=
"/me/collection/editorial"
><span
class=
"badge"
></span>
资讯收藏
</a>
...
...
apps/me/views/partial/collection/brand.hbs
View file @
3388100
{{#
data
}}
{{#if
total
}}
<div
class=
"favorite-brands"
>
<span
class=
"num"
>
您共收藏了
{{
total
}}
个品牌
</span>
<div
class=
"brands-list clearfix"
>
{{#
each
brandList
}}
<div
class=
"brand-raw clearfix"
>
...
...
apps/me/views/partial/collection/editorial.hbs
View file @
3388100
...
...
@@ -2,6 +2,7 @@
{{#if
total
}}
<div
class=
"favorite-editorials"
>
<span
class=
"num"
>
您共收藏了
{{
total
}}
篇文章
</span>
<div
class=
"editorial-list clearfix"
>
{{#
each
editorialList
}}
<div
class=
"editorial-raw clearfix"
data-id=
"
{{
id
}}
"
>
...
...
config/common.js
View file @
3388100
...
...
@@ -22,8 +22,8 @@ module.exports = {
},
cookieDomain
:
'yohoblk.com'
,
domains
:
{
api
:
'http://dev-api.yohops.com:9999/'
,
// devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078
service
:
'http://dev-service.yohops.com:9999/'
,
// testservice.yoho.cn:28077 devservice.yoho.cn:58077
api
:
'http://testapi.yoho.cn:28078/'
,
// devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078
service
:
'http://testservice.yoho.cn:28077/'
,
// testservice.yoho.cn:28077 devservice.yoho.cn:58077
search
:
'http://192.168.102.216:8080/yohosearch/'
},
useOneapm
:
false
,
...
...
public/scss/editorial/_detail.css
View file @
3388100
...
...
@@ -202,7 +202,7 @@
}
.brands
{
width
:
9
5
0px
;
width
:
9
6
0px
;
padding
:
30px
0
30px
30px
;
overflow
:
hidden
;
...
...
@@ -242,6 +242,10 @@
}
}
.brand
:nth-child
(
7n
)
{
margin-right
:
0
;
}
.user-handle
{
float
:
right
;
ul
{
...
...
public/scss/me/favorite/_brand.css
View file @
3388100
.favorite-brands
{
position
:
relative
;
.num
{
position
:
absolute
;
top
:
-30px
;
left
:
600px
;
font-size
:
16px
;
color
:
#666
;
}
.brand-raw
>
div
{
float
:
left
;
...
...
public/scss/me/favorite/_editorial.css
View file @
3388100
.favorite-editorials
{
position
:
relative
;
.num
{
position
:
absolute
;
top
:
-30px
;
left
:
600px
;
font-size
:
16px
;
color
:
#666
;
}
.editorial-raw
>
div
{
float
:
left
;
...
...
Please
register
or
login
to post a comment