lin
2026-07-09 1c9a1dced28b40e44159d05f83f51b428378ceb5
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
<template>
  <view class="content">
    <!-- #ifdef APP-PLUS -->
    <web-view  :src="src"></web-view>
    <!-- #endif -->
    <!-- #ifdef H5 -->
    <iframe class="iframe" :src="src" frameborder="0"></iframe>
    <!-- #endif -->
  </view>
</template>
 
<script>
export default {
 
  data() {
    return {
      src: null,
      title: null,
      hideRightIcon: false,
    };
  },
  onLoad(option) {
    if (option && option.src) {
      this.src = option.src;
    }
  },
};
</script>
 
<style>
/* #ifdef H5 */
.iframe {
  width: 100%;
  overflow: hidden;
  height: 100%;
}
.content {
  height: calc(100vh - 44px);
  padding: 0;
  display: flex;
  flex-direction: column;
  background: rgb(217, 181, 152);
}
.iframe {
  flex: 1;
}
/* #endif */
</style>