Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
1322f684
Commit
1322f684
authored
Jul 31, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
相册页面放出
parent
c75ee663
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
11 deletions
+37
-11
pages.json
pages.json
+8
-8
getPortrait.vue
pages/album/getPortrait.vue
+29
-3
No files found.
pages.json
View file @
1322f684
...
@@ -463,14 +463,14 @@
...
@@ -463,14 +463,14 @@
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
//
{
{
//
"path"
:
"getPortrait"
,
"path"
:
"getPortrait"
,
//
"style"
:
{
"style"
:
{
//
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
""
,
//
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
//
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
//
}
}
//
},
},
{
{
"path"
:
"myPhotoAlbum/myPhotoAlbum"
,
"path"
:
"myPhotoAlbum/myPhotoAlbum"
,
"style"
:
{
"style"
:
{
...
...
pages/album/getPortrait.vue
View file @
1322f684
<
template
>
<
template
>
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}" v-if="s
tatusBarHeight
">
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}" v-if="s
howBody
">
<view
class=
"nav-bar"
:style=
"
{'height': navHeight + 'px'}">
</view>
<view
class=
"nav-bar"
:style=
"
{'height': navHeight + 'px'}">
</view>
<text
class=
"title"
>
扫脸获取您的照片
</text>
<text
class=
"title"
>
扫脸获取您的照片
</text>
<view
class=
"scan"
>
<view
class=
"scan"
>
...
@@ -36,12 +36,16 @@
...
@@ -36,12 +36,16 @@
</view>
</view>
</u-overlay>
</u-overlay>
</view>
</view>
<view
v-else
style=
"padding: 100rpx;text-align: center;font-size: 36rpx;"
>
升级中...
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
showBody
:
false
,
statusBarHeight
:
0
,
statusBarHeight
:
0
,
capsule
:
0
,
capsule
:
0
,
navHeight
:
0
,
navHeight
:
0
,
...
@@ -58,6 +62,27 @@ export default {
...
@@ -58,6 +62,27 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
//---加载图标
loadIcon
(){
let
data
=
{
merchantType
:
0
,
//商户类型,其他
}
this
.
$request
(
'scenic/merchantExtendProject/loadList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
let
iconList
=
res
.
data
||
[]
let
list
=
[]
iconList
.
forEach
(
item
=>
{
if
(
item
.
projectStatus
==
0
){
list
.
push
(
item
)
}
})
if
(
list
.
length
>
6
){
this
.
showBody
=
true
this
.
openCamera
()
}
}
})
},
returnClick
()
{
returnClick
()
{
if
(
this
.
maskCount
>
0
)
return
if
(
this
.
maskCount
>
0
)
return
this
.
maskShow
=
false
this
.
maskShow
=
false
...
@@ -145,7 +170,7 @@ export default {
...
@@ -145,7 +170,7 @@ export default {
this
.
queryData
=
res
.
data
this
.
queryData
=
res
.
data
this
.
takePhoto
()
this
.
takePhoto
()
}
else
{
}
else
{
this
.
handleNotFound
()
this
.
handleNotFound
()
uni
.
showToast
({
uni
.
showToast
({
title
:
'查询参数获取失败'
,
title
:
'查询参数获取失败'
,
icon
:
'none'
icon
:
'none'
...
@@ -243,7 +268,8 @@ export default {
...
@@ -243,7 +268,8 @@ export default {
uni
.
setScreenBrightness
({
uni
.
setScreenBrightness
({
value
:
0.8
,
//屏幕亮度值,范围 0~1,0 最暗,1 最亮
value
:
0.8
,
//屏幕亮度值,范围 0~1,0 最暗,1 最亮
})
})
this
.
openCamera
()
this
.
loadIcon
()
}
}
}
}
</
script
>
</
script
>
...
...
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