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
Show 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 @@
"navigationStyle"
:
"custom"
}
},
//
{
//
"path"
:
"getPortrait"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
""
,
//
"enablePullDownRefresh"
:
false
,
//
"navigationStyle"
:
"custom"
//
}
//
},
{
"path"
:
"getPortrait"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"myPhotoAlbum/myPhotoAlbum"
,
"style"
:
{
...
...
pages/album/getPortrait.vue
View file @
1322f684
<
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>
<text
class=
"title"
>
扫脸获取您的照片
</text>
<view
class=
"scan"
>
...
...
@@ -36,12 +36,16 @@
</view>
</u-overlay>
</view>
<view
v-else
style=
"padding: 100rpx;text-align: center;font-size: 36rpx;"
>
升级中...
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
showBody
:
false
,
statusBarHeight
:
0
,
capsule
:
0
,
navHeight
:
0
,
...
...
@@ -58,6 +62,27 @@ export default {
}
},
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
()
{
if
(
this
.
maskCount
>
0
)
return
this
.
maskShow
=
false
...
...
@@ -243,7 +268,8 @@ export default {
uni
.
setScreenBrightness
({
value
:
0.8
,
//屏幕亮度值,范围 0~1,0 最暗,1 最亮
})
this
.
openCamera
()
this
.
loadIcon
()
}
}
</
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