Authored by 王水玲

店铺装修搜索入口修改

@@ -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,12 +26,19 @@ @@ -26,12 +26,19 @@
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 {
@@ -41,6 +48,12 @@ @@ -41,6 +48,12 @@
41 48
42 a { 49 a {
43 color: #999; 50 color: #999;
  51 + width: 100%;
  52 + height: 18px;
  53 + display: block;
  54 + white-space: nowrap;
  55 + text-overflow: ellipsis;
  56 + overflow: hidden;
44 } 57 }
45 } 58 }
46 59