From fe2738452aadc723e029e09e44689684ca4639b4 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Sat, 18 Apr 2026 11:13:25 +0800 Subject: [PATCH] 11 --- App.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/App.vue b/App.vue index 9fc25e1..1a3148c 100644 --- a/App.vue +++ b/App.vue @@ -151,6 +151,21 @@ // #ifdef MP-WEIXIN this.globalData.GaoDeKey_amapkey = '52de86da47be2ea547c37dd382025a0c' // #endif + if(!uni.getStorageSync('bluetoothDeviceId')){ + uni.showModal({ + title: '提示', + content: '您还没有连接打印机,将无法为您打印小票!', + confirmText:'连接蓝牙', + cancelText:'暂不连接', + success: function (res) { + if (res.confirm) { + uni.navigateTo({ + url:'/pages/myCenter/setPrint' + }) + } + } + }); + } }, computed: {