|
@@ -66,7 +66,7 @@ import { ref, onMounted, inject, onBeforeUnmount } from "vue";
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import Report from "@/log-center/log";
|
|
|
import { getCurrencyInfoBySymbol, syncChainTokenRechargeRecord } from "@/http/publishApi";
|
|
|
-import { setChromeStorage, chromeExtensionUrl } from "@/uilts/chromeExtension"
|
|
|
+import { setChromeStoragetoExtension, chromeExtensionUrl } from "@/uilts/chromeExtension"
|
|
|
import messageCenter from "@/uilts/messageCenter";
|
|
|
import MESSAGE_ENUM from "@/uilts/messageCenter/messageEnum";
|
|
|
import VHead from '@/components/v-head.vue'
|
|
@@ -90,6 +90,7 @@ let showDepositInput = ref(false);
|
|
|
let reqCalcIng = false;
|
|
|
let depositDesc = ref('');
|
|
|
let finalAmountData = ref({});
|
|
|
+let iframeId = 'de-nav-wallet-index-page';
|
|
|
|
|
|
const selectCurrency = (params) => {
|
|
|
showCurrencySelect.value = false;
|
|
@@ -245,17 +246,20 @@ const showSendGiveawayDialog = (params = {}) => {
|
|
|
} else {
|
|
|
setLocalSelectCurrencyInfo(params)
|
|
|
setTimeout(() => {
|
|
|
- // chrome.runtime.sendMessage({
|
|
|
- // actionType: "POPUP_SHOW_DENET_PUBLISH_DIALOG",
|
|
|
- // data: {}
|
|
|
- // });
|
|
|
+ messageCenter.send({
|
|
|
+ info: {
|
|
|
+ actionType: MESSAGE_ENUM.POPUP_SHOW_DENET_PUBLISH_DIALOG,
|
|
|
+ iframeId: iframeId
|
|
|
+ },
|
|
|
+ data: {}
|
|
|
+ })
|
|
|
}, 600)
|
|
|
currencyOpertionType = '';
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const setLocalSelectCurrencyInfo = (params = {}) => {
|
|
|
- setChromeStorage({ selectCurrencyInfo: JSON.stringify(params) })
|
|
|
+ setChromeStoragetoExtension({ selectCurrencyInfo: JSON.stringify(params) })
|
|
|
}
|
|
|
|
|
|
const cancelDeposit = () => {
|
|
@@ -274,10 +278,10 @@ const confirmDeposit = () => {
|
|
|
amountValue: finalAmountData.value.finalAmountValue
|
|
|
};
|
|
|
let guideUrl = chromeExtensionUrl + ('iframe/ach-cashier.html');
|
|
|
- setChromeStorage({ achPayInfo: JSON.stringify(achPayInfo) });
|
|
|
+ setChromeStoragetoExtension({ achPayInfo: JSON.stringify(achPayInfo) });
|
|
|
let str = window.location.hash + '&refresh=true';
|
|
|
let path = str.substring(1, str.length);
|
|
|
- setChromeStorage({
|
|
|
+ setChromeStoragetoExtension({
|
|
|
achPayData: JSON.stringify({
|
|
|
form: 'popupPage',
|
|
|
path
|
|
@@ -316,7 +320,10 @@ const onDepositAmountInput = async (params = {}) => {
|
|
|
|
|
|
const clickBack = () => {
|
|
|
messageCenter.send({
|
|
|
- actionType: MESSAGE_ENUM.IFRAME_SHOW_FOOTER_MENU,
|
|
|
+ info: {
|
|
|
+ actionType: MESSAGE_ENUM.IFRAME_SHOW_FOOTER_MENU,
|
|
|
+ iframeId: iframeId
|
|
|
+ },
|
|
|
data: {
|
|
|
showMenu: true,
|
|
|
}
|