Browse Source

版本1.0.6 2023-11-27 ljd

1、租客端增加了q系列锁的配网和蓝牙开锁功能
master
xiaohei 1 year ago
parent
commit
3b7679cb10
3 changed files with 1154 additions and 18 deletions
  1. +10
    -0
      pages/Bluetooth/Bluetooth.js
  2. +1129
    -16
      pages/userbluetoothUnlock/userbluetoothUnlock.js
  3. +15
    -2
      pages/userbluetoothUnlock/userbluetoothUnlock.wxml

+ 10
- 0
pages/Bluetooth/Bluetooth.js View File

@ -3166,6 +3166,16 @@ Page({
that.setData({ that.setData({
lock lock
}) })
let data1 = {
code: "lwj/resetDevice",
data: {
lockerId: that.data.deviceInfo.deviceNum,
type: 1
}
}
WXAPI.sendCommand(data1).then(res22 => {
console.log("3177",res22);
})
} }
}) })
wx.showToast({ wx.showToast({


+ 1129
- 16
pages/userbluetoothUnlock/userbluetoothUnlock.js
File diff suppressed because it is too large
View File


+ 15
- 2
pages/userbluetoothUnlock/userbluetoothUnlock.wxml View File

@ -47,7 +47,7 @@
<view class="iconfont icon-suoding text-green"></view> <view class="iconfont icon-suoding text-green"></view>
<view class="text-grey text-sm">蓝牙开锁</view> <view class="text-grey text-sm">蓝牙开锁</view>
</view> </view>
<view class="actionli" bindtap="btntest1" data-i="1" wx:if="userRole == 1">
<view class="actionli" bindtap="btntest1" data-i="1" wx:if="userRole == 1" wx:if="{{deviceinfo.manufactureId ==201 || deviceinfo.manufactureId ==221}}">
<view class="iconfont icon-xiaoxi text-green"></view> <view class="iconfont icon-xiaoxi text-green"></view>
<view class="text-grey text-sm">添加蓝牙密码</view> <view class="text-grey text-sm">添加蓝牙密码</view>
</view> </view>
@ -87,6 +87,10 @@
<view class="iconfont icon-xiaoxi text-green"></view> <view class="iconfont icon-xiaoxi text-green"></view>
<view class="text-grey text-sm">临时密码</view> <view class="text-grey text-sm">临时密码</view>
</view> </view>
<view class="actionli" bindtap="changeshow2" data-i="3" wx:if="{{deviceinfo.manufactureId ==1201 || deviceinfo.manufactureId == 1241}}">
<view class="iconfont icon-shezhi text-green"></view>
<view class="text-grey text-sm">配网</view>
</view>
<view class="actionli" bindtap="btntest1" data-i="6" wx:if="{{IssuingPersonnel}}"> <view class="actionli" bindtap="btntest1" data-i="6" wx:if="{{IssuingPersonnel}}">
<view class="iconfont icon-shezhi text-red"></view> <view class="iconfont icon-shezhi text-red"></view>
<view class="text-grey text-sm">设置声音</view> <view class="text-grey text-sm">设置声音</view>
@ -134,4 +138,13 @@
<view class="devicelist"> <view class="devicelist">
<van-cell title="{{item.name}}" value="点击连接" data-select="{{item}}" bindtap="searchBlueButton" is-link wx:for="{{deviceList}}" wx:for-index="{{index}}" wx:for-item="item" /> <van-cell title="{{item.name}}" value="点击连接" data-select="{{item}}" bindtap="searchBlueButton" is-link wx:for="{{deviceList}}" wx:for-index="{{index}}" wx:for-item="item" />
</view> </view>
</van-popup>
</van-popup>
<!-- 配网弹出框 -->
<van-popup show="{{ show2 }}" round bind:close="onClose2" custom-style="width: 90%;">
<view class="wificontact">
<van-field value="{{ wifiName }}" placeholder="请输入wifi名称" border="{{ false }}" bind:change="onChangewifi" />
<van-field value="{{ wifiPwd }}" placeholder="请输入wifi密码" border="{{ false }}" bind:change="onChangewifi1" />
<van-button block type="primary" bindtap="configurationWifi">确定</van-button>
</view>
</van-popup>

Loading…
Cancel
Save