|
@@ -142,8 +142,6 @@ const withdrawHandle = (_params) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-let top_up_info = inject('top_up_info');
|
|
|
-
|
|
|
const clickDeposit = () => {
|
|
|
Report.reportLog({
|
|
|
pageSource: Report.pageSource.denetHomePage,
|
|
@@ -182,17 +180,15 @@ const setDepositDesc = async () => {
|
|
|
}
|
|
|
|
|
|
const depositHandle = (_params) => {
|
|
|
- top_up_info.token = _params.currencyName || ''
|
|
|
- top_up_info.token_chain = _params.tokenChain
|
|
|
- top_up_info.token_symbol = _params.tokenSymbol || ''
|
|
|
- top_up_info.currency_code = _params.currencyCode
|
|
|
- top_up_info.icon_token = _params.iconPath || ''
|
|
|
- top_up_info.icon_net = require('@/assets/svg/icon-BNB.svg')
|
|
|
- top_up_info.chainInfo = {
|
|
|
- ..._params.chainInfo
|
|
|
- };
|
|
|
-
|
|
|
- router.push('/top-up/info');
|
|
|
+ messageCenter.send({
|
|
|
+ info: {
|
|
|
+ actionType: MESSAGE_ENUM.IFRAME_DEPOSIT,
|
|
|
+ iframeId: iframeId,
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ params: _params
|
|
|
+ }
|
|
|
+ })
|
|
|
};
|
|
|
|
|
|
|
|
@@ -325,7 +321,6 @@ const onMessage = () => {
|
|
|
|
|
|
onMounted(() => {
|
|
|
let { params = '{}' } = router.currentRoute.value.query;
|
|
|
-
|
|
|
let { currencies = [], totalBalance = 0, totalUsdEstimateBalance = 0 } = JSON.parse(params);
|
|
|
|
|
|
currenciesData.value = currencies;
|
|
@@ -348,10 +343,6 @@ onMounted(() => {
|
|
|
onMessage();
|
|
|
})
|
|
|
|
|
|
-onBeforeUnmount(() => {
|
|
|
- // chrome.runtime.onMessage.removeListener(msgListener);
|
|
|
-})
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
|