From 65190430fa3afe8d52e47062080a403404adad1c Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 3 Mar 2025 14:33:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(live):=20=E6=96=B0=E5=A2=9E=E7=AB=9E?= =?UTF-8?q?=E4=BB=B7=E4=BF=A1=E6=81=AF=E5=8F=98=E6=9B=B4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 liveStore 中添加 CHANGEPRICEINFO 类型的处理逻辑 - 在 i18n 文件中添加相应的多语言提示文本 - 当收到 CHANGEPRICEINFO 类型的消息时,显示警告提示信息 --- app/stores/live/index.js | 6 +++++- i18n/locales/en-US.json | 3 ++- i18n/locales/ja-JP.json | 3 ++- i18n/locales/zh-CN.json | 3 ++- i18n/locales/zh-TW.json | 3 ++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/stores/live/index.js b/app/stores/live/index.js index 131b580..7e0b7d6 100644 --- a/app/stores/live/index.js +++ b/app/stores/live/index.js @@ -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 = { @@ -171,6 +172,9 @@ export const liveStore = createGlobalState(() => { quoteStatus.value=false 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]: () =>{ quoteStatus.value=false message.success(createMessageConfig( diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index a1c81ee..f4f4173 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -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", diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json index 2309fb0..228837a 100644 --- a/i18n/locales/ja-JP.json +++ b/i18n/locales/ja-JP.json @@ -230,7 +230,8 @@ "text7": "次のロットをお待ちください", "text8": "申し訳ありません、落札失敗", "text9": "入札終了", - "text10": "入札終了、ご参加ありがとうございました" + "text10": "入札終了、ご参加ありがとうございました", + "text11": "入札テーブルが更新されました" }, "personal": { "title": "個人情報を入力してください", diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 4bdc15a..50d0bb0 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -230,7 +230,8 @@ "text7": "请期待下个拍品", "text8": "很遗憾,竞拍失败", "text9": "竞拍结束", - "text10": "竞拍结束,谢谢参与" + "text10": "竞拍结束,谢谢参与", + "text11": "竞价表已更新" }, "personal": { "title": "请填写个人相关信息", diff --git a/i18n/locales/zh-TW.json b/i18n/locales/zh-TW.json index 7d7509d..bf34b19 100644 --- a/i18n/locales/zh-TW.json +++ b/i18n/locales/zh-TW.json @@ -281,7 +281,8 @@ "text7": "請期待下個拍品", "text8": "很遺憾,競拍失敗", "text9": "競拍結束", - "text10": "競拍結束,謝謝參與" + "text10": "競拍結束,謝謝參與", + "text11": "競價表已更新" }, "personal": { "title": "請填寫個人相關信息",