shish 6 years ago
parent
commit
fa8450ed14
1 changed files with 2 additions and 0 deletions
  1. 2 0
      biz/goods/services/GoodsCategoryService.php

+ 2 - 0
biz/goods/services/GoodsCategoryService.php

@@ -51,6 +51,7 @@ class GoodsCategoryService extends BaseService
 		
 		//每个分类取的商品数
 		$getNum = [6, 2, 4];
+		$showRowNum = [2, 1, 2];
 		
 		foreach ($category as $key => $val) {
 			$id = $val['id'];
@@ -67,6 +68,7 @@ class GoodsCategoryService extends BaseService
 				}
 			}
 			$category[$key]['goodsInfoList'] = $info;
+			$category[$key]['showRow'] = isset($showRowNum[$key]) ? $showRowNum[$key] : 2;
 		}
 		return $category;
 	}