feat(live): 新增竞价信息变更提示

- 在 liveStore 中添加 CHANGEPRICEINFO 类型的处理逻辑
- 在 i18n 文件中添加相应的多语言提示文本
- 当收到 CHANGEPRICEINFO 类型的消息时,显示警告提示信息
This commit is contained in:
xingyy 2025-03-03 14:33:59 +08:00
parent fb213caf28
commit 65190430fa
5 changed files with 13 additions and 5 deletions

View File

@ -113,7 +113,8 @@ export const liveStore = createGlobalState(() => {
const WS_TYPES = { const WS_TYPES = {
TIP: 'tip', TIP: 'tip',
STOP_ARTWORK: 'stopArtwork', STOP_ARTWORK: 'stopArtwork',
OVER: 'over' OVER: 'over',
CHANGEPRICEINFO : 'changePriceInfo'
} }
const TIP_TYPES = { const TIP_TYPES = {
@ -171,6 +172,9 @@ export const liveStore = createGlobalState(() => {
quoteStatus.value=false quoteStatus.value=false
message.success(createMessageConfig(t('live_room.text4'), '#18A058', t('live_room.text5'))) message.success(createMessageConfig(t('live_room.text4'), '#18A058', t('live_room.text5')))
}, },
[TIP_TYPES.CHANGEPRICEINFO]: ()=>{
message.warning(t('live_room.text11'))
},
[TIP_TYPES.ARTWORK_OVER]: () =>{ [TIP_TYPES.ARTWORK_OVER]: () =>{
quoteStatus.value=false quoteStatus.value=false
message.success(createMessageConfig( message.success(createMessageConfig(

View File

@ -230,7 +230,8 @@
"text7": "Please wait for the next lot", "text7": "Please wait for the next lot",
"text8": "Sorry, bidding unsuccessful", "text8": "Sorry, bidding unsuccessful",
"text9": "Bidding ended", "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": { "personal": {
"title": "Please fill in your personal information", "title": "Please fill in your personal information",

View File

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

View File

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

View File

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