• iframe跳转


    <template>
      <div class="box"> 
             <!-- 跳转url -->
          <iframe src=""
                height="800"
                width="100%"
                id="mobsf"
                scrolling="no"
                frameborder="0"></iframe>
      </div>
    </template> 
    <script>
    import { getToken, removeToken } from "@/util/auth";
    import * as Api from "@/api/Project/project-management";
     export default {
        data() {
          return {
            authUrl: '',
            requestId: '',
            xinUrl: ''
          }
        },
          mounted() {
             this.getzutai();
             
          },
          methods:{
            getzutai() {
              Api.SealAppServeice().then(({ data }) => {
                // 请求成功
                if(data.Code == 200) {
                    const resData = JSON.parse(data.Data)
                    // 获取跳转url
                    if(resData.message == "SUCCESS") {
                      this.authUrl = resData.result.authUrl
                      this.xinUrl = this.authUrl.slice(0, this.authUrl.indexOf(this.authUrl.substring(this.authUrl.length-4)))  +  'false'
                    this.requestId = resData.result.requestId
                    document.getElementById('mobsf').src = this.xinUrl;
                    }else {
                      return resData.message.error
                    }
                }else {
                    return
                }
              })
            }
     }
     }
    </script>
  • 相关阅读:
    JSE-1.1.4 内存屏障和CPU缓存
    Ajax
    R手册(Common)--R6 and S4
    掌握 小程序项目新建后的 初始代码 及 git远程管理(2)
    微信小程序 网课学习笔记 开发前的准备工作(1)
    vuex中action如何互相调用
    ajax请求时,请求路径自动拼上页面路径?
    10个免费的CDN
    java面向对象
    java中方法的递归调用
  • 原文地址:https://www.cnblogs.com/xiaoxiao95/p/12712321.html
Copyright © 2020-2023  润新知