Jacob
2026-10-13 c0bd0b23ee40d6f3fea3a42c11c256622ab3e45a
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
<template>
   <web-view class="web-view" :webview-styles="webviewStyles" :src="url" :style="{width: windowW + 'px', height: windowH + 'px'}"></web-view>
</template>
 
<script>
   import {
       mapGetters
   } from "vuex";
   export default {
       computed: mapGetters(['chatUrl']),
       data() {
           return {
               windowH: 0,
               windowW: 0,
               webviewStyles: {
                   progress: {
                       color: 'transparent'
                   }
               },
               url: ''
           }
       },
       onLoad(option) {
           this.url = this.chatUrl;
           try {
               const res = uni.getSystemInfoSync();
               this.windowW = res.windowWidth;
               this.windowH = res.windowHeight;
           } catch (e) {
               // error
           }
       }
   }
</script>