examTeamApp/unpackage/dist/dev/mp-weixin/pages/home/home.wxml

1 line
2.2 KiB
Plaintext
Raw Normal View History

2026-01-10 09:17:01 +08:00
<view class="content data-v-92bb8f34"><button hidden="{{!(!shows)}}" type="default" data-event-opts="{{[['tap',[['initBle',['$event']]]]]}}" bindtap="__e" class="data-v-92bb8f34">初始化蓝牙模块</button><scroll-view scroll-y="true" show-scrollbar="true" class="data-v-92bb8f34"><radio-group class="data-v-92bb8f34"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{item.g0>=30}}"><view hidden="{{!(item.g1)}}" style="padding:10rpx 20rpx;border-bottom:1rpx solid #ececec;" class="data-v-92bb8f34"><view style="font-size:32rpx;color:#333;" class="data-v-92bb8f34"><checkbox-group data-name="{{item.$orig.name}}" data-deviceId="{{item.$orig.deviceId}}" data-event-opts="{{[['change',[['checkboxChange',['$event']]]]]}}" bindchange="__e" class="data-v-92bb8f34"><label class="data-v-92bb8f34"><checkbox value="{{item.$orig.deviceId}}" class="data-v-92bb8f34">{{''+item.$orig.name+''}}</checkbox></label></checkbox-group></view><view style="font-size:20rpx;padding:10rpx 0;" class="data-v-92bb8f34">{{'deviceId: '+item.$orig.deviceId+" 信号强度: "+item.$orig.RSSI+"dBm ("+item.g2+'%)'}}</view></view></block></block><view class="dis data-v-92bb8f34"><block wx:if="{{!shows}}"><view data-event-opts="{{[['tap',[['connectBle',['$event']]]]]}}" class="pl data-v-92bb8f34" bindtap="__e">连接</view></block><block wx:if="{{shows}}"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="pl data-v-92bb8f34" bindtap="__e">断开</view></block></view></radio-group></scroll-view><view class="appItems data-v-92bb8f34"><block wx:for="{{totalList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><viwe class="{{['data-v-92bb8f34',item.status?'item bakBlue':'item']}}" vue-id="{{'1da55560-1-'+index}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="name p_hide data-v-92bb8f34">{{"蓝牙名称:"+item.name}}</view><view class="txt data-v-92bb8f34">{{"蓝牙数据:"+item.text}}</view></viwe></block></view><block wx:if="{{shows}}"><view class="items data-v-92bb8f34"><block wx:for="{{getData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-92bb8f34">{{''+item.name+""+item.txt+''}}</view></block></view></block></view>