Authored by runner

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

@@ -201,6 +201,11 @@ function search(opt) { @@ -201,6 +201,11 @@ function search(opt) {
201 p_d: opt[i].id 201 p_d: opt[i].id
202 }; 202 };
203 break; 203 break;
  204 + case 'ageLevel':
  205 + ext = {
  206 + age_level: opt[i].id
  207 + };
  208 + break;
204 case 'breakSort': 209 case 'breakSort':
205 ext = { 210 ext = {
206 breakSort: opt[i].id 211 breakSort: opt[i].id
@@ -162,6 +162,11 @@ function search(opt, params, isScroll) { @@ -162,6 +162,11 @@ function search(opt, params, isScroll) {
162 gender: opt.id 162 gender: opt.id
163 }; 163 };
164 break; 164 break;
  165 + case 'ageLevel':
  166 + ext = {
  167 + age_level: opt.id
  168 + };
  169 + break;
165 case 'brand': 170 case 'brand':
166 ext = { 171 ext = {
167 brand: opt.id 172 brand: opt.id
@@ -235,10 +240,8 @@ function search(opt, params, isScroll) { @@ -235,10 +240,8 @@ function search(opt, params, isScroll) {
235 }); 240 });
236 } 241 }
237 242
238 -  
239 searching = true; 243 searching = true;
240 loading.showLoadingMask(); 244 loading.showLoadingMask();
241 -  
242 $.ajax({ 245 $.ajax({
243 type: 'GET', 246 type: 'GET',
244 url: '/product/sale/search', 247 url: '/product/sale/search',
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 } 12 }
13 13
14 .filter-body { 14 .filter-body {
15 - height: 880px; 15 + height: 1000px;
16 background: #fff; 16 background: #fff;
17 color: #000; 17 color: #000;
18 font-size: 28px; 18 font-size: 28px;
@@ -132,7 +132,7 @@ exports.processFilter = (list, options) => { @@ -132,7 +132,7 @@ exports.processFilter = (list, options) => {
132 subsName: 'brandName', 132 subsName: 'brandName',
133 firstSub: 0, 133 firstSub: 0,
134 dataType: 'brand', 134 dataType: 'brand',
135 - sortNum: '1' 135 + sortNum: '2'
136 }, 136 },
137 color: { 137 color: {
138 name: '所有颜色', 138 name: '所有颜色',
@@ -141,7 +141,7 @@ exports.processFilter = (list, options) => { @@ -141,7 +141,7 @@ exports.processFilter = (list, options) => {
141 subsName: 'colorName', 141 subsName: 'colorName',
142 firstSub: 0, 142 firstSub: 0,
143 dataType: 'color', 143 dataType: 'color',
144 - sortNum: '3' 144 + sortNum: '4'
145 }, 145 },
146 discount: { 146 discount: {
147 name: '所有商品', 147 name: '所有商品',
@@ -150,7 +150,7 @@ exports.processFilter = (list, options) => { @@ -150,7 +150,7 @@ exports.processFilter = (list, options) => {
150 subsName: 'name', 150 subsName: 'name',
151 firstSub: '0.1,0.9', 151 firstSub: '0.1,0.9',
152 dataType: 'p_d', 152 dataType: 'p_d',
153 - sortNum: '6' 153 + sortNum: '7'
154 }, 154 },
155 gender: { 155 gender: {
156 name: '所有性别', 156 name: '所有性别',
@@ -168,7 +168,7 @@ exports.processFilter = (list, options) => { @@ -168,7 +168,7 @@ exports.processFilter = (list, options) => {
168 subsName: 'categoryName', 168 subsName: 'categoryName',
169 firstSub: 0, 169 firstSub: 0,
170 dataType: 'sort', 170 dataType: 'sort',
171 - sortNum: '2' 171 + sortNum: '3'
172 }, 172 },
173 priceRange: { 173 priceRange: {
174 name: '所有价格', 174 name: '所有价格',
@@ -177,7 +177,7 @@ exports.processFilter = (list, options) => { @@ -177,7 +177,7 @@ exports.processFilter = (list, options) => {
177 subsName: 'flag', 177 subsName: 'flag',
178 firstSub: 0, 178 firstSub: 0,
179 dataType: 'price', 179 dataType: 'price',
180 - sortNum: '5' 180 + sortNum: '6'
181 }, 181 },
182 size: { 182 size: {
183 name: '所有尺码', 183 name: '所有尺码',
@@ -186,7 +186,16 @@ exports.processFilter = (list, options) => { @@ -186,7 +186,16 @@ exports.processFilter = (list, options) => {
186 subsName: 'sizeName', 186 subsName: 'sizeName',
187 firstSub: 0, 187 firstSub: 0,
188 dataType: 'size', 188 dataType: 'size',
189 - sortNum: '4' 189 + sortNum: '5'
  190 + },
  191 + ageLevel: {
  192 + name: '所有年龄',
  193 + title: '年龄',
  194 + dataId: 'id',
  195 + subsName: 'name',
  196 + firstSub: 0,
  197 + dataType: 'ageLevel',
  198 + sortNum: '1'
190 } 199 }
191 }; 200 };
192 201