Authored by runner

Merge branch 'feature/filter-age' into release/4.8

@@ -85,12 +85,39 @@ class ListProcess @@ -85,12 +85,39 @@ class ListProcess
85 return $filters; 85 return $filters;
86 } 86 }
87 87
  88 + private static function ageLevel($data)
  89 + {
  90 + $result = array(
  91 + 'title' => '年龄',
  92 + 'name' => '所有年龄',
  93 + 'sort_col' => 1,
  94 + 'dataType' => 'ageLevel',
  95 + 'subs' => array(
  96 + array(
  97 + 'chosed' => true,
  98 + 'dataId' => 0,
  99 + 'name' => '所有年龄'
  100 + )
  101 + )
  102 + );
  103 +
  104 + foreach ($data as $key => $one) {
  105 + $discount = array();
  106 + $discount['dataId'] = $key;
  107 + $discount['name'] = $one['name'];
  108 +
  109 + $result['subs'][] = $discount;
  110 + }
  111 +
  112 + return $result;
  113 + }
  114 +
88 private static function brand($data) 115 private static function brand($data)
89 { 116 {
90 $result = array( 117 $result = array(
91 'title' => '品牌', 118 'title' => '品牌',
92 'name' => '所有品牌', 119 'name' => '所有品牌',
93 - 'sort_col' => 1, 120 + 'sort_col' => 2,
94 'dataType' => 'brand', 121 'dataType' => 'brand',
95 'subs' => array( 122 'subs' => array(
96 array( 123 array(
@@ -120,7 +147,7 @@ class ListProcess @@ -120,7 +147,7 @@ class ListProcess
120 $result = array( 147 $result = array(
121 'title' => '颜色', 148 'title' => '颜色',
122 'name' => '所有颜色', 149 'name' => '所有颜色',
123 - 'sort_col' => 3, 150 + 'sort_col' => 4,
124 'dataType' => 'color', 151 'dataType' => 'color',
125 'subs' => array( 152 'subs' => array(
126 array( 153 array(
@@ -147,7 +174,7 @@ class ListProcess @@ -147,7 +174,7 @@ class ListProcess
147 $result = array( 174 $result = array(
148 'title' => '折扣', 175 'title' => '折扣',
149 'name' => '所有商品', 176 'name' => '所有商品',
150 - 'sort_col' => 6, 177 + 'sort_col' => 7,
151 'dataType' => 'discount', 178 'dataType' => 'discount',
152 'subs' => array( 179 'subs' => array(
153 array( 180 array(
@@ -209,7 +236,7 @@ class ListProcess @@ -209,7 +236,7 @@ class ListProcess
209 $result = array( 236 $result = array(
210 'title' => '品类', 237 'title' => '品类',
211 'name' => '所有品类', 238 'name' => '所有品类',
212 - 'sort_col' => 2, 239 + 'sort_col' => 3,
213 'dataType' => 'sort', 240 'dataType' => 'sort',
214 'subs' => array( 241 'subs' => array(
215 array( 242 array(
@@ -253,7 +280,7 @@ class ListProcess @@ -253,7 +280,7 @@ class ListProcess
253 $result = array( 280 $result = array(
254 'title' => '价格', 281 'title' => '价格',
255 'name' => '所有价格', 282 'name' => '所有价格',
256 - 'sort_col' => 5, 283 + 'sort_col' => 6,
257 'dataType' => 'price', 284 'dataType' => 'price',
258 'subs' => array( 285 'subs' => array(
259 array( 286 array(
@@ -281,7 +308,7 @@ class ListProcess @@ -281,7 +308,7 @@ class ListProcess
281 $result = array( 308 $result = array(
282 'title' => '尺码', 309 'title' => '尺码',
283 'name' => '所有尺码', 310 'name' => '所有尺码',
284 - 'sort_col' => 4, 311 + 'sort_col' => 5,
285 'dataType' => 'size', 312 'dataType' => 'size',
286 'subs' => array( 313 'subs' => array(
287 array( 314 array(
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 color: #000; 15 color: #000;
16 cursor: pointer; 16 cursor: pointer;
17 font-size: 14PX; 17 font-size: 14PX;
18 - height: 440PX; 18 + height: 500PX;
19 19
20 .classify { 20 .classify {
21 width: 50%; 21 width: 50%;