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
QC-L
6 years ago
Commit
15cffd2559406c2c2d833f6a7c21c8f9a307cbac
1 parent
72d14cca
修复多余线条的问题,并添加滚动切换
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
apps/activity/views/action/group/index.hbs
apps/activity/views/partial/group/resources/guess-like.hbs
public/js/activity/group.page.js
public/scss/activity/group/floor/guess-like.scss
apps/activity/views/action/group/index.hbs
View file @
15cffd2
...
...
@@ -35,7 +35,6 @@
</div>
{{/if}}
{{>
group
/
resources
/
filter-tab
}}
</div>
<div
id=
"goodsContainer"
>
{{#if
filterList
.
length
}}
...
...
apps/activity/views/partial/group/resources/guess-like.hbs
View file @
15cffd2
...
...
@@ -3,12 +3,12 @@
<div
class=
"guess-scroll"
>
{{#
each
data
}}
{{#
ifcond
@index
'=='
0
}}
<div
class=
"guess-tab first"
data-query=
"
{{
queryString
}}
"
>
<div
id=
"tab-
{{
@index
}}
"
class=
"guess-tab first"
data-query=
"
{{
queryString
}}
"
>
<img
class=
"guess-img"
src=
"
{{
image2
src
w
=
200
h
=
160
q
=
60
mode
=
3
}}
"
/>
<div
class=
""
></div>
</div>
{{^}}
<div
class=
"guess-tab"
data-query=
"
{{
queryString
}}
"
>
<div
id=
"tab-
{{
@index
}}
"
data-index=
"
{{
@index
}}
"
class=
"guess-tab"
data-query=
"
{{
queryString
}}
"
>
<img
class=
"guess-img"
src=
"
{{
image2
src
w
=
200
h
=
160
q
=
60
mode
=
3
}}
"
/>
<div></div>
</div>
...
...
public/js/activity/group.page.js
View file @
15cffd2
...
...
@@ -231,6 +231,7 @@ class Group extends Page {
guessLikeTabChange
(
e
)
{
let
$this
=
$
(
e
.
currentTarget
);
let
query
=
$this
.
data
(
'query'
);
let
index
=
$this
.
data
(
'index'
);
let
queryObject
=
{};
let
newNavType
=
this
.
judgeNavType
(
this
.
newFilterTab
);
let
newNav
=
this
.
newNavInfo
[
newNavType
];
...
...
@@ -241,6 +242,9 @@ class Group extends Page {
queryObject
.
page
=
1
;
newNav
.
page
=
1
;
newNav
.
query
=
queryObject
;
let
lastDom
=
document
.
getElementById
(
`
tab
-
$
{
index
-
2
}
`
);
$
(
'.wapper'
).
animate
({
scrollLeft
:
lastDom
&&
lastDom
.
offsetLeft
||
0
});
$
.
ajax
({
type
:
'GET'
,
...
...
public/scss/activity/group/floor/guess-like.scss
View file @
15cffd2
...
...
@@ -7,6 +7,8 @@
overflow-x
:
scroll
;
-ms-overflow-style
:
none
;
overflow
:
-
moz-scrollbars-none
;
-webkit-overflow-scrolling
:
touch
;
height
:
110px
;
.guess-scroll
{
display
:
flex
;
...
...
@@ -14,6 +16,7 @@
flex-wrap
:
nowrap
;
width
:
auto
;
min-width
:
100%
;
height
:
88px
;
.guess-tab
{
min-width
:
160px
;
...
...
@@ -33,12 +36,16 @@
}
.guess-tab-active
{
height
:
4px
;
margin-top
:
-10px
;
height
:
2px
;
width
:
70%
;
background-color
:
#222
;
}
.
wapper
:
:-
webkit-scrollbar
{
width
:
0
!
important
;
}
.
wapper
:
:-
webkit-scrollbar
{
width
:
0
!
important
;
display
:
none
;
}
}
.guess-like.float
{
...
...
Please
register
or
login
to post a comment