Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
梁志锋
9 years ago
Commit
bfbfebb7e61dc9a0ff3472a569caa8ce1aff49ec
2 parents
aa1323eb
5f003c62
Merge branch 'cart' into 'feature/cart'
购物车样式更新 根据设计图更新购物车样式 See merge request !24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
22 deletions
static/sass/shopping-cart/_good.scss
template/m.yohobuy.com/partials/shopping-cart/good.phtml
static/sass/shopping-cart/_good.scss
View file @
bfbfebb
.shopping-cart-good
{
$cartRed
:
#d0253b
;
position
:
relative
;
padding-left
:
16rem
/
$pxConvertRem
;
...
...
@@ -16,26 +17,30 @@
.info
{
float
:
left
;
margin-left
:
5
0rem
/
$pxConvertRem
;
margin-left
:
3
0rem
/
$pxConvertRem
;
padding
:
16rem
/
$pxConvertRem
0
;
border-bottom
:
1px
solid
#e0e0e0
;
padding-right
:
20rem
/
$pxConvertRem
;
}
.thumb
{
float
:
left
;
width
:
120rem
/
$pxConvertRem
;
height
:
160rem
/
$pxConvertRem
;
width
:
180rem
/
$pxConvertRem
;
height
:
200rem
/
$pxConvertRem
;
background-size
:
100%
;
background-repeat
:
no-repeat
;
}
.deps
{
margin-left
:
135rem
/
$pxConvertRem
;
padding-right
:
20rem
/
$pxConvertRem
;
margin-left
:
173rem
/
$pxConvertRem
;
padding-bottom
:
60rem
/
$pxConvertRem
;
border-bottom
:
1px
solid
#e0e0e0
;
}
.name
{
font-size
:
28rem
/
$pxConvertRem
;
color
:
#5a5a5a
;
}
.row
:nth-child
(
2
)
{
font-size
:
22rem
/
$pxConvertRem
;
height
:
45rem
/
$pxConvertRem
;
...
...
@@ -55,12 +60,14 @@
}
.appear-date
{
color
:
#e01
;
color
:
$cartRed
;
display
:
block
;
margin-top
:
4rem
/
$pxConvertRem
;
}
.price
{
font-size
:
24rem
/
$pxConvertRem
;
color
:
#000
;
color
:
$cartRed
;
}
.count
{
...
...
@@ -78,7 +85,11 @@
border
:
none
;
color
:
#fff
;
text-align
:
center
;
margin-left
:
16rem
/
$pxConvertRem
;
float
:
right
;
margin-top
:
20rem
/
$pxConvertRem
;
margin-right
:
16rem
/
$pxConvertRem
;
border-radius
:
20rem
/
$pxConvertRem
;
padding
:
4rem
/
$pxConvertRem
;
}
.sold-out
{
...
...
@@ -86,7 +97,7 @@
}
.low-stocks
{
background
:
#
e01
;
background
:
#
7f7f7f
;
}
.icon-del
,
...
...
@@ -140,4 +151,10 @@
}
}
}
}
\ No newline at end of file
}
.shopping-cart-good
:last-child
{
.deps
{
border
:
none
;
}
}
...
...
template/m.yohobuy.com/partials/shopping-cart/good.phtml
View file @
bfbfebb
...
...
@@ -17,11 +17,6 @@
</span>
{{/if}}
{{#if appearDate}}
<span class="appear-date">
上市期:{{appearDate}}
</span>
{{/if}}
</p>
<p class="row">
<span class="price">
...
...
@@ -36,14 +31,23 @@
</span>
{{/if}}
<span class="iconfont icon-edit"></span>
<span class="iconfont icon-del"></span>
</p>
<p class="row">
{{#if lowStocks}}
<span class="low-stocks">
库存不足
</span>
{{/if}}
<span class="iconfont icon-edit"></span>
<span class="iconfont icon-del"></span>
</p>
<p class="row">
{{#if appearDate}}
<span class="appear-date">
上市期:{{appearDate}}
</span>
{{/if}}
</p>
</div>
</div>
...
...
@@ -58,4 +62,4 @@
删除
</div>
</div>
</div>
\ No newline at end of file
</div>
...
...
Please
register
or
login
to post a comment