|
|
@@ -24,7 +24,7 @@ |
|
|
|
|
|
|
|
<!-- <img class="img_block" src="../../assets/images/sunVillage_info/check_icon_02.png" alt="">--> |
|
|
|
|
|
|
|
<p class="text_block">您已认证,<span>3</span>秒后进入页面...</p> |
|
|
|
<p class="text_block">您已认证,<span>{{ remainingSeconds }}</span>秒后进入页面...</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@@ -40,10 +40,22 @@ |
|
|
|
openPic:[], |
|
|
|
openPic2:[], |
|
|
|
responseData: null, |
|
|
|
remainingSeconds: 3, // 剩余秒数,初始值为3秒 |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.responseData = this.$route.query.responseData; |
|
|
|
// 判断是否已认证 |
|
|
|
if (this.responseData.isFacial === 'Y') { |
|
|
|
const countdownInterval = setInterval(() => { |
|
|
|
if (this.remainingSeconds === 0) { |
|
|
|
clearInterval(countdownInterval); // 清除计时器 |
|
|
|
this.$router.push({ path: '/sunVillage_info/index_code_rights' }); |
|
|
|
} else { |
|
|
|
this.remainingSeconds--; |
|
|
|
} |
|
|
|
}, 1000); // 1000 毫秒等于1秒 |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
deleteFile1(detail){ |
|
|
|