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: {