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({
......@@ -47,7 +48,7 @@
let pages = getCurrentPages();
let page = pages[pages.length - 1];
let currentWebView = page.$getAppWebview();
},
methods: {
......@@ -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 {
......@@ -170,35 +178,35 @@
},
// 隐藏导航了
HideNavBar() {
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
// })
} catch (err) {
this.toast('隐藏导航了报错')
}
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
})
} catch (err) {
this.toast('隐藏导航了报错')
}
},
// 显示导航了
ShowNavBar() {
try {
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: {}
})
} catch (err) {
this.toast('拨打电话报错')
}
try {
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: {}
})
} catch (err) {
this.toast('显示导航报错')
}
},
// 实名认证正面
Camera_OCR_Front(config) {
......@@ -617,5 +625,10 @@
width: 100%;
height: 100%;
}
navigation-bar{
width: 100vw;
height: 90rpx;
background: #fff;
}
}
</style>
......@@ -2,7 +2,7 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/index/index","pages/sort/index","pages/my/index","pages/recruit/index","pages/recruitResult/index","pages/category/category","pages/application/application","pages/myneed/myneed","pages/Ineed/Ineed","pages/productDetails/productDetails","pages/detailResult/detailResult","pages/useFeed/useFeed","pages/lookGoods/lookGoods","pages/login/login","pages/prolist/prolist","pages/setting/setting","pages/webview/webview","pages/indexfinance/index","pages/myfinance/index","pages/bill/index","pages/application/application","pages/auth/auth","pages/face/face","pages/baseInfo/baseInfo","pages/creditResult/creditResult","pages/loanlication/application","pages/feedback/feedback","pages/addBank/addBank","pages/loan/loan","pages/loanResult/loanResult","pages/billDetail/billDetail","pages/repayment/repayment","pages/pay/pay","pages/payResult/payResult","pages/lookBank/lookBank","pages/web/web","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#F8F8F8","bounce":"none"},"tabBar":{"borderStyle":"white","color":"#BBBBBB","selectedColor":"#2263E6","iconWidth":"24px","height":"52px","fontSize":"12px","list":[{"pagePath":"pages/index/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"首页"},{"pagePath":"pages/indexfinance/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"借钱"},{"pagePath":"pages/bill/index","iconPath":"static/tab/billh.png","selectedIconPath":"static/tab/bill.png","text":"账单"},{"pagePath":"pages/my/index","iconPath":"static/tab/my-h.png","selectedIconPath":"static/tab/my.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"多典花","compilerVersion":"4.24","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom","bounce":"none"}},{"path":"/pages/sort/index","meta":{},"window":{"navigationBarTitleText":"款式"}},{"path":"/pages/my/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/recruit/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"鉴定师招聘"}},{"path":"/pages/recruitResult/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/category/category","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"选择鉴定品类"}},{"path":"/pages/application/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/myneed/myneed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要的"}},{"path":"/pages/Ineed/Ineed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要"}},{"path":"/pages/productDetails/productDetails","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"商品详情"}},{"path":"/pages/detailResult/detailResult","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/useFeed/useFeed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"用户反馈"}},{"path":"/pages/lookGoods/lookGoods","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/login/login","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"登录"}},{"path":"/pages/prolist/prolist","meta":{},"window":{"navigationBarTitleText":"相关协议"}},{"path":"/pages/setting/setting","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"设置"}},{"path":"/pages/webview/webview","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/indexfinance/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/myfinance/index","meta":{},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/bill/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"账单"}},{"path":"/pages/auth/auth","meta":{},"window":{"navigationBarTitleText":"实名认证"}},{"path":"/pages/face/face","meta":{},"window":{"navigationBarTitleText":"人脸认证"}},{"path":"/pages/baseInfo/baseInfo","meta":{},"window":{"navigationBarTitleText":"基础信息"}},{"path":"/pages/creditResult/creditResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/loanlication/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/feedback/feedback","meta":{},"window":{"navigationBarTitleText":"意见反馈"}},{"path":"/pages/addBank/addBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"添加银行卡"}},{"path":"/pages/loan/loan","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"借款申请"}},{"path":"/pages/loanResult/loanResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/billDetail/billDetail","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"账单详情"}},{"path":"/pages/repayment/repayment","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"还款金额确认"}},{"path":"/pages/pay/pay","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支付"}},{"path":"/pages/payResult/payResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/lookBank/lookBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支持的银行卡"}},{"path":"/pages/web/web","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"","navigationStyle":"custom"}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}}];
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom","bounce":"none"}},{"path":"/pages/sort/index","meta":{},"window":{"navigationBarTitleText":"款式"}},{"path":"/pages/my/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/recruit/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"鉴定师招聘"}},{"path":"/pages/recruitResult/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/category/category","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"选择鉴定品类"}},{"path":"/pages/application/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/myneed/myneed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要的"}},{"path":"/pages/Ineed/Ineed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要"}},{"path":"/pages/productDetails/productDetails","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"商品详情"}},{"path":"/pages/detailResult/detailResult","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/useFeed/useFeed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"用户反馈"}},{"path":"/pages/lookGoods/lookGoods","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/login/login","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"登录"}},{"path":"/pages/prolist/prolist","meta":{},"window":{"navigationBarTitleText":"相关协议"}},{"path":"/pages/setting/setting","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"设置"}},{"path":"/pages/webview/webview","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/indexfinance/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/myfinance/index","meta":{},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/bill/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"账单"}},{"path":"/pages/auth/auth","meta":{},"window":{"navigationBarTitleText":"实名认证"}},{"path":"/pages/face/face","meta":{},"window":{"navigationBarTitleText":"人脸认证"}},{"path":"/pages/baseInfo/baseInfo","meta":{},"window":{"navigationBarTitleText":"基础信息"}},{"path":"/pages/creditResult/creditResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/loanlication/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/feedback/feedback","meta":{},"window":{"navigationBarTitleText":"意见反馈"}},{"path":"/pages/addBank/addBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"添加银行卡"}},{"path":"/pages/loan/loan","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"借款申请"}},{"path":"/pages/loanResult/loanResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/billDetail/billDetail","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"账单详情"}},{"path":"/pages/repayment/repayment","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"还款金额确认"}},{"path":"/pages/pay/pay","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支付"}},{"path":"/pages/payResult/payResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/lookBank/lookBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支持的银行卡"}},{"path":"/pages/web/web","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
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