Commit 7be9f9ca by zeven

优化人脸识别二维码弹窗消失

parent 012bfab3
{ {
"name": "zm-face-counter", "name": "zm-face-counter",
"version": "1.1.2", "version": "1.1.5",
"private": true, "private": true,
"scripts": { "scripts": {
"android": "react-native run-android", "android": "react-native run-android",
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
"lint": "eslint --ext .js index.js src", "lint": "eslint --ext .js index.js src",
"apk": "cd android && ./gradlew app:assembleRelease && cp ./app/build/outputs/apk/release/app-release.apk ../fcounter.apk", "apk": "cd android && ./gradlew app:assembleRelease && cp ./app/build/outputs/apk/release/app-release.apk ../fcounter.apk",
"android-staging": "code-push release-react ZmFaceCounter-android android -t '1.0.0' --des '提升用户体验'", "android-staging": "code-push release-react ZmFaceCounter-android android -t '1.0.0' --des '提升用户体验'",
"android-product": "code-push promote ZmFaceCounter-android Staging Production --des '提升用户体验'" "android-product": "code-push promote ZmFaceCounter-android Staging Production --des '提升用户体验'",
"android-history": "code-push deployment history ZmFaceCounter-android Production"
}, },
"pre-commit": [ "pre-commit": [
"lint" "lint"
......
...@@ -207,6 +207,7 @@ class FacePage extends Component { ...@@ -207,6 +207,7 @@ class FacePage extends Component {
verifyCodeModal: false, verifyCodeModal: false,
current: 1, current: 1,
tipsModal: false, tipsModal: false,
goTipsModal: false,
loadingModal: false, loadingModal: false,
sleep: true, sleep: true,
tip: '', tip: '',
...@@ -399,6 +400,7 @@ class FacePage extends Component { ...@@ -399,6 +400,7 @@ class FacePage extends Component {
onCall = async () => { onCall = async () => {
await this.setState({ await this.setState({
tipsModal: false, tipsModal: false,
goTipsModal: false,
type: '', type: '',
}); });
const {talkCall} = this.state; const {talkCall} = this.state;
...@@ -448,7 +450,7 @@ class FacePage extends Component { ...@@ -448,7 +450,7 @@ class FacePage extends Component {
this.setState({sleep: false}); this.setState({sleep: false});
clearTimeout(this.wakeUpTimeout); clearTimeout(this.wakeUpTimeout);
this.wakeUpTimeout = setTimeout(() => { this.wakeUpTimeout = setTimeout(() => {
this.setState({sleep: true, tipsModal: false}); this.setState({sleep: true, tipsModal: false, goTipsModal: false});
}, 18888); }, 18888);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment