cart.wxss 2.0 KB
Newer Older
D
devil_gong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
/**
 * 商品列表
 */
 .page {
  padding-bottom: 120rpx;
}
.goods-item {
    padding: 20rpx 10rpx;
    position: relative;
}
.goods-title {
    line-height: 36rpx;
}
.goods-item:not(:last-child) {
  border-bottom: 1px solid #eee;
}
.goods-title, .goods-attribute {
    margin-bottom: 10rpx;
}
.goods-image {
    width: 160rpx;
    height: 160rpx;
    margin-right: 20rpx;
}
.goods-base {
  min-height: 160rpx;
  margin-left: 180rpx;
}
.goods-price {
    position: relative;
}
.buy-number {
    margin-left: 20rpx;
}
.goods-item .items {
  padding-left: 80rpx;
}
.goods-item .selected {
  margin-top: 60rpx;
}

/**
 * 数量操作
 */
.number-content {
    position: absolute;
    right: 20rpx;
    top: 100rpx;
    background: #eee;
    border-radius: 2px;
    border: 1px solid #eee;
}
.number-content .number-submit
{
    width: 80rpx;
    font-weight: bold;
}
.number-content input {
    width: 30px;
}
.number-content .number-submit,
.number-content input
{
    padding: 0;
    vertical-align: middle;
    height: 60rpx;
    line-height: 60rpx;
}

/**
 * 空购物车
 */
.no-data-box {
  padding: 30% 0 0 0;
}
.no-data-box image {
    width: 160rpx;
    margin-bottom: 20rpx;
}
.no-data-box .no-data-tips {
    font-size: 28rpx;
    color: #a6a6a6;
}
.no-data-box button {
  margin: 0 auto;
  width: 220rpx;
  height: 60rpx;
  line-height: 60rpx;
  font-size: 28rpx;
  margin-top: 30rpx;
}

/**
 * 操作导航
 */
.buy-nav {
    position: fixed;
    left: 0;
    bottom: 0;
}
.buy-nav, .nav-base, .nav-submit button {
    height: 100rpx;
}
.nav-base, .nav-submit button {
    line-height: 100rpx;
}
.nav-base {
    width: calc(75% - 20rpx);
    padding: 0 10rpx;
}
.nav-submit {
    width: 25%;
}
.nav-submit button {
    border-radius: 0;
}
.page {
    padding-bottom: 120rpx;
}
.selected .icon {
    width: 50rpx;
    height: 50rpx !important;
    margin: 0 10rpx;
    vertical-align: middle;
}
.buy-nav .price {
  width: calc(100% - 140rpx);
}
.buy-nav .sales-price {
  max-width: calc(100% - 40px);
}