From b7879ffdad3e9e213f7ef4d55161a86661c8b365 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 1 Jul 2024 17:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/myorder/myorder.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/myorder/myorder.vue b/packages/myorder/myorder.vue index a75f3a3..4beace4 100644 --- a/packages/myorder/myorder.vue +++ b/packages/myorder/myorder.vue @@ -43,7 +43,7 @@ - 物流查询 + 物流查询 修改 通知收件人 @@ -122,17 +122,22 @@ // 复制文本到剪贴板 copyText(text) { uni.setClipboardData({ - data: '123', + data: text, success: function() { console.log('复制成功'); // 可以添加用户友好的提示,例如使用uni.showToast提示复制成功 uni.showToast({ - title: '复制成功', - icon: 'success', + title: '单号复制成功', + icon: 'none', duration: 2000 }); }, - fail: function(e) { + fail: function(e) { + uni.showToast({ + title: '单号复制失败', + icon: 'none', + duration: 2000 + }); console.log('复制失败', e); // 可以添加错误处理或用户友好的提示 }