Merge branch 'release/4.4' of http://git.dev.yoho.cn/web/yohobuy into release/4.4
Showing
10 changed files
with
39 additions
and
2 deletions
@@ -2646,6 +2646,10 @@ exports.init = function(num) { | @@ -2646,6 +2646,10 @@ exports.init = function(num) { | ||
2646 | $shopEntry.eq(shopEntryLen - 1).css({ | 2646 | $shopEntry.eq(shopEntryLen - 1).css({ |
2647 | width: '100%' | 2647 | width: '100%' |
2648 | }); | 2648 | }); |
2649 | + | ||
2650 | + $shopEntry.eq(shopEntryLen - 1).find('.name').css({ | ||
2651 | + width: '600px' | ||
2652 | + }); | ||
2649 | } else if (shopEntryLen % 3 === 2) { | 2653 | } else if (shopEntryLen % 3 === 2) { |
2650 | $shopEntry.eq(shopEntryLen - 1).css({ | 2654 | $shopEntry.eq(shopEntryLen - 1).css({ |
2651 | width: '49%' | 2655 | width: '49%' |
@@ -2654,6 +2658,14 @@ exports.init = function(num) { | @@ -2654,6 +2658,14 @@ exports.init = function(num) { | ||
2654 | $shopEntry.eq(shopEntryLen - 2).css({ | 2658 | $shopEntry.eq(shopEntryLen - 2).css({ |
2655 | width: '49%' | 2659 | width: '49%' |
2656 | }); | 2660 | }); |
2661 | + | ||
2662 | + $shopEntry.eq(shopEntryLen - 1).find('.name').css({ | ||
2663 | + width: '230px' | ||
2664 | + }); | ||
2665 | + | ||
2666 | + $shopEntry.eq(shopEntryLen - 2).find('.name').css({ | ||
2667 | + width: '230px' | ||
2668 | + }); | ||
2657 | } | 2669 | } |
2658 | 2670 | ||
2659 | $('.shop-entry:nth-child(3n+1)').css({ | 2671 | $('.shop-entry:nth-child(3n+1)').css({ |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.

12.6 KB
@@ -33,6 +33,10 @@ exports.init = function(num) { | @@ -33,6 +33,10 @@ exports.init = function(num) { | ||
33 | $shopEntry.eq(shopEntryLen - 1).css({ | 33 | $shopEntry.eq(shopEntryLen - 1).css({ |
34 | width: '100%' | 34 | width: '100%' |
35 | }); | 35 | }); |
36 | + | ||
37 | + $shopEntry.eq(shopEntryLen - 1).find('.name').css({ | ||
38 | + width: '600px' | ||
39 | + }); | ||
36 | } else if (shopEntryLen % 3 === 2) { | 40 | } else if (shopEntryLen % 3 === 2) { |
37 | $shopEntry.eq(shopEntryLen - 1).css({ | 41 | $shopEntry.eq(shopEntryLen - 1).css({ |
38 | width: '49%' | 42 | width: '49%' |
@@ -41,6 +45,14 @@ exports.init = function(num) { | @@ -41,6 +45,14 @@ exports.init = function(num) { | ||
41 | $shopEntry.eq(shopEntryLen - 2).css({ | 45 | $shopEntry.eq(shopEntryLen - 2).css({ |
42 | width: '49%' | 46 | width: '49%' |
43 | }); | 47 | }); |
48 | + | ||
49 | + $shopEntry.eq(shopEntryLen - 1).find('.name').css({ | ||
50 | + width: '230px' | ||
51 | + }); | ||
52 | + | ||
53 | + $shopEntry.eq(shopEntryLen - 2).find('.name').css({ | ||
54 | + width: '230px' | ||
55 | + }); | ||
44 | } | 56 | } |
45 | 57 | ||
46 | $('.shop-entry:nth-child(3n+1)').css({ | 58 | $('.shop-entry:nth-child(3n+1)').css({ |
@@ -26,18 +26,31 @@ | @@ -26,18 +26,31 @@ | ||
26 | 26 | ||
27 | .name { | 27 | .name { |
28 | margin-left: 10px; | 28 | margin-left: 10px; |
29 | + width: 75px; | ||
29 | } | 30 | } |
30 | 31 | ||
31 | .shop-name { | 32 | .shop-name { |
32 | font-size: 16px; | 33 | font-size: 16px; |
33 | color: #222; | 34 | color: #222; |
34 | line-height: 26px; | 35 | line-height: 26px; |
36 | + width: 100%; | ||
37 | + height: 26px; | ||
38 | + display: block; | ||
39 | + white-space: nowrap; | ||
40 | + text-overflow: ellipsis; | ||
41 | + overflow: hidden; | ||
35 | } | 42 | } |
36 | 43 | ||
37 | .sorts { | 44 | .sorts { |
38 | color: #999; | 45 | color: #999; |
39 | font-size: 12px; | 46 | font-size: 12px; |
40 | line-height: 18px; | 47 | line-height: 18px; |
48 | + width: 100%; | ||
49 | + height: 18px; | ||
50 | + display: block; | ||
51 | + white-space: nowrap; | ||
52 | + text-overflow: ellipsis; | ||
53 | + overflow: hidden; | ||
41 | 54 | ||
42 | a { | 55 | a { |
43 | color: #999; | 56 | color: #999; |
@@ -78,8 +78,8 @@ class ItemModel | @@ -78,8 +78,8 @@ class ItemModel | ||
78 | $goodsInfo['vipPrice'] = self::getVipDataByProductBaseInfo($baseInfo, $vipLevel, $uid); | 78 | $goodsInfo['vipPrice'] = self::getVipDataByProductBaseInfo($baseInfo, $vipLevel, $uid); |
79 | //促销活动banner | 79 | //促销活动banner |
80 | $goodsInfo['activity'] = self::getActivityDataByProductBaseInfo($baseInfo); | 80 | $goodsInfo['activity'] = self::getActivityDataByProductBaseInfo($baseInfo); |
81 | - | ||
82 | - if (isset($baseInfo['productPriceBo']['yohoCoinNum'])) { | 81 | + |
82 | + if (isset($baseInfo['productPriceBo']['yohoCoinNum']) && $baseInfo['productPriceBo']['yohoCoinNum'] !== 0) { | ||
83 | array_push($goodsInfo['activity'], | 83 | array_push($goodsInfo['activity'], |
84 | array('type' => '返YOHO币', 'des' => '每件返 ' . $baseInfo['productPriceBo']['yohoCoinNum'] . '个 YOHO币') | 84 | array('type' => '返YOHO币', 'des' => '每件返 ' . $baseInfo['productPriceBo']['yohoCoinNum'] . '个 YOHO币') |
85 | ); | 85 | ); |
-
Please register or login to post a comment