Skip to content

Commit 0f98f92

Browse files
committed
update : 蓝牙模块蒙版 添加关闭事件
1 parent a8b7798 commit 0f98f92

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pages/API/bluetooth/bluetooth.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
</view>
8686
</view>
8787
<!-- 遮罩 -->
88-
<view v-if="maskShow" class="uni-mask" @touchmove.stop.prevent="moveHandle">
89-
<scroll-view class="uni-scroll-box" scroll-y @touchmove.stop.prevent="moveHandle">
88+
<view v-if="maskShow" class="uni-mask" @touchmove.stop.prevent="moveHandle" @click="maskclose">
89+
<scroll-view class="uni-scroll-box" scroll-y @touchmove.stop.prevent="moveHandle" @click.stop="moveHandle">
9090
<view class="uni-title">
9191
已经发现{{ list.length }}{{ showMaskType === 'device' ? '台设备' : '个服务' }}:
9292
</view>
@@ -156,12 +156,18 @@ export default {
156156
this.onBLEConnectionStateChange();
157157
},
158158
methods: {
159-
moveHandle() {},
159+
moveHandle() {},
160+
/**
161+
* 关闭遮罩
162+
*/
163+
maskclose(){
164+
this.maskShow = false;
165+
},
160166
/**
161167
* 选择设备
162168
*/
163169
queryDevices() {
164-
this.newDeviceLoad = true;
170+
// this.newDeviceLoad = true;
165171
this.showMaskType = 'device';
166172
this.maskShow = true;
167173
},

0 commit comments

Comments
 (0)