From c3498510c67ad3584668622c22bccc4819a31913 Mon Sep 17 00:00:00 2001 From: xuli3099 Date: Fri, 15 Aug 2025 17:14:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home/home.vue | 58 ++++++++++++++++++++++++++------------- src/pages/login/login.vue | 2 ++ 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/src/pages/home/home.vue b/src/pages/home/home.vue index f589033..e2a2393 100644 --- a/src/pages/home/home.vue +++ b/src/pages/home/home.vue @@ -10,7 +10,10 @@ - + + + + @@ -160,25 +163,26 @@ import {showLoading,hideLoading} from '@/utils/message.js' // #ifdef APP-PLUS // 获取 存储手机的module const safeSave = uni.requireNativePlugin("Tm-TmSafeSaveFileModule"); - const handleDelete=()=>{ - safeSave.delSafeFile({ - "key": "app_device_id" - }, (res) => { - console.log(res); - if (res.code == 1) { - uni.showModal({ - title: "删除成功", - content:"删除成功", - }) - } else { - uni.showModal({ - title: "读取失败", - content: res.msg, - - }) - } - }) + uni.showModal({ + title: '提示', + content: "是否确认删除设备ID?删除之后需重新绑定设备,谨慎操作!!!", + cancelText: '取消', + confirmText: '确定', + success: function (res) { + if (res.confirm) { + safeSave.delSafeFile({"key": "app_device_id"}, (res) => { + if (res.code == 1) { + uni.showModal({title: "提示",content:"删除成功"}) + } else { + uni.showModal({title: "删除失败",content: res.msg}) + } + }) + } else if (res.cancel) { + + } + } + }) } // #endif @@ -370,6 +374,22 @@ const formatDateStr =(times)=>{