|
@@ -23,10 +23,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 已链接 -->
|
|
|
- <div
|
|
|
- class="connected_box"
|
|
|
- v-if="connect_show"
|
|
|
- >
|
|
|
+ <div class="connected_box" v-if="connect_show">
|
|
|
<device_connected
|
|
|
@open_choose_toy="open_choose_toy"
|
|
|
@change_brain_status="change_device_status"
|
|
@@ -73,10 +70,7 @@
|
|
|
</div>
|
|
|
<!-- 内容 -->
|
|
|
<div class="padding toy_list">
|
|
|
- <van-row
|
|
|
- gutter="14"
|
|
|
- class="toy_list_content"
|
|
|
- >
|
|
|
+ <van-row gutter="14" class="toy_list_content">
|
|
|
<van-col
|
|
|
v-for="(toy, index) in toy_list"
|
|
|
:key="index"
|
|
@@ -91,11 +85,7 @@
|
|
|
: 'toy_item_normal_bg'
|
|
|
"
|
|
|
>
|
|
|
- <img
|
|
|
- :src="toy.img"
|
|
|
- alt=""
|
|
|
- class="toy_img"
|
|
|
- />
|
|
|
+ <img :src="toy.img" alt="" class="toy_img" />
|
|
|
<text class="toy_text padding-top">{{ toy.name }}</text>
|
|
|
</div>
|
|
|
</van-col>
|
|
@@ -103,7 +93,8 @@
|
|
|
</div>
|
|
|
<!-- 结尾 -->
|
|
|
<div class="toy_actions padding text-center">
|
|
|
- <view class="text-gray toy_action_text padding">选择你最感兴趣的项目,点击“选好了”以后将会自动连接
|
|
|
+ <view class="text-gray toy_action_text padding"
|
|
|
+ >选择你最感兴趣的项目,点击“选好了”以后将会自动连接
|
|
|
</view>
|
|
|
<button
|
|
|
class="cu-btn lg cu-btn-primary text-white text-center padding"
|
|
@@ -125,7 +116,6 @@
|
|
|
<!-- >-->
|
|
|
<!-- <gameIng v-if="game_status" @closePop="onStartGameShowClose"></gameIng>-->
|
|
|
<!-- </van-popup>-->
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -327,16 +317,13 @@ export default {
|
|
|
$this.choose_toy_window.show = true;
|
|
|
let $serviceId = game_store.getters.getServiceId();
|
|
|
let $charateristic = game_store.getters.getCharacterId();
|
|
|
-
|
|
|
+
|
|
|
bluetooth.shutdownSendControl(
|
|
|
- $this._deviceId,
|
|
|
- $serviceId,
|
|
|
- $charateristic
|
|
|
- );
|
|
|
- bluetooth.sendEnd(
|
|
|
- $this._deviceId,
|
|
|
- $serviceId,
|
|
|
- $charateristic);
|
|
|
+ $this._deviceId,
|
|
|
+ $serviceId,
|
|
|
+ $charateristic
|
|
|
+ );
|
|
|
+ bluetooth.sendEnd($this._deviceId, $serviceId, $charateristic);
|
|
|
},
|
|
|
// 选好玩具
|
|
|
choose_ok() {
|
|
@@ -537,7 +524,7 @@ export default {
|
|
|
let $game_status = game_store.getters.getGameStatus();
|
|
|
// 游戏过程中关闭脑环状态
|
|
|
let $game_close_status = game_store.getters.getGameCloseStatus();
|
|
|
- // console.log("游戏中:" + $game_status);
|
|
|
+ console.log("返回时:" + $game_status, $game_close_status);
|
|
|
if ($game_status == 3) {
|
|
|
//不在游戏状态
|
|
|
$this.connect_toy = 0;
|