|
@@ -279,26 +279,6 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
- // wx.openBluetoothAdapter({
|
|
|
- // success(res) {
|
|
|
- // console.log("初始化蓝牙模块res信息:", res);
|
|
|
- // //判断已经打开连接了
|
|
|
- // if (res["errMsg"] == "openBluetoothAdapter:ok") {
|
|
|
- // $this.startBluetoothDevicesDiscovery();
|
|
|
- // }
|
|
|
- // },
|
|
|
- // fail(err) {
|
|
|
- // if (err["errCode"] == 10001) {
|
|
|
- // Toast.fail({
|
|
|
- // message: "请打开蓝牙和位置信息!",
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // Toast.fail({
|
|
|
- // message: "蓝牙连接失败",
|
|
|
- // });
|
|
|
- // }
|
|
|
- // },
|
|
|
- // });
|
|
|
}
|
|
|
},
|
|
|
});
|
|
@@ -317,7 +297,6 @@ export default {
|
|
|
$this.choose_toy_window.show = true;
|
|
|
|
|
|
bluetooth.sendEnd();
|
|
|
-
|
|
|
},
|
|
|
// 选好玩具
|
|
|
choose_ok() {
|