From 7235cbde16ad4ac19f19d9a9a96e12d71a23ebce Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期六, 16 五月 2026 13:42:00 +0800
Subject: [PATCH] 优化报修表单,新增验收人字段,调整状态管理,提升报修详情展示效果。

---
 src/plugins/modal.ts |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/plugins/modal.ts b/src/plugins/modal.ts
index 4a97dd3..46d622c 100644
--- a/src/plugins/modal.ts
+++ b/src/plugins/modal.ts
@@ -14,9 +14,22 @@
    * @param content 娑堟伅鍐呭
    */
   msgError(content: string): void {
+    const text = (content ?? '').toString()
+    // showToast 鍦ㄥ绔粡甯镐細瀵� title 鍋氬崟琛�/闀垮害鎴柇锛涢暱鏂囨鐢� showModal 淇濊瘉瀹屾暣灞曠ず
+    const shouldUseModal = text.length > 16 || text.includes('\n')
+    if (shouldUseModal) {
+      uni.showModal({
+        title: '閿欒',
+        content: text,
+        showCancel: false,
+        confirmText: '鐭ラ亾浜�',
+      })
+      return
+    }
     uni.showToast({
-      title: content,
-      icon: 'error'
+      title: text,
+      icon: 'none',
+      duration: 2500,
     })
   },
   /**

--
Gitblit v1.9.3