<template>
  <div style="height: 100vh">
    <yx-navbar :isBack="true" :title="title"></yx-navbar>
    <iframe class="iframe" v-if="url" :src="url" frameborder="0"></iframe>
  </div>
</template>
<script>
import Cookies from 'js-cookie'
import {setToken} from "@/util";
export default {
  data() {
    return {
      title: '详情',
      url: '',
    }
  },
  onLoad(options) {
    this.title = options.title
    setToken().then(() => {
      let token = Cookies.get('congress')
      this.url = `${window._CONFIG.APP_READY}?path=miniapp&appid=${options.id}&token=${token}#/newbi/auth`
    })
  }
}
</script>
<style>
</style>