File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 55 <view class =" uni-btn-v" >
66 <button type =" primary" :disabled =" isOpen" @click =" openBluetoothAdapter" >打开蓝牙模块</button >
77 <button type =" primary" :disabled =" !isOpen" @click =" closeBluetoothAdapter" >关闭蓝牙模块</button >
8- <button type =" primary" :disabled =" !isOpen || isStarted" @click =" startBeaconDiscovery" >开始搜索附近的iBeacon设备</button >
8+ <button type =" primary" :disabled =" !isOpen || isStarted" :loading = " isStarted " @click =" startBeaconDiscovery" >开始搜索附近的iBeacon设备</button >
99 <button type =" primary" :disabled =" !isStarted" @click =" stopBeaconDiscovery" >停止搜索附近的iBeacon设备</button >
1010 </view >
1111 </view >
6464 });
6565 },
6666 closeBluetoothAdapter (OBJECT ) {
67+ this .stopBeaconDiscovery ();
6768 uni .closeBluetoothAdapter ({
6869 success : (res ) => {
6970 this .isOpen = false ;
You can’t perform that action at this time.
0 commit comments