From d3fd4b0ab851bab89c30c199e27245f7f45f1c0e Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 08 十一月 2025 08:01:12 +0800
Subject: [PATCH] feat:实现了微信上传图片
---
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