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
795ced10
Commit
795ced10
authored
Oct 11, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel
into develop
parents
b54a9412
71a8efea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
getPortrait.vue
pages/album/getPortrait.vue
+10
-1
No files found.
pages/album/getPortrait.vue
View file @
795ced10
...
...
@@ -25,7 +25,7 @@
</view>
</view>
<text
class=
"tip"
>
获取照片需先在拍摄点摄影
</text>
<u-mask
:show=
"maskShow"
@
click=
"
maskShow = false
"
>
<u-mask
:show=
"maskShow"
@
click=
"
closeClick
"
>
<view
class=
"mask"
>
<text
class=
"countdown"
:class=
"
{'hidden': maskCount
<
=
0
}"
>
{{
maskCount
}}
s
</text>
<view
class=
"tip"
>
...
...
@@ -58,6 +58,7 @@ export default {
queryData
:
{},
//查询参数
defaultBrightness
:
0.5
,
//屏幕亮度
options
:
{},
//路由传参
loop
:
null
//弹窗关闭倒计时
}
},
methods
:
{
...
...
@@ -68,6 +69,11 @@ export default {
delta
:
1
})
},
closeClick
()
{
if
(
this
.
maskCount
>
0
)
return
this
.
maskShow
=
false
this
.
takePhoto
()
},
recordDeviceInfo
()
{
//---记录设备信息
this
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
// 状态栏高度
this
.
capsule
=
uni
.
getMenuButtonBoundingClientRect
()
// 胶囊大小、位置数据
...
...
@@ -179,6 +185,7 @@ export default {
},
handleNotFound
()
{
//---处理没有找到照片或返回错误的逻辑
this
.
maskShow
=
true
this
.
maskCount
=
3
var
loop
=
setInterval
(()
=>
{
this
.
maskCount
-=
1
if
(
this
.
maskCount
<=
0
)
{
...
...
@@ -274,11 +281,13 @@ export default {
width
:
100%
;
height
:
100%
;
border-radius
:
50%
;
overflow
:
hidden
;
}
.circle
{
border
:
1px
dashed
#999
;
box-sizing
:
border-box
;
background-color
:
#fff
;
-webkit-transform
:
rotate
(
0deg
);
// z-index: 100;
}
.surface
{
...
...
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