You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.7 KiB
41 lines
1.7 KiB
<view class="container111">
|
|
|
|
<button class = "s-button" type="primary" bindtap="startSearch">开始扫描</button>
|
|
<text class="device-notice">请确保OBD设备已经连接汽车OBD接口,并未与其它手机连接</text>
|
|
|
|
<!-- <view class="device-item" >
|
|
<view class="device-info" >
|
|
<image src="/utils/image/ic_blue_remote.png" class="bluetooth-icon"></image>
|
|
<view class="device-details">
|
|
<text class="device-name">{{item.name || '未知设备'}}</text>
|
|
<text class="device-mac">MAC: {{item.deviceId}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="device-status">
|
|
<text class="signal-strength" style="margin-left: 30rpx;">{{item.RSSI}}</text>
|
|
<image src="/utils/image/rss_line.png" class="signal-icon"></image>
|
|
<button class="connect-btn" bindtap="connectDevice" size="mini">连接</button>
|
|
</view>
|
|
</view> -->
|
|
|
|
<view class="device-list">
|
|
<view class="device-item" wx:for="{{deviceList}}"
|
|
wx:key="deviceId"
|
|
>
|
|
<view class="device-info" >
|
|
<image src="/utils/image/ic_blue_remote.png" class="bluetooth-icon"></image>
|
|
<view class="device-details">
|
|
<text class="device-name">{{item.name || '未知设备'}}</text>
|
|
<text class="device-mac">{{item.deviceId}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="device-status">
|
|
<text class="signal-strength" style="margin-left: 30rpx;">{{item.RSSI}}</text>
|
|
<image src="/utils/image/rss_line.png" class="signal-icon"></image>
|
|
<button class="connect-btn" bindtap="connectDevice" size="mini" bindtap="connectDevice"
|
|
data-deviceid="{{item.deviceId}}"
|
|
data-blename="{{item.name}}">连接</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|