查缺补漏
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user