From e5d12d6e5768666098f57919a9850979bb34ecf7 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 1 Jul 2024 16:32:26 +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 | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/myorder/myorder.vue b/packages/myorder/myorder.vue index 86a5a7b..48d100e 100644 --- a/packages/myorder/myorder.vue +++ b/packages/myorder/myorder.vue @@ -37,7 +37,8 @@ - + + 物流查询 修改 通知收件人 @@ -109,9 +110,28 @@ }, edit(item){ uni.setStorageSync('vuex_update_card',item) - uni.redirectTo({ + uni.navigateTo({ url:'/packages/order/order?hasCard=true&type=edit' }) + }, + // 复制文本到剪贴板 + copyText(text) { + uni.setClipboardData({ + data: '123', + success: function () { + console.log('复制成功'); + // 可以添加用户友好的提示,例如使用uni.showToast提示复制成功 + uni.showToast({ + title: '复制成功', + icon: 'success', + duration: 2000 + }); + }, + fail: function (e) { + console.log('复制失败',e); + // 可以添加错误处理或用户友好的提示 + } + }) } }