1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| <template>
| <view>
| <button @click="openBluetoothAdapter">搜索蓝牙</button>
| <view style="margin-top: 30upx;" :key="index" v-for="(item,index) in list">
| <button style="width: 400upx; color: #0081FF;" @click="longpress(item,index)">{{item.name}}</button>
| </view>
| <button style="margin-top: 300upx;" @click="tomy">退出蓝牙</button>
| <button style="margin-top: 100upx;" @click="fanhui">返回</button>
| </view>
| </template>
|
| <script>
| import mixBule from '@/mixins/Blue.js'
| export default {
| mixins: [mixBule],
| data() {
| return {
| list:[]
| }
| },
| methods: {
| fanhui(){
| uni.switchTab({
| url:'./index'
| })
| },
| },
|
| }
| </script>
|
| <style>
| </style>
|
|