From 1e649e9835711548e1b9c406479bd00b57657b6a Mon Sep 17 00:00:00 2001 From: luo Date: Wed, 5 Aug 2026 16:53:05 +0800 Subject: [PATCH] fix: ui --- components/UserInfoCard.vue | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/components/UserInfoCard.vue b/components/UserInfoCard.vue index bca2bf2..06ff347 100644 --- a/components/UserInfoCard.vue +++ b/components/UserInfoCard.vue @@ -2,10 +2,16 @@ - + {{ currentCardNo || '-' }} + + + + ICCID:{{ deviceInfo.iccid || '-' }} + - ICCID:{{ deviceInfo.iccid || '-' }} 套餐名称:{{ deviceInfo.packageName || '-' }} 套餐到期时间:{{ deviceInfo.expireDate || '-' }} @@ -44,6 +50,15 @@ return Boolean(packageName && packageName !== '-'); }); + const copyText = (value, label) => { + const text = String(value || '').trim(); + if (!text || text === '-') return; + uni.setClipboardData({ + data: text, + success: () => uni.showToast({ title: `${label}已复制`, icon: 'success' }) + }); + }; +