Merge branch 'develop'
Showing
7 changed files
with
18 additions
and
9 deletions
@@ -162,10 +162,12 @@ | @@ -162,10 +162,12 @@ | ||
162 | } | 162 | } |
163 | 163 | ||
164 | .btn-wrap { | 164 | .btn-wrap { |
165 | + position: relative; | ||
165 | height: 120rem / $pxConvertRem; | 166 | height: 120rem / $pxConvertRem; |
166 | border-top: 1px solid #e6e6e6; | 167 | border-top: 1px solid #e6e6e6; |
167 | padding: 20rem / $pxConvertRem; | 168 | padding: 20rem / $pxConvertRem; |
168 | text-align: center; | 169 | text-align: center; |
170 | + background: #fff; | ||
169 | box-sizing: border-box; | 171 | box-sizing: border-box; |
170 | 172 | ||
171 | .btn-sure { | 173 | .btn-sure { |
@@ -7,8 +7,6 @@ | @@ -7,8 +7,6 @@ | ||
7 | position: absolute; | 7 | position: absolute; |
8 | width: 20rem / $pxConvertRem; | 8 | width: 20rem / $pxConvertRem; |
9 | height: 200rem / $pxConvertRem; | 9 | height: 200rem / $pxConvertRem; |
10 | - top: 0.4rem; | ||
11 | - left: 0; | ||
12 | background-color: transparent; | 10 | background-color: transparent; |
13 | z-index: 99; | 11 | z-index: 99; |
14 | } | 12 | } |
@@ -61,7 +59,6 @@ | @@ -61,7 +59,6 @@ | ||
61 | } | 59 | } |
62 | 60 | ||
63 | .info { | 61 | .info { |
64 | - position: relative; | ||
65 | float: left; | 62 | float: left; |
66 | margin-left: 60rem / $pxConvertRem; | 63 | margin-left: 60rem / $pxConvertRem; |
67 | padding: 16rem / $pxConvertRem 0; | 64 | padding: 16rem / $pxConvertRem 0; |
@@ -125,7 +125,7 @@ | @@ -125,7 +125,7 @@ | ||
125 | padding-right: 30rem / $pxConvertRem; | 125 | padding-right: 30rem / $pxConvertRem; |
126 | color: #999; | 126 | color: #999; |
127 | text-align: right; | 127 | text-align: right; |
128 | - width: 360rem / $pxConvertRem; | 128 | + width: 320rem / $pxConvertRem; |
129 | white-space: nowrap; | 129 | white-space: nowrap; |
130 | text-overflow: ellipsis; | 130 | text-overflow: ellipsis; |
131 | overflow: hidden; | 131 | overflow: hidden; |
@@ -6,6 +6,7 @@ | @@ -6,6 +6,7 @@ | ||
6 | margin-bottom: pxToRem(30px); | 6 | margin-bottom: pxToRem(30px); |
7 | padding-left: pxToRem(30px); | 7 | padding-left: pxToRem(30px); |
8 | padding-right: pxToRem(30px); | 8 | padding-right: pxToRem(30px); |
9 | + font-size: pxToRem(24px); | ||
9 | 10 | ||
10 | input { | 11 | input { |
11 | padding: 0 pxToRem(12px); | 12 | padding: 0 pxToRem(12px); |
1 | .recommend-for-you { | 1 | .recommend-for-you { |
2 | - padding: pxToRem(30px) 0 pxToRem(10px); | 2 | + padding: pxToRem(30px) 0 pxToRem(30px); |
3 | border-top: 1px solid #e0e0e0; | 3 | border-top: 1px solid #e0e0e0; |
4 | border-bottom: 1px solid #e0e0e0; | 4 | border-bottom: 1px solid #e0e0e0; |
5 | background: #fff; | 5 | background: #fff; |
@@ -45,11 +45,13 @@ | @@ -45,11 +45,13 @@ | ||
45 | line-height: 1; | 45 | line-height: 1; |
46 | 46 | ||
47 | .sale-price { | 47 | .sale-price { |
48 | + display: block; | ||
48 | color: #d9134f; | 49 | color: #d9134f; |
49 | margin-right: pxToRem(8px); | 50 | margin-right: pxToRem(8px); |
50 | } | 51 | } |
51 | 52 | ||
52 | .old-price { | 53 | .old-price { |
54 | + display: block; | ||
53 | color: #b0b0b0; | 55 | color: #b0b0b0; |
54 | text-decoration: line-through; | 56 | text-decoration: line-through; |
55 | } | 57 | } |
@@ -80,19 +80,21 @@ class CartModel | @@ -80,19 +80,21 @@ class CartModel | ||
80 | 80 | ||
81 | $ordinaryCount = strval($cart['ordinary_cart_data']['shopping_cart_data']['goods_count']); | 81 | $ordinaryCount = strval($cart['ordinary_cart_data']['shopping_cart_data']['goods_count']); |
82 | $advanceCount = strval($cart['advance_cart_data']['shopping_cart_data']['goods_count']); | 82 | $advanceCount = strval($cart['advance_cart_data']['shopping_cart_data']['goods_count']); |
83 | + $ordinarySoldOut = empty($cart['ordinary_cart_data']['sold_out_goods_list']); | ||
84 | + $advanceSoldOut = empty($cart['advance_cart_data']['sold_out_goods_list']); | ||
83 | // 普通购物车和预售购物车都为空 | 85 | // 普通购物车和预售购物车都为空 |
84 | - if ($ordinaryCount === '0' && $advanceCount === '0') { | 86 | + if ($ordinaryCount === '0' && $advanceCount === '0' && $ordinarySoldOut && $advanceSoldOut) { |
85 | $result['isEmptyCart'] = true; | 87 | $result['isEmptyCart'] = true; |
86 | break; | 88 | break; |
87 | } | 89 | } |
88 | 90 | ||
89 | // 普通购物车空,则显示预售购物车 | 91 | // 普通购物车空,则显示预售购物车 |
90 | - if ($ordinaryCount === '0') { | 92 | + if ($ordinaryCount === '0' && $ordinaryCount) { |
91 | $result['cartNav'] = false; | 93 | $result['cartNav'] = false; |
92 | $result['cartType'] = 'advance'; | 94 | $result['cartType'] = 'advance'; |
93 | } | 95 | } |
94 | // 预售购物车空,则显示普通购物车 | 96 | // 预售购物车空,则显示普通购物车 |
95 | - elseif ($advanceCount === '0') { | 97 | + elseif ($advanceCount === '0' && $advanceSoldOut) { |
96 | $result['cartNav'] = false; | 98 | $result['cartNav'] = false; |
97 | $result['cartType'] = 'ordinary'; | 99 | $result['cartType'] = 'ordinary'; |
98 | } | 100 | } |
@@ -734,7 +736,7 @@ class CartModel | @@ -734,7 +736,7 @@ class CartModel | ||
734 | 736 | ||
735 | do { | 737 | do { |
736 | // 数据为空时返回空的标志 | 738 | // 数据为空时返回空的标志 |
737 | - if (empty($data['goods_list'])) { | 739 | + if (empty($data['goods_list']) && empty($data['sold_out_goods_list'])) { |
738 | break; | 740 | break; |
739 | } | 741 | } |
740 | 742 |
@@ -110,6 +110,11 @@ class DetailModel | @@ -110,6 +110,11 @@ class DetailModel | ||
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 | ||
113 | + // 没有商品ID, 则取一次 | ||
114 | + if (empty($productId)) { | ||
115 | + $productId = isset($baseInfo['id']) ? $baseInfo['id'] : 0; | ||
116 | + } | ||
117 | + | ||
113 | $result['feedbacks'] = array(); | 118 | $result['feedbacks'] = array(); |
114 | 119 | ||
115 | // 商品咨询 | 120 | // 商品咨询 |
-
Please register or login to post a comment