|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <web-view :src="url" @message="handleGetMessage"/>
|
|
|
+ <web-view v-if="url" :src="url" @message="handleGetMessage"/>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -10,11 +10,11 @@ export default {
|
|
|
return {
|
|
|
url:'',
|
|
|
msgObj:{},
|
|
|
- options:{}
|
|
|
+ options:{}
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- this.options=options
|
|
|
+ this.options=options
|
|
|
wx.setVisualEffectOnCapture({visualEffect:'hidden'})
|
|
|
},
|
|
|
onShow(){
|
|
@@ -32,6 +32,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async init(options){
|
|
|
+ this.url=''
|
|
|
if(options.scene){
|
|
|
const res=await apiGetSceneToParams({scene_key:options.scene})
|
|
|
if(res.code==200){
|
|
@@ -44,7 +45,9 @@ export default {
|
|
|
let fromPage=options.fromPage||''
|
|
|
const timestamp=new Date().getTime()
|
|
|
const token=this.$store.state.user.token
|
|
|
- this.url=`${h5BaseUrl}/hzyb/report/chapterdetail?chapterId=${chapterId}&userId=${this.userInfo.user_id}&fromPage=${fromPage}&token=${token}×tamp=${timestamp}#wechat_redirect`
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.url=`${h5BaseUrl}/hzyb/report/chapterdetail?chapterId=${chapterId}&userId=${this.userInfo.user_id}&fromPage=${fromPage}&token=${token}×tamp=${timestamp}#wechat_redirect`
|
|
|
+ },100)
|
|
|
},
|
|
|
|
|
|
handleGetMessage(e){
|