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
毕凯
7 years ago
Commit
818bdfc61a05bf2a768783aee966feb2cf2db231
2 parents
93006f86
d0e481f3
Merge branch 'feature/shop-group' into 'gray'
店铺问题修改 See merge request
!1422
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
apps/activity/views/partial/feature/shop-group.hbs
public/js/activity/feature.page.js
public/scss/feature/_shop.css
apps/activity/views/partial/feature/shop-group.hbs
View file @
818bdfc
...
...
@@ -4,7 +4,7 @@
<a
{{#
isEqualOr
..
/
jump2Shop
'1'
}}
href=
"
{{
href
}}
"
{{/
isEqualOr
}}
class=
"pull-left shop-box"
>
<div
class=
"shop-img"
>
<img
class=
"left-icon"
src=
"
{{
image2
..
/
lefTopImg
q
=
85
}}
"
alt=
""
>
<img
src=
"
{{
image2
picture
w
=
187
h
=
275
q
=
85
}}
"
alt=
""
>
<img
src=
"
{{
image2
picture
w
=
284
h
=
320
q
=
85
}}
"
alt=
""
>
</div>
<div
class=
"shop-bottom-bar"
style=
"background-image: url(
{{
image2
..
/
brandImg
w
=
290
h
=
60
q
=
85
}}
)"
>
<span
class=
"shop-name"
>
{{
shop_name
}}
</span>
...
...
@@ -14,7 +14,7 @@
<a
{{#
isEqualOr
..
/
jump2Shop
'1'
}}
href=
"
{{
href
}}
"
{{/
isEqualOr
}}
class=
"pull-left shop-box"
>
<div
class=
"shop-img"
>
<img
class=
"left-icon"
src=
"
{{
image2
..
/
lefTopImg
q
=
85
}}
"
alt=
""
>
<img
src=
"
{{
image2
picture
w
=
18
7
h
=
275
q
=
85
}}
"
alt=
""
>
<img
src=
"
{{
image2
picture
w
=
18
8
h
=
210
q
=
85
}}
"
alt=
""
>
</div>
<div
class=
"shop-bottom-bar"
style=
"background-image: url(
{{
image2
..
/
brandImg
w
=
290
h
=
60
q
=
85
}}
);"
>
<span
class=
"shop-name"
>
{{
shop_name
}}
</span>
...
...
public/js/activity/feature.page.js
View file @
818bdfc
...
...
@@ -285,6 +285,9 @@ function shopGroupInit() {
if
(
res
&&
res
.
data
&&
res
.
data
.
length
)
{
config
.
renderData
=
res
.
data
;
// 最后店铺数量不足一行,截掉
res
.
data
.
length
=
res
.
data
.
length
-
(
res
.
data
.
length
%
config
.
numOfOneRow
);
config
.
renderData
.
forEach
(
shop
=>
{
if
(
config
.
jump2Shop
===
'0'
&&
config
.
linkParams
)
{
shop
.
href
=
config
.
linkParams
.
replace
(
/
\$
shop_id/gi
,
shop
.
shops_id
);
...
...
public/scss/feature/_shop.css
View file @
818bdfc
...
...
@@ -114,7 +114,18 @@ $shop-width-3: 187px;
.shop-individuation
{
&.shop-two,
&.shop-three
{
margin-top
:
10px
;
margin-top
:
20px
;
}
&
.shop-two
{
.shop-box
{
margin-bottom
:
20px
;
height
:
auto
;
.shop-img
{
height
:
320px
;
}
}
}
&
.shop-three
{
...
...
@@ -122,11 +133,17 @@ $shop-width-3: 187px;
.shop-box
{
width
:
184px
;
height
:
auto
;
margin-right
:
8px
;
margin-bottom
:
20px
;
.shop-bottom-bar
{
height
:
40px
;
}
.shop-img
{
height
:
210px
;
}
}
.shop-logo
{
...
...
Please
register
or
login
to post a comment