|
@@ -291,7 +291,23 @@ const branchSearchHistory = (params) => { |
|
@@ -291,7 +291,23 @@ const branchSearchHistory = (params) => { |
291
|
|
291
|
|
292
|
}, { code: 200 }).then(result => {
|
292
|
}, { code: 200 }).then(result => {
|
293
|
|
293
|
|
294
|
- return result;
|
294
|
+ let resu = {
|
|
|
295
|
+ data: {
|
|
|
296
|
+ list: [
|
|
|
297
|
+ {
|
|
|
298
|
+ name: '111',
|
|
|
299
|
+ searchTime: '111'
|
|
|
300
|
+ },
|
|
|
301
|
+ {
|
|
|
302
|
+ name: '22',
|
|
|
303
|
+ searchTime: '22'
|
|
|
304
|
+ }
|
|
|
305
|
+ ]
|
|
|
306
|
+ }
|
|
|
307
|
+ };
|
|
|
308
|
+
|
|
|
309
|
+ // console.log(resu);
|
|
|
310
|
+ return resu;
|
295
|
|
311
|
|
296
|
});
|
312
|
});
|
297
|
};
|
313
|
};
|
|
@@ -332,9 +348,8 @@ const branchSearch = (params) => { |
|
@@ -332,9 +348,8 @@ const branchSearch = (params) => { |
332
|
showDownloadApp: true,
|
348
|
showDownloadApp: true,
|
333
|
pageFooter: true,
|
349
|
pageFooter: true,
|
334
|
hot: [],
|
350
|
hot: [],
|
335
|
- brandList: [
|
|
|
336
|
-
|
|
|
337
|
- ]
|
351
|
+ history: [],
|
|
|
352
|
+ brandList: []
|
338
|
};
|
353
|
};
|
339
|
|
354
|
|
340
|
if (result && result[0] && result[0].data) {
|
355
|
if (result && result[0] && result[0].data) {
|
|
@@ -347,25 +362,21 @@ const branchSearch = (params) => { |
|
@@ -347,25 +362,21 @@ const branchSearch = (params) => { |
347
|
|
362
|
|
348
|
let build = [];
|
363
|
let build = [];
|
349
|
|
364
|
|
350
|
- if (key != '') {
|
|
|
351
|
-
|
|
|
352
|
- brandList[key].forEach(row => {
|
|
|
353
|
-
|
|
|
354
|
- build.push({
|
|
|
355
|
- name: row.brand_name,
|
|
|
356
|
- isHot: row.is_hot === 'Y' ? true : false,
|
|
|
357
|
- isNew: row.is_show_new === 'Y' ? true : false,
|
|
|
358
|
- url: helpers.urlFormat('', null, row.brand_domain),
|
|
|
359
|
- brandId: row.id,
|
|
|
360
|
- brandDomain: row.brand_domain,
|
|
|
361
|
- searchName: row.brand_name_en + row.brand_name_cn
|
|
|
362
|
- });
|
|
|
363
|
-
|
|
|
364
|
- obj[key] = build;
|
365
|
+ brandList[key].forEach(row => {
|
365
|
|
366
|
|
|
|
367
|
+ build.push({
|
|
|
368
|
+ name: row.brand_name,
|
|
|
369
|
+ isHot: row.is_hot === 'Y' ? true : false,
|
|
|
370
|
+ isNew: row.is_show_new === 'Y' ? true : false,
|
|
|
371
|
+ url: helpers.urlFormat('', null, row.brand_domain),
|
|
|
372
|
+ brandId: row.id,
|
|
|
373
|
+ brandDomain: row.brand_domain,
|
|
|
374
|
+ searchName: row.brand_name_en + row.brand_name_cn
|
366
|
});
|
375
|
});
|
367
|
|
376
|
|
368
|
- }
|
377
|
+ obj[key] = build;
|
|
|
378
|
+
|
|
|
379
|
+ });
|
369
|
|
380
|
|
370
|
}
|
381
|
}
|
371
|
|
382
|
|
|
@@ -389,6 +400,14 @@ const branchSearch = (params) => { |
|
@@ -389,6 +400,14 @@ const branchSearch = (params) => { |
389
|
|
400
|
|
390
|
}
|
401
|
}
|
391
|
|
402
|
|
|
|
403
|
+ if (result && result[1] && result[1].data) {
|
|
|
404
|
+
|
|
|
405
|
+ let hisList = result[1].data;
|
|
|
406
|
+
|
|
|
407
|
+ resu.history.push(hisList);
|
|
|
408
|
+
|
|
|
409
|
+ }
|
|
|
410
|
+
|
392
|
return resu;
|
411
|
return resu;
|
393
|
|
412
|
|
394
|
});
|
413
|
});
|