Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai
2016-06-30 11:08:15 +0800
Commit
42122d7fcfb856015105f39c32784e40954594fe
1 parent
0c4d8af0
断码区资源位修改
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
54 additions
and
36 deletions
doraemon/views/partial/resources/goods-category.hbs
doraemon/views/partial/resources/off-code-area.hbs
public/scss/channel/_home.css
public/scss/channel/_left-right.css
public/scss/layout/_common.css
public/scss/outlet/_left-right.css
utils/resources-process.js
doraemon/views/partial/resources/goods-category.hbs
View file @
42122d7
{{#
data
}}
{{>
common
/
floor-header-more
}}
{{
log
this
}}
<div
class=
"goods-category"
>
{{#
bigImage
}}
{{#if
bigList
}}
...
...
doraemon/views/partial/resources/off-code-area.hbs
View file @
42122d7
{{#
data
}}
{{>
common
/
floor-header-more
}}
{{>
resources
/
banner-top
}}
{{/
data
}}
{{>
resources
/
left-right
}}
...
...
public/scss/channel/_home.css
View file @
42122d7
...
...
@@ -22,6 +22,7 @@
@import
"fresh-only"
;
@import
"coupon"
;
@import
"discount-list"
;
@import
"left-right"
;
.mobile-container
{
margin-left
:
auto
;
...
...
public/scss/channel/_left-right.css
0 → 100644
View file @
42122d7
.left-right-thumb-row
{
background-color
:
#fff
;
text-align
:
center
;
margin-bottom
:
30px
;
padding
:
30px
0
;
border-bottom
:
1px
solid
#e0e0e0
;
.thumb-row-box
{
display
:
inline-block
;
width
:
275px
;
height
:
132px
;
border-radius
:
0
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
background-position
:
center
;
margin
:
0
14.4px
;
&.first
{
margin
:
0
!important
;
}
}
.left-thumb-row-box
{
height
:
308px
;
}
.right-container
{
display
:
inline-block
;
width
:
275px
;
height
:
280px
;
border-radius
:
4px
;
margin
:
0
14.4px
;
.right-thumb-row-box
{
margin
:
32px
0
0
;
}
}
}
...
...
public/scss/layout/_common.css
View file @
42122d7
...
...
@@ -53,6 +53,7 @@ a {
}
.main-wrap
{
position
:
relative
;
margin-right
:
auto
;
margin-left
:
auto
;
max-width
:
640px
;
...
...
public/scss/outlet/_left-right.css
View file @
42122d7
...
...
@@ -8,39 +8,7 @@
}
.left-right-thumb-row
{
background-color
:
#f0f0f0
;
text-align
:
center
;
padding
:
32px
0
;
.thumb-row-box
{
display
:
inline-block
;
width
:
275px
;
height
:
132px
;
border-radius
:
0
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
background-position
:
center
;
margin
:
0
14.4px
;
&.first
{
margin
:
0
!important
;
}
}
.left-thumb-row-box
{
height
:
308px
;
}
.right-container
{
display
:
inline-block
;
width
:
275px
;
height
:
280px
;
border-radius
:
4px
;
margin
:
0
14.4px
;
.right-thumb-row-box
{
margin
:
32px
0
0
;
}
}
background
:
#f0f0f0
;
border-bottom
:
none
;
}
}
...
...
utils/resources-process.js
View file @
42122d7
...
...
@@ -56,6 +56,16 @@ module.exports = (list) => {
});
}
// 断码区 , 此资源位数据结构比较坑
if
(
floor
.
offCodeArea
&&
floor
.
data
&&
floor
.
data
.
list
.
length
)
{
floor
.
data
=
{
title
:
floor
.
data
.
title
,
data
:
[
floor
.
data
.
list
[
0
]],
left
:
[
floor
.
data
.
list
[
1
]],
right
:
floor
.
data
.
list
.
slice
(
2
)
};
}
formatData
.
push
(
floor
);
});
...
...
Please
register
or
login
to post a comment