Commit 681683d8 authored by caimeng's avatar caimeng

生产回归

parent 5f5e8ed0
...@@ -142,6 +142,14 @@ ...@@ -142,6 +142,14 @@
goOut(){ goOut(){
// this.userHidden=false // this.userHidden=false
this.outHidden=false this.outHidden=false
const pages = getCurrentPages();
console.log(pages.length,'写')
pages.forEach(page=>{
console.log(page.route,'路由信息')
})
}, },
cancelAccount(){ cancelAccount(){
//注销账号 //注销账号
......
...@@ -88,15 +88,13 @@ export default { ...@@ -88,15 +88,13 @@ export default {
} }
}, },
onUnload() { onUnload() {
uni.$off('loadingSubnvue'); //移除监听配置的原生子窗体 console.log('onUnload=+++++++++++')
const wv = this.$scope.$getAppWebview();
console.log(wv,'WebView ')
wv.clear()
wv.close()
}, },
methods: { methods: {
subnvue_open() {
this.subNVue = uni.getSubNVueById('loadingSubnvue'); //通过id获取nvue子窗体
this.subNVue.show();
},
handleMessage(e) { handleMessage(e) {
const data = e.detail.data; const data = e.detail.data;
if (!data || data.lenght === 0) { if (!data || data.lenght === 0) {
...@@ -446,16 +444,16 @@ export default { ...@@ -446,16 +444,16 @@ export default {
}, },
// 活体认证 // 活体认证
async uniFace(config) { async uniFace(config) {
console.log(config,'config') console.log(config, 'config')
uni.setStorageSync('userFData',config) uni.setStorageSync('userFData', config)
// 检查相机权限 // 检查相机权限
// if (!this.CheckCamera()) return; // if (!this.CheckCamera()) return;
const that = this; const that = this;
try{ try {
CheckUniFace((data)=>{ CheckUniFace((data) => {
that.GetWebView().evalJS(`receiveUniFace('${JSON.stringify(data)}')`) that.GetWebView().evalJS(`receiveUniFace('${JSON.stringify(data)}')`)
}) })
}catch(err){ } catch (err) {
console.log(err, '获取人脸失败') console.log(err, '获取人脸失败')
} }
......
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