Authored by 梁志锋

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

@@ -364,7 +364,7 @@ class UserData @@ -364,7 +364,7 @@ class UserData
364 public static function suggestData($udid, $page = 1, $limit = 30) 364 public static function suggestData($udid, $page = 1, $limit = 30)
365 { 365 {
366 $param = Yohobuy::param(); 366 $param = Yohobuy::param();
367 - $param['udid'] = $udid; 367 + $param['udid'] = $udid . '13686403'; // 为了兼容udid长度
368 $param['page'] = $page; 368 $param['page'] = $page;
369 $param['limit'] = $limit; 369 $param['limit'] = $limit;
370 $param['client_secret'] = Sign::getSign($param); 370 $param['client_secret'] = Sign::getSign($param);
@@ -385,7 +385,7 @@ class UserData @@ -385,7 +385,7 @@ class UserData
385 { 385 {
386 $param = Yohobuy::param(); 386 $param = Yohobuy::param();
387 $param['uid'] = $uid; 387 $param['uid'] = $uid;
388 - $param['udid'] = $udid; 388 + $param['udid'] = $udid . '13686403';// 为了兼容udid长度
389 $param['is_reliable'] = $reliable; 389 $param['is_reliable'] = $reliable;
390 $param['suggest_id'] = $suggest_id; 390 $param['suggest_id'] = $suggest_id;
391 $param['client_secret'] = Sign::getSign($param); 391 $param['client_secret'] = Sign::getSign($param);
@@ -13,7 +13,8 @@ var goodsSwiper, @@ -13,7 +13,8 @@ var goodsSwiper,
13 $discountArrow = $('.goodsDiscount .first-item span'); 13 $discountArrow = $('.goodsDiscount .first-item span');
14 14
15 var goodsDiscountEl = document.getElementById('goodsDiscount'), 15 var goodsDiscountEl = document.getElementById('goodsDiscount'),
16 - goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl); 16 + goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl),
  17 + $discountFirstItem = $(goodsDiscountEl).find('.first-item');
17 18
18 var $cart = $('.cart-bar'); 19 var $cart = $('.cart-bar');
19 20
@@ -62,9 +63,11 @@ if (0 === $discountFolder.children().length) { @@ -62,9 +63,11 @@ if (0 === $discountFolder.children().length) {
62 if (goodsDiscountHammer && $discountFolder.children().length > 0) { 63 if (goodsDiscountHammer && $discountFolder.children().length > 0) {
63 goodsDiscountHammer.on('tap', function(e) { 64 goodsDiscountHammer.on('tap', function(e) {
64 if ($discountFolder.is(':hidden')) { 65 if ($discountFolder.is(':hidden')) {
  66 + $discountFirstItem.removeClass('short-text');
65 $discountArrow.removeClass('icon-down').addClass('icon-up').html(''); 67 $discountArrow.removeClass('icon-down').addClass('icon-up').html('');
66 $discountFolder.slideDown(); 68 $discountFolder.slideDown();
67 } else { 69 } else {
  70 + $discountFirstItem.addClass('short-text');
68 $discountArrow.removeClass('icon-up').addClass('icon-down').html(''); 71 $discountArrow.removeClass('icon-up').addClass('icon-down').html('');
69 $discountFolder.slideUp(); 72 $discountFolder.slideUp();
70 } 73 }
@@ -359,11 +359,15 @@ $basicBtnC:#eb0313; @@ -359,11 +359,15 @@ $basicBtnC:#eb0313;
359 position: relative; 359 position: relative;
360 padding: pxToRem(30px) pxToRem(60px) pxToRem(30px) pxToRem(28px); 360 padding: pxToRem(30px) pxToRem(60px) pxToRem(30px) pxToRem(28px);
361 line-height: pxToRem(36px); 361 line-height: pxToRem(36px);
  362 + // line-height: pxToRem(88px);
  363 + }
  364 +
  365 + .short-text {
362 white-space: nowrap; 366 white-space: nowrap;
363 overflow: hidden; 367 overflow: hidden;
364 text-overflow: ellipsis; 368 text-overflow: ellipsis;
365 - // line-height: pxToRem(88px);  
366 } 369 }
  370 +
367 .iconfont { 371 .iconfont {
368 position: absolute; 372 position: absolute;
369 top: pxToRem(30px); 373 top: pxToRem(30px);
@@ -68,7 +68,7 @@ @@ -68,7 +68,7 @@
68 {{# list}} 68 {{# list}}
69 {{#if @first}} 69 {{#if @first}}
70 {{#if text}} 70 {{#if text}}
71 - <h1 class="first-item">{{text}}<span class="icon-down iconfont dropdown">&#xe609;</span></h1> 71 + <h1 class="first-item short-text">{{text}}<span class="icon-down iconfont dropdown">&#xe609;</span></h1>
72 {{/if}} 72 {{/if}}
73 {{/if}} 73 {{/if}}
74 {{/ list}} 74 {{/ list}}