zhb před 1 měsícem
rodič
revize
e93676b8ab

+ 10 - 1
pages/customer/components/AccountCard copy.vue

@@ -278,7 +278,16 @@ const handleCustomClick = (item, index) => {
 }
 // 复制文本
 const copy = (text: string) => {
-    uni.setClipboardData({ data: text });
+    uni.setClipboardData({
+        data: text,
+        success: function () {
+            uni.showToast({
+                title: t('Btn.item8'),
+                icon: 'none',
+                duration: 2000
+            });
+        }
+    });
 };
 // 按钮对应的操作方法
 const toDeposit = () => {

+ 10 - 1
pages/customer/components/AccountCardDesktop.vue

@@ -266,7 +266,16 @@ const handleCustomClick = (item, index) => {
 }
 // 复制文本
 const copy = (text: string) => {
-    uni.setClipboardData({ data: text });
+    uni.setClipboardData({
+        data: text,
+        success: function () {
+            uni.showToast({
+                title: t('Btn.item8'),
+                icon: 'none',
+                duration: 2000
+            });
+        }
+    });
 };
 // 按钮对应的操作方法
 const toHistory = () => {

+ 10 - 1
pages/customer/components/AccountCardMobile.vue

@@ -206,7 +206,16 @@ const handleCustomClick = (item, index) => {
 }
 // 复制文本
 const copy = (text: string) => {
-    uni.setClipboardData({ data: text });
+    uni.setClipboardData({
+        data: text,
+        success: function () {
+            uni.showToast({
+                title: t('Btn.item8'),
+                icon: 'none',
+                duration: 2000
+            });
+        }
+    });
 };
 // 按钮对应的操作方法
 const toHistory = () => {

+ 12 - 1
pages/customer/components/AccountList.vue

@@ -60,7 +60,18 @@ const isAfterJuly28 = () => {
 
 
 const handleAction = (type) => { /* 处理交易/入金等 */ };
-const handleCopy = (text) => { uni.setClipboardData({ data: text }); };
+const handleCopy = (text: string) => {
+    uni.setClipboardData({
+        data: text,
+        success: function () {
+            uni.showToast({
+                title: t('Btn.item8'),
+                icon: 'none',
+                duration: 2000
+            });
+        }
+    });
+}
 const handleChangePassword = () => { /* 跳转修改密码 */ };
 const typeMap = computed(() => ({
     1: t('AccountType.ClassicAccount'),

+ 1 - 1
pages/customer/components/CheckPopup.vue

@@ -68,7 +68,7 @@ const CopyShareLink = (link) => {
     success: function () {
       uni.showToast({
         title: t('Btn.item8'),
-        icon: 'success',
+        icon: 'none',
         duration: 2000
       });
     }

+ 1 - 1
pages/customer/components/TerminalInfoDialog.vue

@@ -85,7 +85,7 @@ const copyValue = (text) => {
     uni.setClipboardData({
         data: String(text),
         success: () => {
-            uni.showToast({ title: '复制成功', icon: 'success' })
+            uni.showToast({ title: '复制成功', icon: 'none' })
         },
         fail: () => {
             uni.showToast({ title: '复制失败', icon: 'none' })