|
@@ -10,7 +10,7 @@ import getZkSyncBridge from '../utils/getZkSyncBridge.js'
|
|
//@ts-ignore
|
|
//@ts-ignore
|
|
import getLayerData from '../utils/getLayerData.js'
|
|
import getLayerData from '../utils/getLayerData.js'
|
|
import * as echarts from 'echarts';
|
|
import * as echarts from 'echarts';
|
|
-import {onMounted, ref} from 'vue';
|
|
|
|
|
|
+import {onMounted, ref,onBeforeUnmount} from 'vue';
|
|
import aptosAv from '../project/layer0/aptosAv.png'
|
|
import aptosAv from '../project/layer0/aptosAv.png'
|
|
import aptosBg from '../project/layer0/aptosBg.png'
|
|
import aptosBg from '../project/layer0/aptosBg.png'
|
|
import stargateAv from '../project/layer0/stargateAv.png'
|
|
import stargateAv from '../project/layer0/stargateAv.png'
|
|
@@ -26,10 +26,11 @@ import omniBg from '../project/layer0/omniBg.png'
|
|
import omniteAv from '../project/layer0/omniteAv.png'
|
|
import omniteAv from '../project/layer0/omniteAv.png'
|
|
import omniteBg from '../project/layer0/omniteBg.png'
|
|
import omniteBg from '../project/layer0/omniteBg.png'
|
|
import router from "@/router";
|
|
import router from "@/router";
|
|
-import Nav from '@/components/Nav.vue'
|
|
|
|
import Footer from '@/components/Footer.vue'
|
|
import Footer from '@/components/Footer.vue'
|
|
import {useSunStore,useAddressStore} from "@/stores/sun";
|
|
import {useSunStore,useAddressStore} from "@/stores/sun";
|
|
-
|
|
|
|
|
|
+import eventBus from "@/libs/eventBus";
|
|
|
|
+import { inject } from "vue";
|
|
|
|
+const refresh = inject("reload");
|
|
type EChartsOption = echarts.EChartsOption;
|
|
type EChartsOption = echarts.EChartsOption;
|
|
|
|
|
|
const sunStore = useSunStore()
|
|
const sunStore = useSunStore()
|
|
@@ -38,8 +39,11 @@ const addressStore = useAddressStore()
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
checkWalletAddress()
|
|
checkWalletAddress()
|
|
listeningDisconnect()
|
|
listeningDisconnect()
|
|
|
|
+ refresh()
|
|
|
|
+})
|
|
|
|
+onBeforeUnmount(() => {
|
|
|
|
+ eventBus.off('layerConnectWallet',connectWallet)
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
|
|
type dataArrType = {
|
|
type dataArrType = {
|
|
name: string,
|
|
name: string,
|
|
@@ -167,6 +171,8 @@ const connectWallet = async () => {
|
|
// await addChain()
|
|
// await addChain()
|
|
// await switchEthereumChain()
|
|
// await switchEthereumChain()
|
|
}
|
|
}
|
|
|
|
+eventBus.on('layerConnectWallet',connectWallet)
|
|
|
|
+
|
|
//获取主网交易次数
|
|
//获取主网交易次数
|
|
let mainTx = ref(0)
|
|
let mainTx = ref(0)
|
|
const getMainTx = () => {
|
|
const getMainTx = () => {
|
|
@@ -353,9 +359,9 @@ const toEmail = (email:string) => {
|
|
<div class="mainBG">
|
|
<div class="mainBG">
|
|
<img src="../assets/navBg.png" alt="BG">
|
|
<img src="../assets/navBg.png" alt="BG">
|
|
</div>
|
|
</div>
|
|
- <Nav @doSth="connectWallet"/>
|
|
|
|
|
|
+<!-- <Nav @doSth="connectWallet"/>-->
|
|
<div class="chainBox">
|
|
<div class="chainBox">
|
|
- <div class="item" @click="toPage('/zksync')">
|
|
|
|
|
|
+ <div class="item" @click="toPage('/')">
|
|
zkSync
|
|
zkSync
|
|
</div>
|
|
</div>
|
|
<div class="item" >
|
|
<div class="item" >
|
|
@@ -531,6 +537,7 @@ const toEmail = (email:string) => {
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="dividingLine"/>
|
|
<Footer/>
|
|
<Footer/>
|
|
</main>
|
|
</main>
|
|
</template>
|
|
</template>
|
|
@@ -540,7 +547,7 @@ const toEmail = (email:string) => {
|
|
width: 1440px;
|
|
width: 1440px;
|
|
height: 100%;
|
|
height: 100%;
|
|
margin: auto;
|
|
margin: auto;
|
|
- border: 1px solid var(--vt-c-border);
|
|
|
|
|
|
+ //border: 1px solid var(--vt-c-border);
|
|
border-top: none;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
border-bottom: none;
|
|
padding: 30px 60px 0;
|
|
padding: 30px 60px 0;
|
|
@@ -553,110 +560,6 @@ const toEmail = (email:string) => {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
- .topBar {
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- padding: 0 60px 25px;
|
|
|
|
- margin: 0 -60px;
|
|
|
|
- border-bottom: 1px solid var(--vt-c-border);
|
|
|
|
- .left{
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- .nav{
|
|
|
|
- font-family: HONOR Sans CN;
|
|
|
|
- font-size: 21px;
|
|
|
|
- font-style: normal;
|
|
|
|
- font-weight: 700;
|
|
|
|
- line-height: normal;
|
|
|
|
- padding: 0 60px;
|
|
|
|
- height: 100px;
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- margin-bottom: -25px;
|
|
|
|
- margin-top: -30px;
|
|
|
|
- border-right: 1px solid var(--vt-c-border);
|
|
|
|
- position: relative;
|
|
|
|
- .line{
|
|
|
|
- position: absolute;
|
|
|
|
- width: 100%;
|
|
|
|
- height: 10px;
|
|
|
|
- background: var(--color-text);
|
|
|
|
- left: 0;
|
|
|
|
- bottom: 0;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .navOne{
|
|
|
|
- font-family: HONOR Sans CN;
|
|
|
|
- font-size: 21px;
|
|
|
|
- font-style: normal;
|
|
|
|
- font-weight: 700;
|
|
|
|
- line-height: normal;
|
|
|
|
- padding: 0 60px;
|
|
|
|
- height: 100px;
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- margin-bottom: -25px;
|
|
|
|
- margin-top: -30px;
|
|
|
|
- border-right: 1px solid var(--vt-c-border);
|
|
|
|
- margin-left: 57px;
|
|
|
|
- border-left: 1px solid var(--vt-c-border);
|
|
|
|
- position: relative;
|
|
|
|
- .line{
|
|
|
|
- position: absolute;
|
|
|
|
- width: 100%;
|
|
|
|
- height: 10px;
|
|
|
|
- background: var(--color-text);
|
|
|
|
- left: 0;
|
|
|
|
- bottom: 0;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .mid{
|
|
|
|
- font-weight: 400;
|
|
|
|
- font-size: 15px;
|
|
|
|
- line-height: 21px;
|
|
|
|
- font-family: 'Chillax';
|
|
|
|
- text-transform: uppercase;
|
|
|
|
- }
|
|
|
|
- .right {
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- gap:40px;
|
|
|
|
- cursor: pointer;
|
|
|
|
-
|
|
|
|
- .button {
|
|
|
|
- width: fit-content;
|
|
|
|
- height: 44px;
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- gap: 6px;
|
|
|
|
- background: #010101;
|
|
|
|
- padding: 0 24px;
|
|
|
|
- font-weight: 500;
|
|
|
|
- font-size: 15px;
|
|
|
|
- line-height: 20px;
|
|
|
|
- color: #FFFFFF;
|
|
|
|
- cursor: pointer;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .connect {
|
|
|
|
- width: fit-content;
|
|
|
|
- height: 44px;
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- gap: 6px;
|
|
|
|
- background: #FFFFFF;
|
|
|
|
- border: 1px solid #010101;
|
|
|
|
- border-radius: 30px;
|
|
|
|
- padding: 0 24px;
|
|
|
|
- font-weight: 500;
|
|
|
|
- font-size: 15px;
|
|
|
|
- line-height: 20px;
|
|
|
|
- color: #010101;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
.chainBox {
|
|
.chainBox {
|
|
width: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
display: flex;
|
|
@@ -664,7 +567,7 @@ const toEmail = (email:string) => {
|
|
margin: 0 -60px;
|
|
margin: 0 -60px;
|
|
.item{
|
|
.item{
|
|
padding: 24px 65px;
|
|
padding: 24px 65px;
|
|
- border-right: 1px solid var(--vt-c-border);
|
|
|
|
|
|
+ //border-right: 1px solid var(--vt-c-border);
|
|
font-family: HONOR Sans CN;
|
|
font-family: HONOR Sans CN;
|
|
font-size: 15px;
|
|
font-size: 15px;
|
|
font-style: normal;
|
|
font-style: normal;
|
|
@@ -687,10 +590,12 @@ const toEmail = (email:string) => {
|
|
.dataBox {
|
|
.dataBox {
|
|
height: 365px;
|
|
height: 365px;
|
|
margin: 0 -60px;
|
|
margin: 0 -60px;
|
|
- border-bottom: 1px solid var(--vt-c-border);
|
|
|
|
- border-top: 1px solid var(--vt-c-border);
|
|
|
|
|
|
+ //border-bottom: 1px solid var(--vt-c-border);
|
|
|
|
+ //border-top: 1px solid var(--vt-c-border);
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
+ border: 1px solid var(--vt-c-border);
|
|
|
|
+
|
|
.left {
|
|
.left {
|
|
width: 845px;
|
|
width: 845px;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -776,7 +681,8 @@ const toEmail = (email:string) => {
|
|
height: 585px;
|
|
height: 585px;
|
|
margin: 0px -60px;
|
|
margin: 0px -60px;
|
|
padding: 20px 0;
|
|
padding: 20px 0;
|
|
- border-bottom: 1px solid var(--vt-c-border);
|
|
|
|
|
|
+ //border-bottom: 1px solid var(--vt-c-border);
|
|
|
|
+ border: 1px solid var(--vt-c-border);
|
|
|
|
|
|
.item {
|
|
.item {
|
|
height: 256px;
|
|
height: 256px;
|
|
@@ -839,6 +745,14 @@ const toEmail = (email:string) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .dividingLine {
|
|
|
|
+ width: 100vw;
|
|
|
|
+ height: 1px;
|
|
|
|
+ border-bottom: 1px solid var(--vt-c-border);
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
::-webkit-scrollbar {
|