Authored by 王水玲

店铺装修 搜索页入口修改

@@ -29,16 +29,16 @@ exports.init = function(num) { @@ -29,16 +29,16 @@ exports.init = function(num) {
29 shopEntryLen = $shopEntry.length; 29 shopEntryLen = $shopEntry.length;
30 30
31 if (shopEntryLen > 0) { 31 if (shopEntryLen > 0) {
32 - if(shopEntryLen % 3 === 1) {  
33 - $shopEntry.eq(shopEntryLen-1).css({ 32 + if (shopEntryLen % 3 === 1) {
  33 + $shopEntry.eq(shopEntryLen - 1).css({
34 width: '100%' 34 width: '100%'
35 }); 35 });
36 } else if (shopEntryLen % 3 === 2) { 36 } else if (shopEntryLen % 3 === 2) {
37 - $shopEntry.eq(shopEntryLen-1).css({ 37 + $shopEntry.eq(shopEntryLen - 1).css({
38 width: '49%' 38 width: '49%'
39 }); 39 });
40 40
41 - $shopEntry.eq(shopEntryLen-2).css({ 41 + $shopEntry.eq(shopEntryLen - 2).css({
42 width: '49%' 42 width: '49%'
43 }); 43 });
44 } 44 }