Commit b365cc37 authored by ly's avatar ly

1

parent 5070011f
......@@ -245,8 +245,7 @@
"path": "pages/web/web",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": "",
"navigationStyle": "custom"
"navigationBarTitleText": ""
}
},
{
......
<template>
<view class="page-web">
<!-- 导航栏 -->
<!-- <navigation-bar v-if="showNavBar"></navigation-bar> -->
<web-view ref='webview' :webview-styles="webviewStyles" @message="handleMessage" :src="src"></web-view>
</view>
</template>
......@@ -24,15 +26,14 @@
titleVal: '',
typePage: false,
deviceStatus: '',
showNavBar: true ,// 控制导航栏是否显示
viewerUrl: '/hybrid/html/web/viewer.html'
}
},
async onLoad(options) {
console.log(options,typeof(options),'options222')
const that = this
if(options.url){
console.log(options.url,'6666')
that.src=options.url
}
uni.getStorage({
......@@ -73,7 +74,14 @@
this.toast('缺少方法名', 'error')
return
}
console.log(data,'data222')
// if (data === 'hideNavBar') {
// console.log(data,'data333')
// this.showNavBar = false;
// } else if (data === 'showNavBar') {
// console.log(data,'data444')
// this.showNavBar = true;
// }
if (params) {
this[name](params)
} else {
......@@ -173,14 +181,14 @@
console.log('titleNView的值')
try {
plus.navigator.setFullscreen(true)
// let pages = getCurrentPages();
// let page = pages[pages.length - 1];
// let currentWebView = page.$getAppWebview();
// let titleNView = currentWebView.getStyle().titleNView;
// console.log(titleNView, 'titleNView的值')
// currentWebView.setStyle({
// titleNView: false
// })
let pages = getCurrentPages();
let page = pages[pages.length - 1];
let currentWebView = page.$getAppWebview();
let titleNView = currentWebView.getStyle().titleNView;
console.log(titleNView, 'titleNView的值')
currentWebView.setStyle({
titleNView: false
})
} catch (err) {
this.toast('隐藏导航了报错')
}
......@@ -197,7 +205,7 @@
titleNView: {}
})
} catch (err) {
this.toast('拨打电话报错')
this.toast('显示导航报错')
}
},
// 实名认证正面
......@@ -617,5 +625,10 @@
width: 100%;
height: 100%;
}
navigation-bar{
width: 100vw;
height: 90rpx;
background: #fff;
}
}
</style>
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment