|
@@ -87,8 +87,8 @@
|
|
|
</div>
|
|
|
<div class="tree">
|
|
|
<div class="tree-lf">
|
|
|
- <div class="tree-lf-icon" v-for="(item,i) in 10" :class="i == 0?'active-bg':''">
|
|
|
- <svg-icon style="width: 32px; height: 32px;" name="acc" />
|
|
|
+ <div class="tree-lf-icon" v-for="(item,i) in networkList" :class="i == 0?'active-bg':''">
|
|
|
+ <van-image lazy-load class="network-item-icon" :src="item.icon" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tree-ri">
|
|
@@ -177,17 +177,16 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { useRouter } from 'vue-router'
|
|
|
- import { useSystemStore } from "@/stores/modules/systemStore";
|
|
|
- import { useWalletStore } from "@/stores/modules/walletStore";
|
|
|
- const systemStore = useSystemStore();
|
|
|
+ import { getNetwork } from '@/api/path/login.api'
|
|
|
+ import { useWalletStore } from "@/stores/modules/walletStore";
|
|
|
const router = useRouter();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
const walletStore = useWalletStore();
|
|
|
+
|
|
|
+
|
|
|
const isShow = ref(true);
|
|
|
const showWallet = ref(false);
|
|
|
const showHistory = ref(false);
|
|
|
+ const networkList = ref([]);
|
|
|
const type = ref('');
|
|
|
const goToPage = (url) => {
|
|
|
router.push(url)
|
|
@@ -205,9 +204,14 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ const initNetwork = async () => {
|
|
|
+ const { data } = await getNetwork({})
|
|
|
+ networkList.value = data
|
|
|
+ }
|
|
|
onMounted(async ()=>{
|
|
|
- // const aa = await walletStore.getBalance();
|
|
|
- // console.log("---",aa)
|
|
|
+ initNetwork();
|
|
|
+ const aa = await walletStore.getBalance();
|
|
|
+ console.log("---",aa)
|
|
|
})
|
|
|
</script>
|
|
|
|