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
Plain Diff
Browse Files
Authored by
毕凯
2017-02-23 17:43:45 +0800
Commit
3db83df1591af3f3ee0153d63d28b814c96cf2cb
2 parents
127ab2f5
fe47ed22
Merge branch 'feature/brandsTree' into 'release/5.4.1'
搜索错位 品牌资源位名称 See merge request
!294
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
apps/guang/models/brand-list.js
public/js/guang/brand-list.page.js
public/scss/guang/brand-cate/_cate-all.css
public/scss/product/search/_list.css
apps/guang/models/brand-list.js
View file @
3db83df
...
...
@@ -253,8 +253,6 @@ const indexData = (gender, brandCode, channel, appType) => {
brandList
.
bannerTop
=
data
;
}
else
if
(
data
.
focus_type
&&
data
.
focus_type
===
'2'
)
{
brandList
.
focusData
=
data
.
data
;
}
else
if
(
data
.
template_name
===
'single_image'
)
{
brandList
.
bannerTop
=
data
;
}
});
}
...
...
@@ -271,7 +269,7 @@ const indexData = (gender, brandCode, channel, appType) => {
}
list
.
brandList
=
brandList
;
return
list
;
});
};
...
...
public/js/guang/brand-list.page.js
View file @
3db83df
...
...
@@ -65,8 +65,8 @@ $('.brand-cha').find('li').click(function() {
// 点击字母,页面滚动到相关区域
$intercept
.
click
(
function
()
{
var
name
=
$
(
this
).
attr
(
'href'
).
split
(
'#'
)[
1
],
targetTop
=
$list
.
find
(
'[name='
+
name
+
']'
).
offset
().
top
-
categoryHeight
;
var
name
=
$
(
this
).
attr
(
'href'
).
split
(
'#'
)[
1
]
===
'0_9'
?
'0~9'
:
$
(
this
).
attr
(
'href'
).
split
(
'#'
)[
1
],
targetTop
=
$list
.
find
(
'[name="'
+
name
+
'"]'
).
offset
().
top
-
categoryHeight
;
$
(
'html,body'
).
animate
({
scrollTop
:
targetTop
...
...
public/scss/guang/brand-cate/_cate-all.css
View file @
3db83df
...
...
@@ -100,14 +100,13 @@
width
:
20px
;
height
:
46px
;
position
:
relative
;
right
:
-3
2
px
;
right
:
-3
3
px
;
}
.sub-level-container
{
float
:
left
;
overflow-x
:
auto
;
box-sizing
:
border-box
;
background
:
#fff
;
width
:
55%
;
height
:
100%
;
background
:
#f4f4f4
;
...
...
public/scss/product/search/_list.css
View file @
3db83df
...
...
@@ -15,13 +15,17 @@
>
form
{
position
:
relative
;
line-height
:
60px
;
}
.search-icon
{
position
:
absolute
;
font-size
:
24px
;
top
:
18px
;
left
:
20px
;
height
:
60px
;
line-height
:
60px
;
display
:
inline-block
;
top
:
1px
;
}
input
{
...
...
@@ -33,6 +37,7 @@
border-radius
:
30px
;
background
:
#fff
;
border
:
none
;
line-height
:
60px
;
}
.clear-input
{
...
...
Please
register
or
login
to post a comment