Files
Wx_BLWConfigTools_V01_Prod/pages/Upgrade/Upgrade.wxml
2025-12-11 09:50:45 +08:00

73 lines
3.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view style="height:100%;Width:100%;background: aquamarine;" >
<!-- 房型 -->
<view class="flex align-center bg-gray">
<view class=" ">
<text >房型:</text>
</view>
<view class="flex-eight " style=" justify-content: center; align-items: center;padding: 5rpx 20rpx;">
<picker class="" mode="selector" range="{{myArray}}" bindchange="bindPickerChange">
<view class="cu-tag line-cyan basis-xl " style="width: 100%;" >
<view class="basis-xxl" style=" text-align: center; ">{{myArray[index]}}</view>
<text class="cuIcon-triangledownfill"style="padding: 5rpx 30rpx;" ></text>
</view>
</picker>
</view>
</view>
<!-- 房型下的信息 -->
<view class="flex align-start bg-gray setborder line-grey">
<view class="flex-sub " style="height: 100rpx;" >
<checkbox style="top:25%;left: 12%;"></checkbox>
</view>
<view class="flex-sub " style="height: 100rpx" >
<view class="flex-sub title setborder line-grey" style="height: 50rpx">固件</view>
<view class="flex-sub title setborder line-grey" style="height: 50rpx">配置</view>
</view>
<view class="flex-xis" style="height: 100rpx" >
<view class="flex-xis title setborder line-grey" style="height: 50rpx">
<text>{{dat_filename}}</text>
</view>
<view class="flex-xis title setborder line-grey" style="height: 50rpx">
<text>{{hex_filename}}</text>
</view>
</view>
<view class="flex-subN " style="height: 100rpx" >
<button class="cu-btn setborder line-blue"style=" font-size: 25rpx;height: 50rpx" >升级</button>
<button class="cu-btn setborder line-blue"style=" font-size: 25rpx;height: 50rpx" >升级</button>
</view>
<view class="flex-subN " style="height: 100rpx" >
<button class="cu-btn setborder line-grey"style=" font-size: 25rpx;height: 100rpx" >设置</button>
</view>
</view>
<!-- 房型下的各个房号信息 -->
<view>
<view class="flex align-center " style="height: 50rpx;">
<view class="devices_summary">已升级设备{{devlist.length}}</view>
<button style=" font-size: 18rpx;" data-index="0" bindtap="openBluetoothAdapter" class=" flex-sub newcu-btn bg-{{showinfo==0?'green':'grey'}} ">设置</button>
<button style=" font-size: 18rpx;" data-index="0" bindtap="openBluetoothAdapter" class=" flex-sub newcu-btn bg-{{showinfo==0?'green':'grey'}} ">通信日志</button>
</view>
<scroll-view class="device_list" scroll-y scroll-with-animation>
<view wx:for="{{devices}}" wx:key="index"
class="device_item cf padding-sm">
<view data-device-id="{{item.deviceId}}" data-name="{{item.name || item.localName}}" class="fl flex-eight bg-{{devicedisplay==item.deviceId?'green':'white'}}" bindtap="createBLEConnection" hover-class="device_item_hover" >
<view style="font-size: 16px; color: #333;"> {{item.name}}</view>
<view style="font-size: 10px">信号强度: {{item.RSSI}}dBm ({{utils.max(0, item.RSSI + 100)}}%)</view>
<view style="font-size: 10px">UUID: {{item.deviceId}}</view>
<view style="font-size: 10px">Service数量: {{utils.len(item.advertisServiceUUIDs)}}</view>
<!-- <view class="bg-gray margin-xs" style="padding:2rpx;"></view> -->
</view>
<view class="fr flex-twice">
<button class="bg-red padding-lg margin-xs radius " style="font-size: 26rpx; " data-index="0" bindtap="closeBLEConnection" wx:if="{{devicedisplay==item.deviceId}}">断开连接</button>
</view>
</view>
</scroll-view>
</view>
</view>