+
![]()
@@ -101,12 +73,14 @@
{{ item.country }}
-
PK时间(本地时间): {{ formatTime(item.pkTime * 1000) }}
+
PK时间(本地时间): {{ formatTime(item.pkTime * 1000) }} · 北京时间: {{
+ TimestampttoBeijingTime(item.pkTime * 1000) }}
金币: {{ item.coin }}K
-

+
场次: {{ item.pkNumber }}场
@@ -125,13 +99,10 @@
-
-
+
+
{{ msg.payload.text }}
@@ -155,11 +126,7 @@
发送
-
+
@@ -170,13 +137,7 @@
-
+
@@ -185,13 +146,8 @@
暂无可用主播,请先在"我的"页面添加主播
-
+
{{ anchor.anchorId }}
@@ -201,7 +157,8 @@
{{ anchor.coin }}K
-
PK时间: {{ formatTime(anchor.pkTime * 1000) }}
+
PK时间(本地时间): {{ formatTime(anchor.pkTime * 1000) }} · 北京时间: {{
+ TimestampttoBeijingTime(anchor.pkTime * 1000) }}
@@ -222,7 +179,7 @@
import { ref, onMounted, onUnmounted, onActivated, nextTick } from 'vue'
import { getPkList, getUserInfo, getAnchorListById, createPkRecord } from '@/api/pk-mini'
import { getCountryNamesArray } from '@/utils/pk-mini/countryUtil'
-import { TimestamptolocalTime } from '@/utils/pk-mini/timeConversion'
+import { TimestamptolocalTime, TimestampttoBeijingTime } from '@/utils/pk-mini/timeConversion'
import { getMainUserData } from '@/utils/pk-mini/storage'
import { isGoEasyEnabled } from '@/config/pk-mini'
import {
@@ -405,7 +362,7 @@ async function handleItemClick(item) {
// 隐藏后滚到底部再显示,避免视觉跳动
scrollToBottomHidden()
// 标记消息已读
- goEasyMessageRead({ id: String(item.senderId) }).catch(() => {})
+ goEasyMessageRead({ id: String(item.senderId) }).catch(() => { })
} else {
messagesList.value = []
ElMessage.warning('聊天功能暂时不可用(GoEasy 订阅未续费)')
@@ -463,14 +420,14 @@ async function sendMessage() {
scrollToBottom()
// 发送消息后标记已读,清除导航栏红点
const senderId = String(selectedItem.value.senderId)
- goEasyMessageRead({ id: senderId }).catch(() => {})
+ goEasyMessageRead({ id: senderId }).catch(() => { })
unreadStore.decrease(1)
} catch (e) {
console.error('发送消息失败', e)
- if(e =='Error: id can not be the same as your id'){
+ if (e == 'Error: id can not be the same as your id') {
ElMessage.error('不能给自己发消息')
- }else{
- ElMessage.error('发送失败')
+ } else {
+ ElMessage.error('发送失败')
}
}
}
@@ -741,7 +698,8 @@ onUnmounted(() => {
gap: 8px;
}
-.search-btn, .reset-btn {
+.search-btn,
+.reset-btn {
width: 80px;
height: 30px;
border-radius: 5px;
@@ -765,7 +723,8 @@ onUnmounted(() => {
color: #2563eb; // blue-600
}
-.search-btn:hover, .reset-btn:hover {
+.search-btn:hover,
+.reset-btn:hover {
transform: scale(1.05);
opacity: 0.9;
}
@@ -1013,7 +972,7 @@ onUnmounted(() => {
.control-btn:hover {
background: white;
- box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.control-btn img {
@@ -1064,8 +1023,8 @@ onUnmounted(() => {
.time-box.is-hidden {
opacity: 0;
- visibility: hidden; // 仍然占位,但看不见
- pointer-events: none; // 不能点击
+ visibility: hidden; // 仍然占位,但看不见
+ pointer-events: none; // 不能点击
}
// 邀请弹窗样式