|
@@ -16,7 +16,7 @@
|
|
|
<div class="list-item" v-for="(item, index) in currencyInfoList" :key="index">
|
|
|
|
|
|
<template v-if="props.page != 'top-up' || item.type != 1">
|
|
|
- <div class="item-title">
|
|
|
+ <div class="item-title" v-if="item.data.length">
|
|
|
<img class="icon"
|
|
|
:src="item.type == 1 ? require('../../assets/svg/icon-currency-category-01.svg') : require('../../assets/svg/icon-currency-category-02.svg')" />
|
|
|
{{ item.type == 1 ? 'Cash' : 'Crypto' }}
|
|
@@ -39,7 +39,7 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
<div class="no-data" v-if="show_empty">
|
|
|
- No balance
|
|
|
+ {{page != 'top-up' ? 'Not found' : 'No balance'}}
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -176,8 +176,11 @@ const getCurrencyInfoList = () => {
|
|
|
let resData = res.data;
|
|
|
if (resData && resData.currencyCategories.length) {
|
|
|
if (listReqParams.params.pageNum < 2) {
|
|
|
- currencyInfoList.value = res.data.currencyCategories;
|
|
|
+ currencyInfoList.value = res.data.currencyCategories;
|
|
|
emits('setCurrencyList', { list: currencyInfoList.value })
|
|
|
+ if(resData.currencyCategories.length == 1 && (!resData.currencyCategories[0]['data'] || !resData.currencyCategories[0]['data'].length)) {
|
|
|
+ show_empty.value = true
|
|
|
+ }
|
|
|
} else {
|
|
|
let data = currencyInfoList.value;
|
|
|
let currencyCategories = resData.currencyCategories;
|