From 4648a3bee638e9a99d2d80b66f8833b261a2db91 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期四, 25 九月 2025 22:39:24 +0800
Subject: [PATCH] feat:设计 app ui

---
 app/plugins/modal.js |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/app/plugins/modal.js b/app/plugins/modal.js
index 99b2215..fa5b4a1 100644
--- a/app/plugins/modal.js
+++ b/app/plugins/modal.js
@@ -48,6 +48,26 @@
       })
     })
   },
+  // 杈撳叆妗�
+  prompt(content, defaultValue) {
+    return new Promise((resolve, reject) => {
+      uni.showModal({
+        title: '绯荤粺鎻愮ず',
+        content: content,
+        editable: true,
+        placeholderText: defaultValue || '',
+        cancelText: '鍙栨秷',
+        confirmText: '纭畾',
+        success: function(res) {
+          if (res.confirm) {
+            resolve(res.content)
+          } else {
+            reject()
+          }
+        }
+      })
+    })
+  },
   // 鎻愮ず淇℃伅
   showToast(option) {
     if (typeof option === "object") {

--
Gitblit v1.9.1