Browse Source

对接接口

master
前端-胡立永 2 weeks ago
parent
commit
a361d46a79
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      pages/subPack/human/human.vue

+ 6
- 3
pages/subPack/human/human.vue View File

@ -34,7 +34,7 @@
<view class="human-face-desc"
v-else>
{{ tipsText }}
<!-- {{ tipsText }} -->
</view>
<!-- 说明 -->
@ -259,7 +259,7 @@
const standard = 0.5
let faseP = 0.98
let faseP = 0.8
if (Math.abs(pitch) >= standard || Math.abs(roll) >= standard ||
Math.abs(yaw) >= standard) {
@ -284,11 +284,14 @@
// }
}
}
//
this.tipsText = this.successText
},
fail: (err) => {
if (err.x == -1 || err.y == -1) {
this.tipsText = '检测不到人'
// this.tipsText = ''
} else {
this.tipsText = err.errMsg || '网络错误,请退出页面重试'
}


Loading…
Cancel
Save