<template> <h-view id="certification"> <h-header :proportion="[5,1,1]" class="bar-custom"> <div slot="left" class="h-header-btn"> <img src="@/assets/userBind/arrow.png" @click="exitCertification" > <span>电子签认证</span> </div> </h-header> <h-content> <iframe :src="url" frameborder="0" scrolling="no" width="100%" height="100%"/> </h-content> </h-view> </template> <script> export default { data () { return { url: this.$route.params.authUrl, } }, watch: { $route (to, from) { this.exitCertification() }, }, created () { console.log(this) }, activated () { }, methods: { exitCertification () { this.$router.replace({ name: 'MyInfo', }) }, }, } </script> <style lang="less" scoped> </style>