Authored by hf

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

@@ -76,10 +76,11 @@ class LoginData @@ -76,10 +76,11 @@ class LoginData
76 $param['openId'] = $openId; 76 $param['openId'] = $openId;
77 $param['source_type'] = $sourceType; 77 $param['source_type'] = $sourceType;
78 $param['nickname'] = $nickname; 78 $param['nickname'] = $nickname;
79 - $param['client_secret'] = Sign::getSign($param);  
80 if (!empty($shoppingKey)) { 79 if (!empty($shoppingKey)) {
81 $param['shopping_key'] = $shoppingKey; 80 $param['shopping_key'] = $shoppingKey;
82 } 81 }
  82 +
  83 + $param['client_secret'] = Sign::getSign($param);
83 84
84 return Yohobuy::get(Yohobuy::API_URL, $param); 85 return Yohobuy::get(Yohobuy::API_URL, $param);
85 } 86 }
@@ -4,6 +4,12 @@ @@ -4,6 +4,12 @@
4 border-bottom: 1px solid $borderC; 4 border-bottom: 1px solid $borderC;
5 padding: 0 pxToRem(28px); 5 padding: 0 pxToRem(28px);
6 .user-name { 6 .user-name {
  7 + display: inline-block;
  8 + float: left;
  9 + max-width: 9rem;
  10 + overflow: hidden;
  11 + text-overflow: ellipsis;
  12 + white-space: nowrap;
7 font-size: pxToRem(24px); 13 font-size: pxToRem(24px);
8 line-height: pxToRem(62px); 14 line-height: pxToRem(62px);
9 color: $mainFontC; 15 color: $mainFontC;
@@ -684,7 +684,7 @@ class CartModel @@ -684,7 +684,7 @@ class CartModel
684 // 缩略图 684 // 缩略图
685 foreach ($val['images_list'] as $image) { 685 foreach ($val['images_list'] as $image) {
686 $thumbImageList[] = array( 686 $thumbImageList[] = array(
687 - 'img' => Helpers::getImageUrl($image['image_url'], 80, 106) 687 + 'img' => Helpers::getImageUrl($image['image_url'], 60, 60)
688 ); 688 );
689 } 689 }
690 690
@@ -276,10 +276,10 @@ class IndexController extends AbstractAction @@ -276,10 +276,10 @@ class IndexController extends AbstractAction
276 $this->setNavHeader('确认订单', Helpers::url('/cart/index/index'), false); // 不显示右上角home按钮 276 $this->setNavHeader('确认订单', Helpers::url('/cart/index/index'), false); // 不显示右上角home按钮
277 277
278 // 购物车商品为空跳转到购物车页面 278 // 购物车商品为空跳转到购物车页面
279 - $cartType = $this->get('cartType', 'ordinary'); 279 + $cartType = $this->get('cartType', '');
280 $cookieData = $this->getCookie('order-info', null); 280 $cookieData = $this->getCookie('order-info', null);
281 $orderInfo = array(); 281 $orderInfo = array();
282 - if (!empty($cookieData)) { 282 + if (empty($cartType) && !empty($cookieData)) {
283 $orderInfo = json_decode($cookieData, true); 283 $orderInfo = json_decode($cookieData, true);
284 $cartType = $orderInfo['cartType']; 284 $cartType = $orderInfo['cartType'];
285 } 285 }