|
@@ -1,21 +1,18 @@
|
|
|
<template>
|
|
|
<div class="page-wrapper" ref="pageWrapperDom" @scroll="pageScroll">
|
|
|
<template v-if="isLogin && homeVisibility">
|
|
|
- <!-- <div class="nav-bar">
|
|
|
- <div class="item left">
|
|
|
- <img :src="require('@/assets/svg/icon-denet-logo.svg')" />
|
|
|
- DeNet
|
|
|
- </div>
|
|
|
- <div class="item right" @click="showTransactions">
|
|
|
- <img :src="require('@/assets/svg/icon-option-list.svg')" />
|
|
|
- Transactions
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
- <v-head :show_more="true" :show_state="'home'"></v-head>
|
|
|
+ <v-head :show_more="true" :show_state="'home'" :user_info="userInfo"></v-head>
|
|
|
<div class="content">
|
|
|
- <img :src="require('@/assets/svg/icon-money.svg')" class="icon-money" />
|
|
|
- <div class="msg" v-show="walletWithdrawConfig.withdrawUSDPaypalFeeDesc">
|
|
|
- ({{ walletWithdrawConfig.withdrawUSDPaypalFeeDesc }})</div>
|
|
|
+ <div class="balance">
|
|
|
+ <div class="wallet">
|
|
|
+ <img :src="require('@/assets/svg/icon-home-wallet.svg')" />
|
|
|
+ <font>Balance Valuation</font>
|
|
|
+ </div>
|
|
|
+ <div class="bill" @click="showTransactions">
|
|
|
+ <red-dot class="red-dot" v-if="unReadCountWallet > 0"></red-dot>
|
|
|
+ <img :src="require('@/assets/svg/icon-home-bill.svg')" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="amount">${{ canWithdrawBalance }}</div>
|
|
|
<div class="area-btn">
|
|
|
<div class="withdraw-btn" @click="clickWithdraw">Withdraw</div>
|
|
@@ -272,9 +269,18 @@ withdraw_info.paypal.wallet_withdraw_config = walletWithdrawConfig
|
|
|
let moreTabList = ref([
|
|
|
{
|
|
|
icon: require("@/assets/svg/icon-twitter.svg"),
|
|
|
- label: "Twitter contact",
|
|
|
+ label: "Twitter",
|
|
|
href: 'https://twitter.com/denet2022'
|
|
|
}
|
|
|
+ // , {
|
|
|
+ // icon: require("@/assets/svg/icon-discord.svg"),
|
|
|
+ // label: "Discord",
|
|
|
+ // href: 'https://discord.gg/wZSz9p8ddG'
|
|
|
+ // }, {
|
|
|
+ // icon: require("@/assets/svg/icon-telegram.svg"),
|
|
|
+ // label: "Telegram",
|
|
|
+ // href: 'https://t.me/denetpro'
|
|
|
+ // }
|
|
|
]);
|
|
|
|
|
|
let tabList = ref([
|
|
@@ -307,7 +313,9 @@ onMounted(() => {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- setMessageCount();
|
|
|
+ setTimeout(() => {
|
|
|
+ setMessageCount();
|
|
|
+ }, 2000)
|
|
|
});
|
|
|
|
|
|
onBeforeUnmount(() => {
|
|
@@ -471,11 +479,11 @@ const withdrawBack = () => {
|
|
|
};
|
|
|
|
|
|
|
|
|
-// const showTransactions = () => {
|
|
|
+const showTransactions = () => {
|
|
|
// // homeVisibility.value = false;
|
|
|
// // transactionsVisibility.value = true;
|
|
|
-// router.push('/transactions')
|
|
|
-// };
|
|
|
+ router.push('/transactions')
|
|
|
+};
|
|
|
|
|
|
// const clickWithdraw = () => {
|
|
|
// if (isRequestWithdrawBalance.value) {
|
|
@@ -622,24 +630,56 @@ body {
|
|
|
}
|
|
|
|
|
|
.content {
|
|
|
- margin-top: 30px;
|
|
|
- text-align: center;
|
|
|
+ padding: 20px;
|
|
|
+ background-color: #F0F8FE;
|
|
|
|
|
|
.icon-money {
|
|
|
width: 70px;
|
|
|
height: 70px;
|
|
|
}
|
|
|
|
|
|
+ .balance {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ .wallet {
|
|
|
+ img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ margin-right: 6px;
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
+ font {
|
|
|
+ color: #000;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .bill {
|
|
|
+ position: relative;
|
|
|
+ img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .red-dot {
|
|
|
+ position: absolute;
|
|
|
+ right: 0px;
|
|
|
+ top: -1px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.amount {
|
|
|
- margin-top: 16px;
|
|
|
+ margin-top: 20px;
|
|
|
margin-bottom: 20px;
|
|
|
font-weight: 700;
|
|
|
- font-size: 42px;
|
|
|
+ font-size: 36px;
|
|
|
+ line-height: 43px;
|
|
|
}
|
|
|
|
|
|
.area-btn {
|
|
|
display: flex;
|
|
|
- justify-content: center;
|
|
|
+ justify-content: space-between;
|
|
|
font-weight: 600;
|
|
|
font-size: 15px;
|
|
|
|
|
@@ -649,18 +689,18 @@ body {
|
|
|
color: #fff;
|
|
|
background: #1D9BF0;
|
|
|
border-radius: 100px;
|
|
|
- width: 110px;
|
|
|
+ width: 165px;
|
|
|
height: 38px;
|
|
|
+ text-align: center;
|
|
|
margin-left: 8px;
|
|
|
line-height: 36px;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
.withdraw-btn {
|
|
|
background: rgba(56, 154, 255, 0.01);
|
|
|
border: 1px solid #1D9BF0;
|
|
|
box-sizing: border-box;
|
|
|
- width: 110px;
|
|
|
+ width: 165px;
|
|
|
font-size: 15px;
|
|
|
height: 38px;
|
|
|
text-align: center;
|
|
@@ -682,7 +722,6 @@ body {
|
|
|
.tab-bar {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- margin-top: 25px;
|
|
|
position: sticky;
|
|
|
position: -webkit-sticky;
|
|
|
top: 0px;
|
|
@@ -696,7 +735,7 @@ body {
|
|
|
justify-content: center;
|
|
|
padding: 17px 0;
|
|
|
box-sizing: border-box;
|
|
|
- border-bottom: 1px solid #d1d1d1;
|
|
|
+ border-bottom: 1px solid #ECECEC;
|
|
|
cursor: pointer;
|
|
|
|
|
|
.icon {
|
|
@@ -892,7 +931,7 @@ body {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- border-bottom: 1px solid #d1d1d1;
|
|
|
+ border-bottom: 1px solid #ECECEC;
|
|
|
box-sizing: border-box;
|
|
|
padding-right: 16px;
|
|
|
|