查缺补漏

This commit is contained in:
@fawn-nine
2024-06-26 14:15:16 +08:00
parent 0374ef034a
commit ac9364bbf6
19 changed files with 539 additions and 184 deletions

View File

@@ -3,7 +3,7 @@
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="新闻详情"></z-nav-bar>
<web-view :webview-styles="webviewStyles" :src="surl"></web-view>
<web-view v-if="urlVisible" :webview-styles="webviewStyles" :src="surl"></web-view>
<!-- <music-play :playData="playData"></music-play> -->
</view>
</template>
@@ -23,23 +23,27 @@
news: {
content: '',
title: ''
},
},
source:'',
urlVisible:false,
surl:'',
type:null,
webviewStyles: {
progress: {
color: '#FF3333'
color: '#55aaff'
}
},
};
},
//第一次加载
onLoad(e) {
// 隐藏原生的tabbar
uni.hideTabBar();
this.surl = e.url
uni.hideTabBar();
this.newsId = e.newsId
this.type = e.type
this.surl = e.url
this.source = e.source
console.log(e, '------')
// #ifdef APP-PLUS
const pages = getCurrentPages()
@@ -71,9 +75,6 @@
// this.surl = this.newsObj.url
this.urlVisible = true
this.news = {}
}else{
this.getData();
this.urlVisible = false
}