Authored by biao

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into fix/issue

@@ -191,7 +191,7 @@ class Helpers @@ -191,7 +191,7 @@ class Helpers
191 */ 191 */
192 public static function transPrice($price) 192 public static function transPrice($price)
193 { 193 {
194 - return (!empty($price) && !is_float($price)) ? $price . '.00' : number_format($price, 2, '.', ''); 194 + return number_format($price, 2, '.', '');
195 } 195 }
196 196
197 /** 197 /**
@@ -41,7 +41,7 @@ optHammer.on('tap', function(e) { @@ -41,7 +41,7 @@ optHammer.on('tap', function(e) {
41 } 41 }
42 }).then(function(res) { 42 }).then(function(res) {
43 $('#dialog-wrapper').hide(); 43 $('#dialog-wrapper').hide();
44 - if (!res) { 44 + if ($.type(res) !== 'object') {
45 return; 45 return;
46 } 46 }
47 if (res.message) { 47 if (res.message) {
@@ -70,7 +70,7 @@ optHammer.on('tap', function(e) { @@ -70,7 +70,7 @@ optHammer.on('tap', function(e) {
70 } 70 }
71 }).then(function(res) { 71 }).then(function(res) {
72 $('#dialog-wrapper').hide(); 72 $('#dialog-wrapper').hide();
73 - if (!res) { 73 + if ($.type(res) !== 'object') {
74 return; 74 return;
75 } 75 }
76 if (res.message) { 76 if (res.message) {
@@ -28,9 +28,9 @@ @@ -28,9 +28,9 @@
28 } 28 }
29 29
30 .few-tag{ 30 .few-tag{
31 - width: 132rem / $pxConvertRem; 31 + width: 148rem / $pxConvertRem;
32 position: absolute; 32 position: absolute;
33 - left: 100rem / $pxConvertRem; 33 + left: 92rem / $pxConvertRem;
34 text-align: center; 34 text-align: center;
35 top: 75%; 35 top: 75%;
36 color: #fff; 36 color: #fff;
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 .icon-cb-checked:before { content: "\e61d"; } 5 .icon-cb-checked:before { content: "\e61d"; }
6 6
7 .shopping-cart-page { 7 .shopping-cart-page {
8 - padding-bottom: 120rem / $pxConvertRem; 8 + margin-bottom: 120rem / $pxConvertRem;
9 overflow-x: hidden; 9 overflow-x: hidden;
10 background: #f0f0f0; 10 background: #f0f0f0;
11 11
@@ -138,6 +138,13 @@ @@ -138,6 +138,13 @@
138 } 138 }
139 } 139 }
140 140
  141 + .checkbox {
  142 + display: inline-block;
  143 + width: 80rem / $pxConvertRem;
  144 + text-align: center;
  145 + margin-right: -20rem / $pxConvertRem;
  146 + }
  147 +
141 .coin-check { 148 .coin-check {
142 float: right; 149 float: right;
143 color: #999; 150 color: #999;
@@ -408,7 +408,7 @@ class CartModel @@ -408,7 +408,7 @@ class CartModel
408 $oneGoods['name'] = $single['product_name']; 408 $oneGoods['name'] = $single['product_name'];
409 $oneGoods['color'] = $single['color_name']; 409 $oneGoods['color'] = $single['color_name'];
410 $oneGoods['size'] = $single['size_name']; 410 $oneGoods['size'] = $single['size_name'];
411 - $oneGoods['price'] = Helpers::transPrice($single['sales_price']); 411 + $oneGoods['price'] = Helpers::transPrice($single['last_price']);
412 $oneGoods['count'] = $single['buy_number']; 412 $oneGoods['count'] = $single['buy_number'];
413 413
414 //gift=>是否赠品,advanceBuy=>是否加价购; 414 //gift=>是否赠品,advanceBuy=>是否加价购;