From 84d028a664b6472eb439a9c0ad3636156685f9be Mon Sep 17 00:00:00 2001 From: liuxi <357439530@qq.com> Date: Sun, 23 Feb 2025 08:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/filters/index.js | 17 ++++++++++++++++- .../components/LayoutContentNew.vue | 4 ++-- .../mediation-page/components/MediationRoom.vue | 2 +- .../components/VideoInvitation.vue | 6 +++--- .../mediation-page/components/cassWrit.vue | 3 ++- .../components/singleJointlyPopover.vue | 6 +++++- 6 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/filters/index.js b/src/filters/index.js index 1a79b94..3bca97a 100644 --- a/src/filters/index.js +++ b/src/filters/index.js @@ -137,6 +137,20 @@ let formaDate = (value, fmt) => { return fmt; } +let secondsToMinutes = (value) => { + + if(value == 0 || value == ''|| value == null){return ''} + const minutes = Math.floor(value / 60); + const seconds = value % 60; + if(minutes > 0) + { + return `${minutes} 分钟 ${seconds} 秒`; + } + else{ + return `${seconds} 秒`; + } +} + export default { sexIdcardFilter, IDcardHide, @@ -146,5 +160,6 @@ export default { numToFixed, trim, upDigit, - formaDate + formaDate, + secondsToMinutes }; \ No newline at end of file diff --git a/src/pages/mediation-page/components/LayoutContentNew.vue b/src/pages/mediation-page/components/LayoutContentNew.vue index 8f44b1c..6f32b3d 100644 --- a/src/pages/mediation-page/components/LayoutContentNew.vue +++ b/src/pages/mediation-page/components/LayoutContentNew.vue @@ -297,8 +297,8 @@