|
@@ -186,7 +186,18 @@ const searchCurrency = debounce(function (searchWords) {
|
|
|
}).then(res => {
|
|
|
if (res.code == 0) {
|
|
|
if (res.data.currencyCategories && res.data.currencyCategories.length) {
|
|
|
- let list = res.data.currencyCategories[0];
|
|
|
+ let currencyCategories = res.data.currencyCategories;
|
|
|
+
|
|
|
+ let arr = [];
|
|
|
+ for(let i = 0; i < currencyCategories.length; i++) {
|
|
|
+ let item = currencyCategories[i];
|
|
|
+ arr = arr.concat(item.data);
|
|
|
+ }
|
|
|
+
|
|
|
+ currencyCategories[0]['data'] = arr;
|
|
|
+
|
|
|
+ let list = currencyCategories[0];
|
|
|
+
|
|
|
if (list && list.data && list.data.length) {
|
|
|
searchList.value = list.data;
|
|
|
} else {
|