From e3c889c58a3c4966910d5883ac675fcde31eb4b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com>
Date: Mon, 1 Jun 2026 13:55:39 +0800
Subject: [PATCH] 111
---
src/lang/cn.ts | 1 +
src/lang/en.ts | 1 +
src/tool/util.js | 36 ++++++++++++++++++-
.../BecomeSeller/sellerApply.vue | 12 +++++--
.../BecomeSeller/sellerReview.vue | 6 ++--
.../BrandProfile/image-clip.vue | 5 +++
.../SellerDashboard/BrandProfile/index.vue | 4 +--
src/views/SellerDashboard/MyOrders/index.vue | 20 ++++++-----
src/views/SellerDashboard/Settings/index.vue | 7 ++--
9 files changed, 70 insertions(+), 22 deletions(-)
diff --git a/src/lang/cn.ts b/src/lang/cn.ts
index 82861d77..e4adbdcf 100644
--- a/src/lang/cn.ts
+++ b/src/lang/cn.ts
@@ -1812,6 +1812,7 @@ export default {
price: "价格",
buyerUsername: "买家用户名",
date: "日期",
+ dateTimeFormat: 'YYYY-MM-DD
HH:mm',
// 设置
notifications: "通知",
notificationsTitle: "新订单通知",
diff --git a/src/lang/en.ts b/src/lang/en.ts
index 83a56961..edde67ac 100644
--- a/src/lang/en.ts
+++ b/src/lang/en.ts
@@ -1863,6 +1863,7 @@ export default {
price: "Price",
buyerUsername: "Buyer Username",
date: "Date",
+ dateTimeFormat: 'SM D, YYYY
h:mm A',
// 设置
notifications: "Notifications",
notificationsTitle: "New order notification",
diff --git a/src/tool/util.js b/src/tool/util.js
index 0b82f3b9..1f9caf97 100644
--- a/src/tool/util.js
+++ b/src/tool/util.js
@@ -708,4 +708,38 @@ export {
UrlToFile,
sketchToMask,
isValidUrl
-}
\ No newline at end of file
+}
+
+
+/** 时间格式化-自定义格式
+ * @param value 时间对象|时间戳|时间字符串
+ * @param format 格式化字符串,默认值为 'YYYY-MM-DD HH:mm:ss'
+ * @returns 格式化后的时间字符串
+ */
+export function FormatDate(value, format = 'YYYY-MM-DD HH:mm:ss') {
+ const d = new Date(value);
+ if (!d || isNaN(d.getTime())) return 'Invalid Date';
+ const pad = (n) => String(n).padStart(2, '0');
+ const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
+ const tokens = {
+ YYYY: d.getFullYear(),
+ YY: String(d.getFullYear()).slice(-2),
+ MM: pad(d.getMonth() + 1),
+ M: d.getMonth() + 1,
+ SM: months[d.getMonth()],
+ DD: pad(d.getDate()),
+ D: d.getDate(),
+ HH: pad(d.getHours()),
+ H: d.getHours(),
+ hh: pad(d.getHours() % 12 || 12),
+ h: d.getHours() % 12 || 12,
+ mm: pad(d.getMinutes()),
+ m: d.getMinutes(),
+ ss: pad(d.getSeconds()),
+ s: d.getSeconds(),
+ A: d.getHours() < 12 ? 'AM' : 'PM',
+ a: d.getHours() < 12 ? 'am' : 'pm'
+ }
+ const reg = new RegExp(Object.keys(tokens).join('|'), 'g')
+ return format.replace(reg, match => tokens[match]);
+}
diff --git a/src/views/SellerDashboard/BecomeSeller/sellerApply.vue b/src/views/SellerDashboard/BecomeSeller/sellerApply.vue
index c5c6e0f1..80bbffc4 100644
--- a/src/views/SellerDashboard/BecomeSeller/sellerApply.vue
+++ b/src/views/SellerDashboard/BecomeSeller/sellerApply.vue
@@ -168,12 +168,18 @@
> .session {
flex: 1;
overflow: hidden;
+ display: flex;
+ flex-direction: column;
+ padding: 0.1rem;
> .content {
- max-height: 100%;
- padding: 2.4rem;
- border: 1px solid #b0b0b0;
+ padding: 0.4rem 1.5rem;
+ border: 2rem solid transparent;
+ border-right-width: 0.4rem;
+ border-left-width: 0.4rem;
border-radius: 2.4rem;
overflow-y: auto;
+ box-shadow: 0 0 0 0.1rem #b0b0b0;
+ // margin: 0.2rem;
> .title {
font-size: 2.2rem;
diff --git a/src/views/SellerDashboard/BecomeSeller/sellerReview.vue b/src/views/SellerDashboard/BecomeSeller/sellerReview.vue
index 01fdf176..25df474e 100644
--- a/src/views/SellerDashboard/BecomeSeller/sellerReview.vue
+++ b/src/views/SellerDashboard/BecomeSeller/sellerReview.vue
@@ -19,7 +19,7 @@
-