|
@@ -97,7 +97,7 @@ export default {
|
|
|
this.GetIDCardInfo();
|
|
|
} else {
|
|
|
this.$tip("身份证读卡器初始化异常,正在重试...", "error");
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
if (this.init) {
|
|
|
this.timer = setTimeout(() => {
|
|
|
this.getReadIDCard();
|
|
@@ -106,7 +106,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
this.$tip("身份证读卡器初始化异常,正在重试...", "error");
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
if (this.init) {
|
|
|
this.timer = setTimeout(() => {
|
|
|
this.getReadIDCard();
|
|
@@ -138,10 +138,10 @@ export default {
|
|
|
};
|
|
|
sessionStorage.setItem("userinfo", JSON.stringify(userinfo));
|
|
|
this.CloseDevice();
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
this.nextStep();
|
|
|
} else {
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
if (this.init) {
|
|
|
this.timer = setTimeout(() => {
|
|
|
this.GetIDCardInfo();
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
if (this.init) {
|
|
|
this.timer = setTimeout(() => {
|
|
|
this.GetIDCardInfo();
|
|
@@ -197,7 +197,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
nextStep() {
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
this.timer = null;
|
|
|
this.$emit("update:nowPage", {
|
|
|
page: "selectEnterprise",
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
home() {
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
this.timer = null;
|
|
|
this.$emit("update:timerTime", -1);
|
|
|
this.$emit("update:nowPage", {
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearTimeout(this.timer);
|
|
|
this.timer = null;
|
|
|
this.init = false;
|
|
|
},
|