...
|
...
|
@@ -29,16 +29,16 @@ exports.init = function(num) { |
|
|
shopEntryLen = $shopEntry.length;
|
|
|
|
|
|
if (shopEntryLen > 0) {
|
|
|
if(shopEntryLen % 3 === 1) {
|
|
|
$shopEntry.eq(shopEntryLen-1).css({
|
|
|
if (shopEntryLen % 3 === 1) {
|
|
|
$shopEntry.eq(shopEntryLen - 1).css({
|
|
|
width: '100%'
|
|
|
});
|
|
|
} else if (shopEntryLen % 3 === 2) {
|
|
|
$shopEntry.eq(shopEntryLen-1).css({
|
|
|
$shopEntry.eq(shopEntryLen - 1).css({
|
|
|
width: '49%'
|
|
|
});
|
|
|
|
|
|
$shopEntry.eq(shopEntryLen-2).css({
|
|
|
$shopEntry.eq(shopEntryLen - 2).css({
|
|
|
width: '49%'
|
|
|
});
|
|
|
}
|
...
|
...
|
|