Browse Source

9901

9901
yangteng 11 months ago
parent
commit
c14187b5ee
2 changed files with 46 additions and 20 deletions
  1. 1
    1
      pages.json
  2. 45
    19
      subpackage/after-sale/activation/operation-tips.vue

+ 1
- 1
pages.json View File

"plugins": { "plugins": {
"issuer-plugin": { "issuer-plugin": {
// "version": "1.0.0", // "version": "1.0.0",
"version": "dev-b0b8aef0ee7a99544e1ca100af63c996",
"version": "dev-51004b7919a77df5b18fed30faa45a9b",
"provider": "wxa2d9acdd1054e69b" "provider": "wxa2d9acdd1054e69b"
} }
}, },

+ 45
- 19
subpackage/after-sale/activation/operation-tips.vue View File

}) })


const gotoNextStep = () => { const gotoNextStep = () => {
noticeUser(() => {
console.log("11111")
uni.openBluetoothAdapter()
/* 判断是否打开蓝牙 */
uni.getBluetoothAdapterState({
success(res) {
console.log("2222",res)
//如果res.avaliable==false 说明没打开蓝牙 反之则打开
if (res.available == false) {
uni.showToast({
title: '请打开手机蓝牙',
icon: "error",
duration: 2000
uni.getSetting({
success(res) {
console.log(res.authSetting)
if (res.authSetting['scope.bluetooth'] == true) {
uni.openBluetoothAdapter()
noticeUser(() => {
console.log("11111")
/* 判断是否打开蓝牙 */
uni.getBluetoothAdapterState({
success(res) {
console.log("2222", res)
//如果res.avaliable==false 说明没打开蓝牙 反之则打开
if (res.available == false) {
uni.showToast({
title: '请打开手机蓝牙',
icon: "error",
duration: 2000
})
return
} else {
navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}`)
}
}
}) })
return
} else {
navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}`)
}
});
}else{
uni.showModal({
title: '提示',
content: '请打开蓝牙权限',
success: function (res) {
if (res.confirm) {
uni.openSetting({
success(res) {
console.log("2222")
console.log(res.authSetting)
}
});
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} }
})
});
}
})


} }
</script> </script>



Loading…
Cancel
Save