Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
990cb1c8
Commit
990cb1c8
authored
Aug 27, 2018
by
usgeek
Committed by
linlinjava
Aug 27, 2018
Browse files
购物车编辑样式调整
parent
7efe35dc
Changes
1
Show whitespace changes
Inline
Side-by-side
litemall-wx/pages/cart/cart.wxss
View file @
990cb1c8
page{
page
{
height: 100%;
height: 100%;
min-height: 100%;
min-height: 100%;
background: #f4f4f4;
background: #f4f4f4;
}
}
.container{
.container {
background: #f4f4f4;
background: #f4f4f4;
width: 100%;
width: 100%;
height: auto;
height: auto;
min-height: 100%;
min-height: 100%;
overflow: hidden;
overflow: hidden;
}
}
.service-policy{
.service-policy {
width: 750rpx;
width: 750rpx;
height: 73rpx;
height: 73rpx;
background: #f4f4f4;
background: #f4f4f4;
...
@@ -21,7 +23,7 @@ page{
...
@@ -21,7 +23,7 @@ page{
justify-content: space-between;
justify-content: space-between;
}
}
.service-policy .item{
.service-policy .item
{
background: url(http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/servicePolicyRed-518d32d74b.png) 0 center no-repeat;
background: url(http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/servicePolicyRed-518d32d74b.png) 0 center no-repeat;
background-size: 10rpx;
background-size: 10rpx;
padding-left: 15rpx;
padding-left: 15rpx;
...
@@ -31,20 +33,19 @@ page{
...
@@ -31,20 +33,19 @@ page{
color: #666;
color: #666;
}
}
.no-login {
.no-login{
width: 100%;
width: 100%;
height: auto;
height: auto;
margin: 0 auto;
margin: 0 auto;
}
}
.no-login .c{
.no-login .c
{
width: 100%;
width: 100%;
height: auto;
height: auto;
margin-top: 200rpx;
margin-top: 200rpx;
}
}
.no-login .c image{
.no-login .c image
{
margin: 0 auto;
margin: 0 auto;
display: block;
display: block;
text-align: center;
text-align: center;
...
@@ -52,35 +53,57 @@ page{
...
@@ -52,35 +53,57 @@ page{
height: 258rpx;
height: 258rpx;
}
}
.no-login .c text{
.no-login .c text
{
margin: 0 auto;
margin: 0 auto;
display: block;
display: block;
width: 258rpx;
width: 258rpx;
height: 59rpx;
height: 59rpx;
line-height: 29rpx;
line-height: 29rpx;
text-align: center;
text-align: center;
font-size: 5
0
rpx;
font-size:
3
5rpx;
color: #999;
color: #999;
}
}
.no-login button{
.no-login button
{
width:
6
0%;
width:
9
0%;
margin: 0 auto;
margin: 0 auto;
color: #fff;
font-size: 30rpx;
height: 96rpx;
line-height: 96rpx;
right: 0;
display: flex;
justify-content: center;
align-items: center;
position: flex;
bottom: 0;
left: 0;
border-radius: 0;
padding: 0;
margin-left: 5%;
text-align: center;
/* padding-left: -5rpx; */
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
}
}
.no-cart{
.no-cart
{
width: 100%;
width: 100%;
height: auto;
height: auto;
margin: 0 auto;
margin: 0 auto;
}
}
.no-cart .c{
.no-cart .c
{
width: 100%;
width: 100%;
height: auto;
height: auto;
margin-top: 200rpx;
margin-top: 200rpx;
}
}
.no-cart .c image{
.no-cart .c image
{
margin: 0 auto;
margin: 0 auto;
display: block;
display: block;
text-align: center;
text-align: center;
...
@@ -88,7 +111,7 @@ page{
...
@@ -88,7 +111,7 @@ page{
height: 258rpx;
height: 258rpx;
}
}
.no-cart .c text{
.no-cart .c text
{
margin: 0 auto;
margin: 0 auto;
display: block;
display: block;
width: 258rpx;
width: 258rpx;
...
@@ -99,34 +122,33 @@ page{
...
@@ -99,34 +122,33 @@ page{
color: #999;
color: #999;
}
}
.cart-view {
.cart-view{
width: 100%;
width: 100%;
height: auto;
height: auto;
overflow: hidden;
overflow: hidden;
}
}
.cart-view .list{
.cart-view .list
{
height: auto;
height: auto;
width: 100%;
width: 100%;
overflow: hidden;
overflow: hidden;
margin-bottom: 120rpx;
margin-bottom: 120rpx;
}
}
.cart-view .group-item{
.cart-view .group-item
{
height: auto;
height: auto;
width: 100%;
width: 100%;
background: #fff;
background: #fff;
margin-bottom: 18rpx;
margin-bottom: 18rpx;
}
}
.cart-view .item{
.cart-view .item
{
height: 164rpx;
height: 164rpx;
width: 100%;
width: 100%;
overflow: hidden;
overflow: hidden;
}
}
.cart-view .item .checkbox{
.cart-view .item .checkbox {
float: left;
float: left;
height: 34rpx;
height: 34rpx;
width: 34rpx;
width: 34rpx;
...
@@ -135,34 +157,34 @@ page{
...
@@ -135,34 +157,34 @@ page{
background-size: 34rpx;
background-size: 34rpx;
}
}
.cart-view .item .checkbox.checked{
.cart-view .item .checkbox.checked
{
background: url(http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/checkbox-checked-822e54472a.png) no-repeat;
background: url(http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/checkbox-checked-822e54472a.png) no-repeat;
background-size: 34rpx;
background-size: 34rpx;
}
}
.cart-view .item .cart-goods{
.cart-view .item .cart-goods
{
float: left;
float: left;
height: 164rpx;
height: 164rpx;
width: 672rpx;
width: 672rpx;
border-bottom: 1px solid #f4f4f4;
border-bottom: 1px solid #f4f4f4;
}
}
.cart-view .item .img{
.cart-view .item .img
{
float: left;
float: left;
height:125rpx;
height:
125rpx;
width: 125rpx;
width: 125rpx;
background: #f4f4f4;
background: #f4f4f4;
margin: 19.5rpx 18rpx 19.5rpx 0;
margin: 19.5rpx 18rpx 19.5rpx 0;
}
}
.cart-view .item .info{
.cart-view .item .info
{
float: left;
float: left;
height:125rpx;
height:
125rpx;
width: 503rpx;
width: 503rpx;
margin: 19.5rpx 26rpx 19.5rpx 0;
margin: 19.5rpx 26rpx 19.5rpx 0;
}
}
.cart-view .item .t{
.cart-view .item .t
{
margin: 8rpx 0;
margin: 8rpx 0;
height: 28rpx;
height: 28rpx;
font-size: 25rpx;
font-size: 25rpx;
...
@@ -170,8 +192,7 @@ page{
...
@@ -170,8 +192,7 @@ page{
overflow: hidden;
overflow: hidden;
}
}
.cart-view .item .name {
.cart-view .item .name{
height: 28rpx;
height: 28rpx;
max-width: 310rpx;
max-width: 310rpx;
line-height: 28rpx;
line-height: 28rpx;
...
@@ -180,13 +201,13 @@ page{
...
@@ -180,13 +201,13 @@ page{
overflow: hidden;
overflow: hidden;
}
}
.cart-view .item .num{
.cart-view .item .num
{
height: 28rpx;
height: 28rpx;
line-height: 28rpx;
line-height: 28rpx;
float: right;
float: right;
}
}
.cart-view .item .attr{
.cart-view .item .attr
{
margin-bottom: 17rpx;
margin-bottom: 17rpx;
height: 24rpx;
height: 24rpx;
line-height: 24rpx;
line-height: 24rpx;
...
@@ -195,7 +216,7 @@ page{
...
@@ -195,7 +216,7 @@ page{
overflow: hidden;
overflow: hidden;
}
}
.cart-view .item .b{
.cart-view .item .b
{
height: 28rpx;
height: 28rpx;
line-height: 28rpx;
line-height: 28rpx;
font-size: 25rpx;
font-size: 25rpx;
...
@@ -203,11 +224,11 @@ page{
...
@@ -203,11 +224,11 @@ page{
overflow: hidden;
overflow: hidden;
}
}
.cart-view .item .price{
.cart-view .item .price
{
float: left;
float: left;
}
}
.cart-view .item .open{
.cart-view .item .open
{
height: 28rpx;
height: 28rpx;
width: 150rpx;
width: 150rpx;
display: block;
display: block;
...
@@ -218,11 +239,11 @@ page{
...
@@ -218,11 +239,11 @@ page{
color: #333;
color: #333;
}
}
.cart-view .item.edit .t{
.cart-view .item.edit .t
{
display: none;
display: none;
}
}
.cart-view .item.edit .attr{
.cart-view .item.edit .attr
{
text-align: right;
text-align: right;
background: url(http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/arrow-right1-e9828c5b35.png) right center no-repeat;
background: url(http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/arrow-right1-e9828c5b35.png) right center no-repeat;
padding-right: 25rpx;
padding-right: 25rpx;
...
@@ -235,37 +256,37 @@ page{
...
@@ -235,37 +256,37 @@ page{
overflow: hidden;
overflow: hidden;
}
}
.cart-view .item.edit .b{
.cart-view .item.edit .b
{
display: flex;
display: flex;
height: 52rpx;
height: 52rpx;
overflow: hidden;
overflow: hidden;
}
}
.cart-view .item.edit .price{
.cart-view .item.edit .price
{
line-height: 52rpx;
line-height: 52rpx;
height: 52rpx;
height: 52rpx;
flex: 1;
flex: 1;
}
}
.cart-view .item .selnum{
.cart-view .item .selnum
{
display: none;
display: none;
}
}
.cart-view .item.edit .selnum{
.cart-view .item.edit .selnum
{
width: 235rpx;
width: 235rpx;
height: 52rpx;
height: 52rpx;
border: 1rpx solid #ccc;
border: 1rpx solid #ccc;
display: flex;
display: flex;
}
}
.selnum .cut{
.selnum .cut
{
width: 70rpx;
width: 70rpx;
height: 100%;
height: 100%;
text-align: center;
text-align: center;
line-height: 50rpx;
line-height: 50rpx;
}
}
.selnum .number{
.selnum .number
{
flex: 1;
flex: 1;
height: 100%;
height: 100%;
text-align: center;
text-align: center;
...
@@ -275,15 +296,14 @@ page{
...
@@ -275,15 +296,14 @@ page{
float: left;
float: left;
}
}
.selnum .add{
.selnum .add
{
width: 80rpx;
width: 80rpx;
height: 100%;
height: 100%;
text-align: center;
text-align: center;
line-height: 50rpx;
line-height: 50rpx;
}
}
.cart-view .group-item .header {
.cart-view .group-item .header{
width: 100%;
width: 100%;
height: 94rpx;
height: 94rpx;
line-height: 94rpx;
line-height: 94rpx;
...
@@ -291,13 +311,13 @@ page{
...
@@ -291,13 +311,13 @@ page{
border-bottom: 1px solid #f4f4f4;
border-bottom: 1px solid #f4f4f4;
}
}
.cart-view .promotion .icon{
.cart-view .promotion .icon
{
display: inline-block;
display: inline-block;
height: 24rpx;
height: 24rpx;
width: 15rpx;
width: 15rpx;
}
}
.cart-view .promotion{
.cart-view .promotion
{
margin-top: 25.5rpx;
margin-top: 25.5rpx;
float: left;
float: left;
height: 43rpx;
height: 43rpx;
...
@@ -307,7 +327,7 @@ page{
...
@@ -307,7 +327,7 @@ page{
font-size: 0;
font-size: 0;
}
}
.cart-view .promotion .tag{
.cart-view .promotion .tag
{
border: 1px solid #f48f18;
border: 1px solid #f48f18;
height: 37rpx;
height: 37rpx;
line-height: 31rpx;
line-height: 31rpx;
...
@@ -317,7 +337,7 @@ page{
...
@@ -317,7 +337,7 @@ page{
font-size: 24.5rpx;
font-size: 24.5rpx;
}
}
.cart-view .promotion .txt{
.cart-view .promotion .txt
{
height: 43rpx;
height: 43rpx;
line-height: 43rpx;
line-height: 43rpx;
padding-right: 10rpx;
padding-right: 10rpx;
...
@@ -326,7 +346,7 @@ page{
...
@@ -326,7 +346,7 @@ page{
overflow: hidden;
overflow: hidden;
}
}
.cart-view .get{
.cart-view .get
{
margin-top: 18rpx;
margin-top: 18rpx;
float: right;
float: right;
height: 58rpx;
height: 58rpx;
...
@@ -337,19 +357,18 @@ page{
...
@@ -337,19 +357,18 @@ page{
color: #333;
color: #333;
}
}
.cart-bottom{
.cart-bottom
{
position: fixed;
position: fixed;
bottom:0;
bottom:
0;
left:0;
left:
0;
height: 100rpx;
height: 100rpx;
width: 100%;
width: 100%;
background: #fff;
background: #fff;
display: flex;
display: flex;
}
}
.cart-bottom .checkbox{
.cart-bottom .checkbox
{
height: 34rpx;
height: 34rpx;
padding-left: 60rpx;
padding-left: 60rpx;
line-height: 34rpx;
line-height: 34rpx;
margin: 33rpx 18rpx 33rpx 26rpx;
margin: 33rpx 18rpx 33rpx 26rpx;
...
@@ -358,27 +377,39 @@ page{
...
@@ -358,27 +377,39 @@ page{
font-size: 29rpx;
font-size: 29rpx;
}
}
.cart-bottom .checkbox.checked{
.cart-bottom .checkbox.checked
{
background: url(http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/checkbox-checked-822e54472a.png) no-repeat;
background: url(http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/checkbox-checked-822e54472a.png) no-repeat;
background-size: 34rpx;
background-size: 34rpx;
}
}
.cart-bottom .total{
.cart-bottom .total
{
height: 34rpx;
height: 34rpx;
flex: 1;
flex: 1;
margin: 33rpx 10rpx;
margin: 33rpx 10rpx;
font-size: 29rpx;
font-size: 29rpx;
}
}
.cart-bottom .delete {
.cart-bottom .delete{
text-align: center;
height: 34rpx;
width: 180rpx;
width: auto;
height: 80rpx;
margin: 33rpx 18rpx;
line-height: 82rpx;
font-size: 29rpx;
padding: 0;
margin: 0;
margin-left: -5rpx;
padding-right: 25rpx;
font-size: 25rpx;
color: #f4f4f4;
/* text-align: center; */
border-top-left-radius: 0rpx;
border-bottom-left-radius: 0rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
background-image: linear-gradient(to right, #9a9ba1 0%, #ae8b9c 100%);
}
}
.cart-bottom .checkout{
.cart-bottom .checkout
{
height: 100rpx;
height: 100rpx;
width: 210rpx;
width: 210rpx;
text-align: center;
text-align: center;
...
@@ -387,3 +418,114 @@ page{
...
@@ -387,3 +418,114 @@ page{
background: #b4282d;
background: #b4282d;
color: #fff;
color: #fff;
}
}
.action_btn_area {
/* border: 1px solid #333; */
position: absolute;
display: flex;
justify-content: center;
align-items: center;
right: 0;
top: 0;
width: 380rpx;
height: 100rpx;
}
.action_btn_area .edit {
width: 140rpx;
/* border: 1px solid #000; */
height: 80rpx;
line-height: 82rpx;
padding: 0;
margin: 0;
margin-right: 5rpx;
text-align: center;
/* padding-left: 25rpx; */
font-size: 25rpx;
color: #f4f4f4;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
/* background-image: linear-gradient(to right, #ff7701 100%); */
background-image: linear-gradient(to right, #AB956D 0%, #AB956D 100%);
}
.action_btn_area .checkout {
width: 140rpx;
height: 80rpx;
line-height: 82rpx;
padding: 0;
margin: 0;
margin-left: 5rpx;
/* padding-right: 25rpx; */
font-size: 25rpx;
color: #f4f4f4;
text-align: center;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
}
.action_btn_area .delete {
width: 140rpx;
/* border: 1px solid #000; */
height: 80rpx;
line-height: 82rpx;
padding: 0;
margin: 0;
margin-right: 5rpx;
text-align: center;
padding-left: -5rpx;
font-size: 25rpx;
color: #f4f4f4;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
}
.action_btn_area .sure {
text-align: center;
width: 140rpx;
height: 80rpx;
line-height: 82rpx;
padding: 0;
margin: 0;
margin-right: 10rpx;
padding-left: -5rpx;
font-size: 25rpx;
color: #f4f4f4;
/* text-align: center; */
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
background-image: linear-gradient(to right, #AB956D 0%, #AB956D 100%);
/* background-image: linear-gradient(to right, #ff7701 0%, #fe4800 100%); */
}
.auth_btn {
position: fixed;
top: 55vh;
left: 10vw;
width: 80vw;
height: 96rpx;
line-height: 96rpx;
font-size: 25rpx;
color: #f4f4f4;
/* text-align: center; */
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
background-image: linear-gradient(to right, #8baaaa 0%, #9a9ba1 100%);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment