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
徐炜
9 years ago
Commit
47622db68786a6b85be61eb6d6088a34af352921
2 parents
a28b2beb
128df536
Merge branch 'release/1.0'
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
35 additions
and
25 deletions
apps/brand/controllers/brand.js
apps/brand/views/partial/list.hbs
apps/editorial/views/action/list.hbs
apps/me/controllers/favorite.js
doraemon/components/pagination/pagination.js
public/scss/components/_header.css
public/scss/components/_pagination.css
public/scss/me/favorite/_editorial.css
public/scss/product/_item.css
public/scss/product/_shop.css
public/scss/shopping/_order.css
apps/brand/controllers/brand.js
View file @
47622db
...
...
@@ -17,22 +17,26 @@ const index = (req, res, next) => {
let
contentCode
=
''
;
let
name
=
''
;
let
link
=
''
;
let
gender
=
''
;
if
(
channel
===
'women'
)
{
contentCode
=
'527079e6c46d0f125eb46b835968971b'
;
name
=
'WOMEN首页'
;
link
=
'http://www.yohoblk.com/women'
;
channel
=
302
;
gender
=
'2,3'
;
}
else
if
(
channel
===
'lifestyle'
)
{
contentCode
=
'94b5ed607b6d565ffc29c2c04be121dc'
;
name
=
'LIFT STYLE首页'
;
link
=
'http://www.yohoblk.com/lifestyle'
;
channel
=
303
;
gender
=
'1,2,3'
;
}
else
{
contentCode
=
'81886aaa5e82e3741bc1ba1e04ec7706'
;
name
=
'MEN首页'
;
link
=
'http://www.yohoblk.com'
;
channel
=
301
;
gender
=
'1,3'
;
}
let
appType
=
1
;
...
...
@@ -55,6 +59,7 @@ const index = (req, res, next) => {
name
:
'Brand品牌'
}
],
gender
:
gender
,
tabs
:
result
.
tabs
,
category
:
result
.
category
}
...
...
apps/brand/views/partial/list.hbs
View file @
47622db
...
...
@@ -5,7 +5,7 @@
<ul
class=
"clearfix"
>
{{#
each
brands
}}
<li>
<a
data-key=
"
{{
key
}}
"
href=
"
{{
brandDomain
}}
"
target=
"_blank"
>
<a
data-key=
"
{{
key
}}
"
href=
"
{{
brandDomain
}}
?gender=
{{
@root
.
brand
.
gender
}}
"
target=
"_blank"
>
<img
class=
"lazy"
data-original=
"
{{
image
brandIco
270
190
}}
"
>
<span>
{{#if
brandName
}}{{
brandName
}}{{else}}{{
brandNameEn
}}{{/if}}
</span>
</a>
...
...
apps/editorial/views/action/list.hbs
View file @
47622db
...
...
@@ -17,4 +17,3 @@
{{/
editorialList
}}
</div>
{{
log
pathTitle
}}
\ No newline at end of file
...
...
apps/me/controllers/favorite.js
View file @
47622db
...
...
@@ -141,10 +141,11 @@ const favorite = {
retData
.
brandList
=
data
.
brandList
;
if
(
retData
.
brandList
)
{
retData
.
brandList
.
forEach
(
b
=>
{
_
.
each
(
retData
.
brandList
,
b
=>
{
if
(
b
.
newProduct
&&
b
.
newProduct
.
length
>
0
)
{
b
.
newProduct
.
forEach
(
p
=>
{
p
.
url
=
`
$
{
config
.
siteUrl
}
/product/
pro_$
{
p
.
productId
}
_$
{
p
.
goods
[
0
].
id
}
/${p.cnAlphabet}.html`; // eslint-disable-line
p
.
url
=
`
$
{
config
.
siteUrl
}
/product/
pro_$
{
p
.
productId
}
_$
{
p
.
goods
[
0
].
id
}
/${p.cnAlphabet}.html`; // eslint-disable-lin
e
});
b
.
newProduct
.
push
({
more
:
true
...
...
doraemon/components/pagination/pagination.js
View file @
47622db
...
...
@@ -88,6 +88,8 @@ exports.createPagination = function(pagination, options) {
}
}
queryParams
=
encodeURI
(
queryParams
);
template
=
'<div class="'
+
paginationClass
+
'">'
;
// ========= Previous Button ===============
...
...
public/scss/components/_header.css
View file @
47622db
...
...
@@ -348,7 +348,7 @@
width
:
360px
;
padding
:
6px
0
16px
;
font-size
:
14px
;
top
:
50
px
;
top
:
44
px
;
right
:
0
;
position
:
absolute
;
background
:
#1b1b1b
;
...
...
@@ -417,7 +417,7 @@
left
:
0
;
display
:
none
;
z-index
:
10
;
top
:
1
80
px
;
top
:
1
74
px
;
dl
{
float
:
left
;
...
...
public/scss/components/_pagination.css
View file @
47622db
...
...
@@ -39,16 +39,16 @@
}
i
{
font-size
:
1
2
px
;
font-size
:
1
4
px
;
position
:
relative
;
top
:
-1px
;
top
:
-1px
;
}
.pre-page
,
.next-page
{
line-height
:
2
4
px
;
line-height
:
2
3
px
;
width
:
26px
;
height
:
26px
;
height
:
26px
;
font-weight
:
700
;
}
}
...
...
public/scss/me/favorite/_editorial.css
View file @
47622db
...
...
@@ -53,6 +53,7 @@
width
:
240px
;
height
:
160px
;
position
:
relative
;
overflow
:
hidden
;
.editorial-cate
{
position
:
absolute
;
...
...
public/scss/product/_item.css
View file @
47622db
...
...
@@ -578,9 +578,11 @@
font-size
:
14px
!important
;
line-height
:
1.5
;
overflow-x
:
hidden
;
width
:
870px
;
.nano-content
{
padding
:
0
4px
;
right
:
17px
!important
;
}
}
...
...
public/scss/product/_shop.css
View file @
47622db
...
...
@@ -38,12 +38,17 @@
height
:
32px
;
.iconfont
{
font-size
:
1
4
px
;
font-size
:
1
2
px
;
}
}
.brand-fav.coled
.iconfont
{
color
:
#fc0d1b
;
font-size
:
12px
;
}
#brand-info
{
font-size
:
12px
;
}
}
}
...
...
@@ -120,8 +125,8 @@
.goods-info
{
float
:
left
;
width
:
272px
;
margin
:
26px
10px
;
width
:
274px
;
margin
:
26px
9px
;
border-width
:
1px
;
.desc
{
...
...
@@ -265,12 +270,6 @@
}
}
.yoho-dialog.item-more-intro-dialog
{
.nano-pane{
}
}
.yoho-dialog.brand-info-dialog
{
width
:
900px
;
height
:
600px
;
...
...
@@ -285,8 +284,8 @@
width
:
100%
;
}
.width780
{
width
:
780px
;
.width780
{
width
:
780px
;
}
.brand-info-title
{
...
...
public/scss/shopping/_order.css
View file @
47622db
...
...
@@ -25,7 +25,7 @@
height
:
52px
;
}
.title
{
.title
{
font-size
:
14px
;
}
}
...
...
@@ -139,7 +139,7 @@
text-overflow
:
ellipsis
;
}
.phone
{
.phone
{
font-size
:
14px
;
}
}
...
...
@@ -147,7 +147,7 @@
.address-chosed
{
position
:
absolute
;
bottom
:
-1px
;
right
:
0
;
right
:
-1px
;
}
.address-content
{
...
...
@@ -216,7 +216,8 @@
border-color
:
#000
;
font-size
:
14px
;
}
.tip-text
{
.tip-text
{
font-size
:
14px
;
}
}
...
...
Please
register
or
login
to post a comment