Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
9 years ago
Commit
880a123cd6a60ad1bcf884abb3970458788e17cc
1 parent
df3e3125
店铺装修搜索入口修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
web-static/js/product/product.js
web-static/sass/product/_shop-entry.css
web-static/js/product/product.js
View file @
880a123
...
...
@@ -33,6 +33,10 @@ exports.init = function(num) {
$shopEntry
.
eq
(
shopEntryLen
-
1
).
css
({
width
:
'100%'
});
$shopEntry
.
eq
(
shopEntryLen
-
1
).
find
(
'.name'
).
css
({
width
:
'600px'
});
}
else
if
(
shopEntryLen
%
3
===
2
)
{
$shopEntry
.
eq
(
shopEntryLen
-
1
).
css
({
width
:
'49%'
...
...
@@ -41,6 +45,14 @@ exports.init = function(num) {
$shopEntry
.
eq
(
shopEntryLen
-
2
).
css
({
width
:
'49%'
});
$shopEntry
.
eq
(
shopEntryLen
-
1
).
find
(
'.name'
).
css
({
width
:
'230px'
});
$shopEntry
.
eq
(
shopEntryLen
-
2
).
find
(
'.name'
).
css
({
width
:
'230px'
});
}
$
(
'.shop-entry:nth-child(3n+1)'
).
css
({
...
...
web-static/sass/product/_shop-entry.css
View file @
880a123
...
...
@@ -26,12 +26,19 @@
.name
{
margin-left
:
10px
;
width
:
75px
;
}
.shop-name
{
font-size
:
16px
;
color
:
#222
;
line-height
:
26px
;
width
:
100%
;
height
:
26px
;
display
:
block
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
.sorts
{
...
...
@@ -41,6 +48,12 @@
a
{
color
:
#999
;
width
:
100%
;
height
:
18px
;
display
:
block
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
}
...
...
Please
register
or
login
to post a comment