Jelajahi Sumber

修复横屏

bding 2 tahun lalu
induk
melakukan
9c32a08b3c

+ 2 - 1
pageMy/reportPage/reportPage.vue

@@ -307,8 +307,9 @@ export default {
     },
     // 去往横屏页面
     goRevolvePage() {
+      let token = this.reportInfo.HttpUrl.split("=")[1];
       uni.navigateTo({
-        url: "/pageMy/reportRevolve/reportRevolve?url=" + this.reportInfo.HttpUrl,
+        url: "/pageMy/reportRevolve/reportRevolve?user=" + token + "&url=" + this.reportInfo.HttpUrl,
       });
     },
   },

+ 4 - 4
pageMy/reportRevolve/reportRevolve.vue

@@ -1,10 +1,9 @@
 <template>
   <view class="container reportRevolve-container">
-    <web-view :src="reportUrl" v-if="reportUrl">
-      <!-- <cover-view class="clear-view">
+    <web-view :src="reportUrl" v-if="reportUrl"> </web-view>
+    <!-- <cover-view class="clear-view">
         <cover-image class="clear-icon" @click="isClearHandler" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/close-icon.png"></cover-image>
       </cover-view> -->
-    </web-view>
   </view>
 </template>
 
@@ -26,7 +25,8 @@ export default {
     },
   },
   onLoad(option) {
-    this.reportUrl = option.url;
+    this.reportUrl = option.url + "?token=" + option.user;
+    console.log(option, this.reportUrl);
   },
 };
 </script>