|
@@ -33,10 +33,24 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bottom">
|
|
|
- <div class="btn deposit-btn"
|
|
|
+ <template v-if="showSendBtn">
|
|
|
+ <div class="btn send-btn" @click="showSendGiveawayDialog">
|
|
|
+ <img :src="require('@/assets/svg/icon-send-giveaway.svg')" />
|
|
|
+ Send Giveaway
|
|
|
+ </div>
|
|
|
+ <div class="btn-wrapper">
|
|
|
+ <div class="button "
|
|
|
+ v-if="currencyInfo.currencyCode != 'USD'"
|
|
|
+ @click="clickDeposit">Deposit</div>
|
|
|
+ <div class="button" @click="clickWithdraw">Withdrawal</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div class="btn deposit-btn"
|
|
|
v-if="currencyInfo.currencyCode != 'USD'"
|
|
|
@click="clickDeposit">Deposit</div>
|
|
|
- <div class="btn withdrawal-btn" @click="clickWithdraw">Withdrawal</div>
|
|
|
+ <div class="btn withdrawal-btn" @click="clickWithdraw">Withdrawal</div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
|
|
|
<template v-if="showCurrencySelect">
|
|
@@ -73,6 +87,8 @@ let showCurrencySelect = ref(false);
|
|
|
|
|
|
let currencyOpertionType = '';
|
|
|
|
|
|
+let showSendBtn = ref(true);
|
|
|
+
|
|
|
|
|
|
|
|
|
const selectCurrency = (params) => {
|
|
@@ -172,6 +188,13 @@ const onRefresh = () => {
|
|
|
})
|
|
|
};
|
|
|
|
|
|
+const showSendGiveawayDialog = () => {
|
|
|
+ chrome.runtime.sendMessage({
|
|
|
+ actionType: "POPUP_SHOW_DENET_PUBLISH_DIALOG",
|
|
|
+ data: { }
|
|
|
+ }, () => { });
|
|
|
+};
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
let {params = '{}'} = router.currentRoute.value.query;
|
|
|
|
|
@@ -186,6 +209,11 @@ onMounted(() => {
|
|
|
totalUsdEstimateBalance
|
|
|
};
|
|
|
console.log(currencyInfo.value )
|
|
|
+ }
|
|
|
+ if(window.location.pathname.indexOf('/home.html') > -1) {
|
|
|
+ showSendBtn.value = false;
|
|
|
+ } else {
|
|
|
+ showSendBtn.value = true;
|
|
|
}
|
|
|
})
|
|
|
</script>
|
|
@@ -274,6 +302,41 @@ onMounted(() => {
|
|
|
box-sizing: border-box;
|
|
|
color: #1d9bf0;
|
|
|
}
|
|
|
+
|
|
|
+ .send-btn {
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 18px;
|
|
|
+ margin-bottom: 18px;
|
|
|
+ background: #1d9bf0;
|
|
|
+ color: #fff;
|
|
|
+ img {
|
|
|
+ width: 19px;
|
|
|
+ height: 19px;
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-wrapper {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .button {
|
|
|
+ width: 163px;
|
|
|
+ height: 50px;
|
|
|
+ border: 1px solid #d7e8f4;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 16px;
|
|
|
+ border-radius: 100px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ color: #1D9BF0;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|