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
86852235585cb6696eebec33378e0b5bfd5c4b6e
1 parent
cc2581f3
editorial
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
16 deletions
apps/brand/controllers/brand.js
apps/editorial/controllers/editorial.js
apps/editorial/views/partial/comment.hbs
public/img/layout/down.png
public/img/layout/up.png
public/js/plugins/share.js
public/scss/components/_share.css
public/scss/editorial/_detail.css
apps/brand/controllers/brand.js
View file @
8685223
...
...
@@ -13,16 +13,16 @@ const brand = require('../models/brand');
* @param res
*/
const
index
=
(
req
,
res
,
next
)
=>
{
let
channel
=
req
.
cookies
.
_Channel
||
'
men
'
;
let
channel
=
req
.
cookies
.
_Channel
||
'
301
'
;
let
contentCode
=
''
;
let
name
=
''
;
let
link
=
''
;
if
(
channel
===
'
women
'
)
{
if
(
channel
===
'
302
'
)
{
contentCode
=
'527079e6c46d0f125eb46b835968971b'
;
name
=
'WOMEN首页'
;
link
=
'http://www.yohoblk.com/women'
;
}
else
if
(
channel
===
'
lifestyle
'
)
{
}
else
if
(
channel
===
'
303
'
)
{
contentCode
=
'94b5ed607b6d565ffc29c2c04be121dc'
;
name
=
'LIFT STYLE首页'
;
link
=
'http://www.yohoblk.com/lifestyle'
;
...
...
apps/editorial/controllers/editorial.js
View file @
8685223
...
...
@@ -20,16 +20,16 @@ const index = (req, res, next) => {
let
limit
=
req
.
query
.
limit
||
20
;
let
appType
=
1
;
let
udid
=
md5
(
req
.
ip
);
let
channel
=
req
.
cookies
.
_Channel
||
'
women
'
;
let
channel
=
req
.
cookies
.
_Channel
||
'
301
'
;
let
gender
=
''
;
let
name
=
''
;
let
link
=
''
;
if
(
channel
===
'
men
'
)
{
if
(
channel
===
'
301
'
)
{
gender
=
'1,3'
;
name
=
'MEN首页'
;
link
=
'http://www.yohoblk.com'
;
}
else
if
(
channel
===
'
women
'
)
{
}
else
if
(
channel
===
'
302
'
)
{
gender
=
'2,3'
;
name
=
'WOMEN首页'
;
link
=
'http://www.yohoblk.com/women'
;
...
...
@@ -85,17 +85,17 @@ const list = (req, res) => {
let
tag
=
req
.
query
.
query
;
let
authorId
=
req
.
query
.
authorId
;
let
udid
=
md5
(
req
.
ip
);
let
channel
=
req
.
cookies
.
_Channel
||
'
men
'
;
let
channel
=
req
.
cookies
.
_Channel
||
'
301
'
;
let
gender
=
''
;
let
name
=
''
;
let
link
=
''
;
let
appType
=
1
;
if
(
channel
===
'
men
'
)
{
if
(
channel
===
'
301
'
)
{
gender
=
'1,3'
;
name
=
'MEN首页'
;
link
=
'http://www.yohoblk.com'
;
}
else
if
(
channel
===
'
women
'
)
{
}
else
if
(
channel
===
'
302
'
)
{
gender
=
'2,3'
;
name
=
'WOMEN首页'
;
link
=
'http://www.yohoblk.com/women'
;
...
...
@@ -156,14 +156,14 @@ const detail = (req, res, next) => {
let
appType
=
1
;
let
uid
=
req
.
user
.
uid
;
let
udid
=
md5
(
req
.
ip
);
let
channel
=
req
.
cookies
.
_Channel
||
'
men
'
;
let
channel
=
req
.
cookies
.
_Channel
||
'
301
'
;
let
name
=
''
;
let
link
=
''
;
if
(
channel
===
'
men
'
)
{
if
(
channel
===
'
301
'
)
{
name
=
'MEN首页'
;
link
=
'http://www.yohoblk.com'
;
}
else
if
(
channel
===
'
women
'
)
{
}
else
if
(
channel
===
'
302
'
)
{
name
=
'WOMEN首页'
;
link
=
'http://www.yohoblk.com/women'
;
}
else
{
...
...
apps/editorial/views/partial/comment.hbs
View file @
8685223
...
...
@@ -2,6 +2,7 @@
<h4>
<span
class=
"comment-num"
>
{{
total
}}
</span>
条评论
<b></b>
</h4>
<p
class=
"comments-empty"
>
还没有评论,快抢沙发吧
</p>
<div
class=
"commnets-resultwrapper"
>
...
...
public/img/layout/down.png
0 → 100644
View file @
8685223
2.8 KB
public/img/layout/up.png
0 → 100644
View file @
8685223
2.82 KB
public/js/plugins/share.js
View file @
8685223
...
...
@@ -74,7 +74,7 @@ function shareBase(options) {
sharebox
=
defOption
.
self
.
closest
(
'.share-to'
).
find
(
'.weixin-share-box'
);
if
(
sharebox
.
length
>
0
)
{
shareCon
=
'<i class="
iconfont top ">
</i><div class="con"><p class="pic"><img src="'
+
shareCon
=
'<i class="
top">
</i><div class="con"><p class="pic"><img src="'
+
openUrl
+
'" /></p><h2>分享到微信朋友圈</h2><p class="w">打开微信使用“扫一扫“<br/>即可将网页分享到我的朋友圈。</p></div>'
;
sharebox
.
find
(
'div'
).
length
>
0
?
sharebox
.
show
()
:
sharebox
.
html
(
shareCon
).
show
();
}
...
...
public/scss/components/_share.css
View file @
8685223
...
...
@@ -46,10 +46,13 @@
position
:
absolute
;
color
:
#bbb
;
background
:
#fff
;
width
:
18px
;
left
:
50px
;
width
:
12px
;
left
:
89px
;
z-index
:
100
;
width
:
18px
;
height
:
12px
;
display
:
block
;
background-image
:
resolve
(
'layout/up.png'
);
top
:
17px
;
}
}
...
...
public/scss/editorial/_detail.css
View file @
8685223
...
...
@@ -461,10 +461,21 @@
position
:
relative
;
line-height
:
32px
;
border-bottom
:
1px
solid
#bbb
;
position
:
relative
;
.comment-num
{
color
:
#379ed6
;
}
b
{
display
:
block
;
width
:
12px
;
height
:
7px
;
background
:
#fff
;
background-image
:
resolve
(
'layout/down.png'
);
position
:
absolute
;
left
:
15px
;
}
}
.comment-pager
{
...
...
Please
register
or
login
to post a comment