Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uni-app-ddh-shop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanhai
uni-app-ddh-shop
Commits
681683d8
Commit
681683d8
authored
Nov 01, 2024
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产回归
parent
5f5e8ed0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
setting.vue
pages/setting/setting.vue
+8
-0
websrc.vue
pages/web/websrc.vue
+11
-13
No files found.
pages/setting/setting.vue
View file @
681683d8
...
...
@@ -142,6 +142,14 @@
goOut
(){
// this.userHidden=false
this
.
outHidden
=
false
const
pages
=
getCurrentPages
();
console
.
log
(
pages
.
length
,
'写'
)
pages
.
forEach
(
page
=>
{
console
.
log
(
page
.
route
,
'路由信息'
)
})
},
cancelAccount
(){
//注销账号
...
...
pages/web/websrc.vue
View file @
681683d8
...
...
@@ -88,15 +88,13 @@ export default {
}
},
onUnload
()
{
uni
.
$off
(
'loadingSubnvue'
);
//移除监听配置的原生子窗体
console
.
log
(
'onUnload=+++++++++++'
)
const
wv
=
this
.
$scope
.
$getAppWebview
();
console
.
log
(
wv
,
'WebView '
)
wv
.
clear
()
wv
.
close
()
},
methods
:
{
subnvue_open
()
{
this
.
subNVue
=
uni
.
getSubNVueById
(
'loadingSubnvue'
);
//通过id获取nvue子窗体
this
.
subNVue
.
show
();
},
handleMessage
(
e
)
{
const
data
=
e
.
detail
.
data
;
if
(
!
data
||
data
.
lenght
===
0
)
{
...
...
@@ -446,16 +444,16 @@ export default {
},
// 活体认证
async
uniFace
(
config
)
{
console
.
log
(
config
,
'config'
)
uni
.
setStorageSync
(
'userFData'
,
config
)
console
.
log
(
config
,
'config'
)
uni
.
setStorageSync
(
'userFData'
,
config
)
// 检查相机权限
// if (!this.CheckCamera()) return;
const
that
=
this
;
try
{
CheckUniFace
((
data
)
=>
{
try
{
CheckUniFace
((
data
)
=>
{
that
.
GetWebView
().
evalJS
(
`receiveUniFace('
${
JSON
.
stringify
(
data
)}
')`
)
})
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
,
'获取人脸失败'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment