Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
951fbef2
Commit
951fbef2
authored
Jul 30, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 相册不授权处理
parent
ae4c5cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
preview.vue
src/components/photo/preview.vue
+11
-7
No files found.
src/components/photo/preview.vue
View file @
951fbef2
...
...
@@ -75,26 +75,30 @@
if
(
photo
.
tempPath
.
origin
&&
photo
?.
waterSetting
?.
hasOrigin
){
// 保存原图到本地
path
=
photo
.
tempPath
.
origin
let
result
=
await
this
.
saveLocal
(
path
)
if
(
result
){
this
.
saveLocal
(
path
).
then
(
res
=>
{
uni
.
showToast
({
icon
:
'none'
,
title
:
'已将照片原图保存到本地相册'
})
}
}
)
}
if
(
photo
.
tempPath
.
mixWater
){
// 保存水印处理图片到本地
path
=
photo
.
tempPath
.
mixWater
let
result1
=
await
this
.
saveLocal
(
path
)
if
(
result1
){
this
.
saveLocal
(
path
).
then
(
res
=>
{
uni
.
showToast
({
icon
:
'none'
,
title
:
'已将水印图片保存到本地相册'
})
resolve
()
}
}).
catch
(
e
=>
{
uni
.
showToast
({
icon
:
'none'
,
title
:
e
})
resolve
()
})
}
})
},
...
...
@@ -105,7 +109,7 @@
success
()
{
resolve
(
true
)
},
fail
()
{
fail
(
e
)
{
reject
(
'保存失败'
)
}
})
...
...
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