|
@@ -40,7 +40,7 @@
|
|
|
@click="clickListItem(item, index)">
|
|
|
|
|
|
<red-dot class="red-dots"
|
|
|
- v-if="item.unReadMsgCount > 0"></red-dot>
|
|
|
+ v-if="item.unReadMsgCount > 0 && isReadMsg"></red-dot>
|
|
|
|
|
|
<div class="img-wrapper">
|
|
|
<!-- 收到红包 -->
|
|
@@ -88,7 +88,7 @@
|
|
|
</template>
|
|
|
<!-- 已完成 -->
|
|
|
<template v-else-if="item.status == 1">
|
|
|
- <span class="blance">{{ item.amount }}</span>
|
|
|
+ <span class="blance" :title="item.amount">{{ getBit(item.amount) }}</span>
|
|
|
<span class="coin-type">{{ item.currencySymbol || '' }}</span>
|
|
|
<img :src="item.currencyIconPath" alt="">
|
|
|
</template>
|
|
@@ -99,7 +99,7 @@
|
|
|
</template>
|
|
|
<!-- 发出去的 -->
|
|
|
<template v-else-if="item.type == 2">
|
|
|
- <span class="blance">-{{ item.amount }}</span>
|
|
|
+ <span class="blance" :title="'-'+item.amount">-{{ item.amount }}</span>
|
|
|
<span class="coin-type">{{ item.currencySymbol || '' }}</span>
|
|
|
<img :src="item.currencyIconPath" alt="">
|
|
|
</template>
|
|
@@ -204,7 +204,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, onMounted, inject, onBeforeUnmount } from "vue";
|
|
|
+import { ref, onMounted, inject } from "vue";
|
|
|
|
|
|
import popupLogin from "@/view/popup/components/login.vue";
|
|
|
import popupTransactions from "@/view/components/popup-transactions";
|
|
@@ -221,7 +221,10 @@ import { terminatedLuckdrop } from "@/http/redPacket";
|
|
|
import { setBadgeInfo, hideBadge } from "@/logic/background/twitter";
|
|
|
import Report from "@/log-center/log";
|
|
|
import router from "@/router/popup.js";
|
|
|
-import VHead from '@/view/popup/components/head.vue'
|
|
|
+import { getBit } from "@/uilts/help";
|
|
|
+
|
|
|
+import VHead from '@/view/popup/components/head.vue';
|
|
|
+
|
|
|
|
|
|
let withdraw_info = inject('withdraw_info')
|
|
|
withdraw_info.paypal = {}
|
|
@@ -251,6 +254,7 @@ let giveList = ref([]);
|
|
|
|
|
|
// 钱包未读数
|
|
|
let unReadCountWallet = ref(0);
|
|
|
+let isReadMsg = ref(true);
|
|
|
|
|
|
let giveReqParams = {
|
|
|
params: {
|
|
@@ -271,12 +275,17 @@ withdraw_info.paypal.wallet_withdraw_config = walletWithdrawConfig
|
|
|
|
|
|
|
|
|
let moreTabList = ref([
|
|
|
+ {
|
|
|
+ icon: require("@/assets/svg/icon-website.svg"),
|
|
|
+ label: "Website",
|
|
|
+ href: 'https://denet.me'
|
|
|
+ },
|
|
|
{
|
|
|
icon: require("@/assets/svg/icon-twitter.svg"),
|
|
|
label: "Twitter",
|
|
|
href: 'https://twitter.com/denet2022'
|
|
|
- }
|
|
|
- , {
|
|
|
+ },
|
|
|
+ {
|
|
|
icon: require("@/assets/svg/icon-discord.svg"),
|
|
|
label: "Discord",
|
|
|
href: 'https://discord.gg/wZSz9p8ddG'
|
|
@@ -320,19 +329,22 @@ onMounted(() => {
|
|
|
});
|
|
|
setMessageCount();
|
|
|
setTimeout(() => {
|
|
|
- setMessageCount();
|
|
|
- }, 1600)
|
|
|
+ isReadMsg.value = false;
|
|
|
+ readAllMsg({msgType: 1}, () => {
|
|
|
+ setMessageCount();
|
|
|
+ });
|
|
|
+ }, 2000);
|
|
|
});
|
|
|
|
|
|
-onBeforeUnmount(() => {
|
|
|
+const readAllMsg = ({msgType}, cb) => {
|
|
|
readAllMsgByType({
|
|
|
params: {
|
|
|
- msgType: 1
|
|
|
+ msgType
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- setMessageCount();
|
|
|
+ cb && cb();
|
|
|
})
|
|
|
-});
|
|
|
+};
|
|
|
|
|
|
const setMessageCount = () => {
|
|
|
getAllMessageInfo({params: {
|
|
@@ -488,6 +500,8 @@ const withdrawBack = () => {
|
|
|
const showTransactions = () => {
|
|
|
// // homeVisibility.value = false;
|
|
|
// // transactionsVisibility.value = true;
|
|
|
+
|
|
|
+ readAllMsg({msgType: 1});
|
|
|
router.push('/transactions')
|
|
|
};
|
|
|
|
|
@@ -816,6 +830,8 @@ body {
|
|
|
font-weight: 500;
|
|
|
font-size: 14px;
|
|
|
margin-bottom: 5px;
|
|
|
+ max-width: 132px;
|
|
|
+ word-break: break-all;
|
|
|
}
|
|
|
|
|
|
.time {
|
|
@@ -841,7 +857,7 @@ body {
|
|
|
.blance {
|
|
|
margin-left: 3px;
|
|
|
display: inline-block;
|
|
|
- max-width: 68px;
|
|
|
+ max-width: 80px;
|
|
|
word-break: break-all;
|
|
|
line-height: 18px;
|
|
|
color: #E29A2E;
|