Browse Source

版本1.0.6 2023-11-28 ljd

1、优化q系列重置门锁
2、修复了zg锁添加人员失败和设置声音时一直在转圈问题
master
xiaohei 1 year ago
parent
commit
8c8f809087
3 changed files with 22 additions and 6 deletions
  1. +4
    -2
      pages/roomDetail/roomDetail.js
  2. +17
    -3
      pages/userbluetoothUnlock/userbluetoothUnlock.js
  3. +1
    -1
      pages/userbluetoothUnlock/userbluetoothUnlock.wxml

+ 4
- 2
pages/roomDetail/roomDetail.js View File

@ -1180,7 +1180,7 @@ Page({
this.setData({ event }) this.setData({ event })
var deviceinfo = this.data.deviceinfo var deviceinfo = this.data.deviceinfo
if (deviceinfo.manufactureId == 201 || deviceinfo.manufactureId == 221) { if (deviceinfo.manufactureId == 201 || deviceinfo.manufactureId == 221) {
if (app.globalData.zgBlueStatus) {
if (this.data.isSearch) {
if (event == 0) { if (event == 0) {
this.openTheDoor() this.openTheDoor()
} else if (event == 3) { } else if (event == 3) {
@ -1192,6 +1192,7 @@ Page({
} else if (event == 11) { } else if (event == 11) {
this.synchroPlatformTask() this.synchroPlatformTask()
} }
wx.hideLoading()
} else { } else {
that.goBlue() that.goBlue()
} }
@ -2330,7 +2331,8 @@ Page({
clearInterval(that.data.timer) clearInterval(that.data.timer)
this.setData({ this.setData({
bleStatus: '蓝牙已连接', bleStatus: '蓝牙已连接',
deviceId: deviceId
deviceId: deviceId,
isSearch: true
}) })
app.globalData.zgBlueStatus = true app.globalData.zgBlueStatus = true
wx.hideLoading() wx.hideLoading()


+ 17
- 3
pages/userbluetoothUnlock/userbluetoothUnlock.js View File

@ -1042,7 +1042,7 @@ Page({
remotePasswordStatus:false remotePasswordStatus:false
}) })
if (deviceinfo.manufactureId == 201||deviceinfo.manufactureId == 221) { if (deviceinfo.manufactureId == 201||deviceinfo.manufactureId == 221) {
if (app.globalData.zgBlueStatus) {
if (this.data.isSearch) {
if (event == 0) { if (event == 0) {
this.openTheDoor() this.openTheDoor()
} else if (event == 1) { } else if (event == 1) {
@ -1098,14 +1098,23 @@ Page({
if (this.data.isSearch) { if (this.data.isSearch) {
if (event == '0') { if (event == '0') {
this.LwjopenLock() this.LwjopenLock()
} if(event == '3') {
}else if(event == '3') {
this.configurewifj() this.configurewifj()
}else if(event == '12'){
this.goPasswordList()
}else if(event == '1'){
this.addPincode()
} }
} else { } else {
this.searchDevicesMethods() this.searchDevicesMethods()
} }
} }
}, },
addPincode: function() {
var that = this
taskId = 51
that.initBluetooth()
},
configurewifj() { configurewifj() {
var that = this var that = this
taskId = 121 taskId = 121
@ -1174,6 +1183,8 @@ Page({
} else if (that.data.event == '3') { } else if (that.data.event == '3') {
console.log("1298wifi"); console.log("1298wifi");
that.configurewifj() that.configurewifj()
}else if(that.data.event == '12'){
that.goPasswordList()
} }
wx.hideLoading({ wx.hideLoading({
success: (res) => {}, success: (res) => {},
@ -2158,7 +2169,8 @@ Page({
clearInterval(that.data.timer) clearInterval(that.data.timer)
this.setData({ this.setData({
bleStatus: '蓝牙已连接', bleStatus: '蓝牙已连接',
deviceId: deviceId
deviceId: deviceId,
isSearch: true
}) })
app.globalData.zgBlueStatus = true app.globalData.zgBlueStatus = true
wx.hideLoading() wx.hideLoading()
@ -2965,6 +2977,8 @@ Page({
}) })
} }
}) })
}else if(deviceinfo.manufactureId == 1201 || deviceinfo.manufactureId == 1241){
} }
} }
}, },


+ 1
- 1
pages/userbluetoothUnlock/userbluetoothUnlock.wxml View File

@ -51,7 +51,7 @@
<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="addRemotePassword" wx:if="userRole == 1">
<view class="actionli" bindtap="addRemotePassword" 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>


Loading…
Cancel
Save