| | |
| | | </div> |
| | | <div class="list-wrap px-8 pt-8"> |
| | | <div class="tab-wrap flex px-4 mt-5"> |
| | | <div class="tab-item mr-4" :class="[selectIndexActive === index ? 'active' : '']" |
| | | v-for="(item, index) in tabListTwo" :key="index" @click="changeCoin(index)">{{ item }}</div> |
| | | <!-- <div class="tab-item mr-4" :class="[selectIndexActive === index ? 'active' : '']" |
| | | v-for="(item, index) in tabListTwo" :key="index" @click="changeCoin(index)">{{ item }}</div> --> |
| | | </div> |
| | | <van-pull-refresh v-model="refreshing" @refresh="onRefresh" :pulling-text="t('下拉即可刷新')" |
| | | :loosing-text="t('释放即可刷新')" :loading-text="t('加载中...')"> |
| | |
| | | const router = useRouter() |
| | | const route = useRoute() |
| | | let active = ref(0) |
| | | let selectIndexActive = ref(0) |
| | | let selectIndexActive = ref(1) |
| | | const list = ref([]); |
| | | const loading = ref(false); |
| | | const refreshing = ref(false) |
| | |
| | | selectIndexActive.value = 0 |
| | | } |
| | | } |
| | | changeCoin(1) |
| | | }) |
| | | let currentTab = ref({ |
| | | name: t('recharge'), |
| | | direction: 'recharge' |
| | | }) |
| | | // const tabListTwo = [t('foreignCurrency'), t('digitalCurrency')] |
| | | const tabListTwo = [t('foreignCurrency')] |
| | | const tabListTwo = ['', t('digitalCurrency')] |
| | | // const tabListTwo = [ t('digitalCurrency')] |
| | | // const tabListTwo = [t('foreignCurrency')] |
| | | const page = ref(1) |
| | | const onClickTab = () => { |
| | | currentTab.value = tabList.value[active.value] |