|
@@ -448,12 +448,16 @@ export default {
|
|
|
wx.setKeepScreenOn({
|
|
|
keepScreenOn: true,
|
|
|
});
|
|
|
-
|
|
|
$this.$bluetooth.sendAutoConnectRf(true, Math.round($this.played_time / 60));
|
|
|
-
|
|
|
$this.$bluetooth.watchingDevice($this);
|
|
|
- // 关闭LED
|
|
|
- $this.$bluetooth.SendLedOrder("00");
|
|
|
+ // 获取LED灯状态并设置
|
|
|
+ let led_status = game_store.getters.getLED();
|
|
|
+ console.log("开始游戏获取LED灯状态", led_status)
|
|
|
+ if(led_status){
|
|
|
+ $this.$bluetooth.SendLedOrder("01");
|
|
|
+ }else{
|
|
|
+ $this.$bluetooth.SendLedOrder("00");
|
|
|
+ }
|
|
|
// 开始倒计时
|
|
|
clearInterval($timeout)
|
|
|
$timeout = setInterval(() => {
|
|
@@ -544,6 +548,8 @@ export default {
|
|
|
wx.removeStorageSync("over_play_time");
|
|
|
game_store.setters.setMode(0);
|
|
|
});
|
|
|
+ // 打开LED
|
|
|
+ $this.$bluetooth.SendLedOrder("01");
|
|
|
},
|
|
|
// 处理游戏中数据的方法
|
|
|
do_datas: function ($data) {
|