Browse Source

完成人脸录入功能

master
xiaohei 1 year ago
parent
commit
021187728a
2 changed files with 9 additions and 0 deletions
  1. +1
    -0
      pages/Bluetooth/Bluetooth.js
  2. +8
    -0
      pagesA/facepeople/facepeople.js

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

@ -1872,6 +1872,7 @@ Page({
deviceId: _this.data.deviceInfo.id, deviceId: _this.data.deviceInfo.id,
}] }]
WXAPI.bindDeviceSite(data2).then(res2 => { WXAPI.bindDeviceSite(data2).then(res2 => {
console.log(data2);
if (res2.success) { if (res2.success) {
_this.getdevice() _this.getdevice()
wx.showToast({ wx.showToast({


+ 8
- 0
pagesA/facepeople/facepeople.js View File

@ -270,6 +270,14 @@ Page({
if (res.success) { if (res.success) {
faceaddIndex = res.data.index faceaddIndex = res.data.index
serialNumber = res.data.serialNumber serialNumber = res.data.serialNumber
this.setData({
show2: false
})
wx.showToast({
title: '添加人脸凭证成功',
icon: 'none',
duration: 2000
})
}else{ }else{
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg,


Loading…
Cancel
Save