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
a938d021
Commit
a938d021
authored
May 13, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
相机设置样式
parent
397835be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
33 deletions
+2
-33
preview.vue
src/components/photo/preview.vue
+1
-28
setting.vue
src/components/photo/setting.vue
+1
-0
index.vue
src/components/take/index.vue
+0
-5
No files found.
src/components/photo/preview.vue
View file @
a938d021
...
@@ -73,17 +73,7 @@
...
@@ -73,17 +73,7 @@
})
})
}
}
}
}
// if(photo.currentItem){
// photo.currentItem.imageList.unshift(photo.tempPath.mixWater)
// }
// if(photo.productList && photo.productList[photo.topIndex]){
// const topArr = photo.productList[photo.topIndex]
// if(topArr[photo.itemIndex]){
// topArr[photo.itemIndex].imageList.push(photo.tempPath.mixWater)
// }
// }
// photo.
if
(
photo
.
tempPath
.
mixWater
){
if
(
photo
.
tempPath
.
mixWater
){
// 保存水印处理图片到本地
// 保存水印处理图片到本地
path
=
photo
.
tempPath
.
mixWater
path
=
photo
.
tempPath
.
mixWater
...
@@ -150,24 +140,7 @@
...
@@ -150,24 +140,7 @@
}
else
{
}
else
{
this
.
$emit
(
'finish'
)
this
.
$emit
(
'finish'
)
}
}
},
downloadImages
()
{
let
self
=
this
;
for
(
let
url
of
this
.
images
)
{
uni
.
downloadFile
({
url
:
url
,
//仅为示例,并非真实的资源
success
(
res
)
{
// 只要服务器有响应数据,就会把响应内容写入文件并进入 success 回调,业务需要自行判断是否下载到了想要的内容
if
(
res
.
statusCode
===
200
)
{
self
.
files
.
push
(
res
.
tempFilePath
)
}
},
fail
(
e
)
{
}
})
}
}
},
}
}
}
}
</
script
>
</
script
>
...
...
src/components/photo/setting.vue
View file @
a938d021
...
@@ -265,6 +265,7 @@
...
@@ -265,6 +265,7 @@
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
100vh
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
...
...
src/components/take/index.vue
View file @
a938d021
...
@@ -206,10 +206,6 @@
...
@@ -206,10 +206,6 @@
},
},
updateTime
()
{
updateTime
()
{
this
.
waterInfo
.
date
=
this
.
getTime
()
this
.
waterInfo
.
date
=
this
.
getTime
()
// let timer = setTimeout(() => {
// clearTimeout(timer);
// this.updateTime()
// }, 1000)
},
},
setCameraInfo
(
type
)
{
setCameraInfo
(
type
)
{
// 设置相机前置后置、闪关灯等
// 设置相机前置后置、闪关灯等
...
@@ -261,7 +257,6 @@
...
@@ -261,7 +257,6 @@
const
{
const
{
errMsg
errMsg
}
=
e
.
detail
}
=
e
.
detail
// console.log(e.detail, 'e.detail')
if
(
errMsg
!==
'insertCamera:fail auth deny'
)
{
if
(
errMsg
!==
'insertCamera:fail auth deny'
)
{
return
return
}
}
...
...
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