unknown 2 years ago
parent
commit
cf3863db56

File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/index.html


File diff suppressed because it is too large
+ 2 - 0
qwh5/dist/js/app.02b15c8f.js


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/js/app.d16a32c0.js.map


File diff suppressed because it is too large
+ 0 - 2
qwh5/dist/js/app.d16a32c0.js


+ 12 - 18
qwh5/src/views/radar.vue

@@ -1,6 +1,8 @@
1 1
 <template>
2 2
   <div class="about">
3
-    <div>THIS IS A ABOUT PAGE</div>
3
+    <iframe :src="detialURL+'#toolbar=0'" frameborder="0" style="width: 100%;height: 700px;" v-if="detialType==2 || detialType==1"></iframe>
4
+    <img style="width: 100%;height:auto;" :src="detialURL" alt="" v-show="detialType==3">
5
+    <video :src="detialURL" v-show="detialType==4"  controls="controls" style="width: 100%;height: 500px;"></video>
4 6
   </div>
5 7
 </template>
6 8
 <script lang="ts" >
@@ -14,28 +16,18 @@ export default {
14 16
   // },
15 17
   setup(props) {
16 18
     // console.log(props.title)
19
+    //   1链接 2PDF 3图片 4视频
20
+    const detialType = ref();
21
+    const detialURL = ref();
17 22
     const router = useRouter();
18
-    // const query_Obj = '';
19 23
     const query_Obj = router.currentRoute.value.query
20 24
     const url_st = ref()//企微地址,需要在企微环境中打开
21 25
     const locationHref = window.location.href.split('#/radar')[0].split('index.html?')[1]
22
-
23
-
24
-    // console.log('window.location.href',window.location.href);
25
-    // console.log('#/radar [0]',window.location.href.split('#/radar')[0]);
26
-    // console.log('#/radar [0] []',window.location.href.split('#/radar')[0].split('index.html?')[1]);
27
-    // console.log('code state',window.location.href.split('#/radar')[0].split('index.html?')[1].split['&']);
28
-    // console.log('router',router);
29
-    // console.log('router.currentRoute',router.currentRoute);
30
-    // console.log(router.currentRoute.value.fullPath);
31
-
26
+    //
32 27
     let a= locationHref
33 28
     let b_code = a.split('&')[0]
34 29
     let c_state = a.split('&')[1]
35
-    console.log(b_code);
36
-    console.log(c_state);
37
-    console.log(b_code.substr(5));
38
-    console.log(c_state.substr(6));
30
+
39 31
 
40 32
 
41 33
     // const get_token_timestamp = () => {
@@ -84,7 +76,9 @@ export default {
84 76
 
85 77
         }
86 78
       }).then((res) => {
87
-
79
+          detialType.value = res.data.rst.type
80
+          const now_url=JSON.parse(res.data.rst.url_list)
81
+          detialURL.value=now_url[0]
88 82
       }).catch((err) => {
89 83
         console.log(err)
90 84
       })
@@ -115,7 +109,7 @@ export default {
115 109
     }
116 110
 
117 111
     //
118
-    return {getUserInfo,getRadarDetial,behaviorReport,url_st,router}
112
+    return {getUserInfo,getRadarDetial,behaviorReport,url_st,router,detialType,detialURL}
119 113
   }
120 114
 }
121 115
 </script>