Compare commits

...

3 Commits

Author SHA1 Message Date
xingyy
51b3a212e8 refactor(app): 优化直播间价格变更提示逻辑
- 移除 TIP_TYPES.CHANGEPRICEINFO 相关的处理逻辑
- 在 WebSocket 消息处理中添加 CHANGEPRICEINFO 类型的处理
- 优化代码结构,提高可维护性
2025-03-03 14:56:04 +08:00
xingyy
65190430fa feat(live): 新增竞价信息变更提示
- 在 liveStore 中添加 CHANGEPRICEINFO 类型的处理逻辑
- 在 i18n 文件中添加相应的多语言提示文本
- 当收到 CHANGEPRICEINFO 类型的消息时,显示警告提示信息
2025-03-03 14:33:59 +08:00
xingyy
fb213caf28 feat(app): 优化页面切换动画并添加登录页缓存
- 在 App.vue 中添加路由中间件,控制页面切换动画方向
- 在 login 页面添加 keepalive 属性,提高性能和用户体验
2025-03-03 11:48:19 +08:00
7 changed files with 16 additions and 8 deletions

View File

@ -11,7 +11,7 @@ useHead({
],
})
const route = useRoute()
//
const router = useRouter()
const slideDirection = ref('slide-left')
@ -37,7 +37,6 @@ if (to.path==='/'){
//
provide('slideDirection', slideDirection)
</script>
<template>
@ -50,7 +49,7 @@ provide('slideDirection', slideDirection)
<NuxtLayout>
<NuxtPage :transition="{
name: slideDirection
}"/>
}" keepalive />
</NuxtLayout>
</VanConfigProvider>
</client-only>

View File

@ -11,6 +11,7 @@ const router = useRouter();
const route = useRoute();
const { locale } = useI18n()
definePageMeta({
keepalive: true,
i18n: 'login.title'
})
const loadingRef=ref({

View File

@ -113,7 +113,8 @@ export const liveStore = createGlobalState(() => {
const WS_TYPES = {
TIP: 'tip',
STOP_ARTWORK: 'stopArtwork',
OVER: 'over'
OVER: 'over',
CHANGEPRICEINFO : 'changePriceInfo'
}
const TIP_TYPES = {
@ -224,6 +225,9 @@ export const liveStore = createGlobalState(() => {
}
))
break
case WS_TYPES.CHANGEPRICEINFO:
message.warning(t('live_room.text11'))
break
}
})

View File

@ -230,7 +230,8 @@
"text7": "Please wait for the next lot",
"text8": "Sorry, bidding unsuccessful",
"text9": "Bidding ended",
"text10": "Bidding ended, thank you for participating"
"text10": "Bidding ended, thank you for participating",
"text11": "The bidding table has been updated"
},
"personal": {
"title": "Please fill in your personal information",

View File

@ -230,7 +230,8 @@
"text7": "次のロットをお待ちください",
"text8": "申し訳ありません、落札失敗",
"text9": "入札終了",
"text10": "入札終了、ご参加ありがとうございました"
"text10": "入札終了、ご参加ありがとうございました",
"text11": "入札テーブルが更新されました"
},
"personal": {
"title": "個人情報を入力してください",

View File

@ -230,7 +230,8 @@
"text7": "请期待下个拍品",
"text8": "很遗憾,竞拍失败",
"text9": "竞拍结束",
"text10": "竞拍结束,谢谢参与"
"text10": "竞拍结束,谢谢参与",
"text11": "竞价表已更新"
},
"personal": {
"title": "请填写个人相关信息",

View File

@ -281,7 +281,8 @@
"text7": "請期待下個拍品",
"text8": "很遺憾,競拍失敗",
"text9": "競拍結束",
"text10": "競拍結束,謝謝參與"
"text10": "競拍結束,謝謝參與",
"text11": "競價表已更新"
},
"personal": {
"title": "請填寫個人相關信息",