111
jhzh
2025-02-11 9f96348fb4f2d0442303aafefb5e9ca39ea85663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!--  -->
<template>
    <div>
        <div class="top_icon">
            <div class="left_back" @click="handleBack()">
                <img src="@/assets/img/zuojiantou.png" alt />
            </div>
            <div class="right_icon">
                {{ $t('hj172') }}
            </div>
        </div>
        <div class="bottomIfr" v-if="onlineShow">
            <!-- <object :data="onlineService" type="text/html" width="100%" height="100%"></object> -->
            <iframe style="height:100%;overflow-y: auto;" class="conentIfr" scrolling="no" :src="onlineService"></iframe>
        </div>
    </div>
</template>
 
<script>
// import * as api from '@/axios/api'
export default {
  data () {
    return {
      onlineShow: false,
      onlineService: ''
    }
  },
  // 生命周期 - 创建完成(访问当前this实例)
  created () {
    this.getInfoSite()
  },
  // 生命周期 - 挂载完成(访问DOM元素)
  mounted () {
  },
  methods: {
    handleBack () {
      // 点击返回/
      this.$router.go(-1)
    },
    getInfoSite () {
      this.onlineService = this.$route.query.url
      this.onlineShow = true
      // window.location.href = this.onlineService;
      // let data = await api.getInfoSite()
      // if (data.status === 0) {
      //   this.onlineService = data.data.onlineService
      //   this.onlineShow = true
      // } else {
      //   this.$store.commit('elAlertShow', { 'elAlertShow': true, 'elAlertText': data.msg })
      // }
    }
  }
}
</script>
<style scoped lang='less'>
/* @import url(); 引入css类 */
.top_icon {
    position: absolute;
    width: 100%;
    height: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999999;
    background-color: #fff;
    box-shadow: 0 0 1px #999;
 
    .left_back {
        width: 10%;
        height: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index:9999;
 
        img {
            width: 0.6rem;
            height: 0.6rem;
        }
    }
 
    .right_icon {
 
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        margin-left: -10%;
        font-size: .4rem;
        font-weight: 800;
 
    }
}
 
.bottomIfr {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  bottom: 0;
 
}
 
.conentIfr {
    width: 100%;
    height: 90%;
    border: none;
    //取消滚动条
    overflow: hidden;
  }
</style>