Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
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
陈玉桐
marketing
Commits
e96cbc3b
Commit
e96cbc3b
authored
Dec 06, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
058e7cd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
tool.vue
src/views/tool.vue
+25
-5
No files found.
src/views/tool.vue
View file @
e96cbc3b
...
@@ -18,7 +18,10 @@
...
@@ -18,7 +18,10 @@
@
realTime=
"realTime"
@
realTime=
"realTime"
@
imgLoad=
"imgLoad"
@
imgLoad=
"imgLoad"
></vueCropper>
></vueCropper>
<div
@
click=
"cropperShow=false"
>
完成
</div>
<div
class=
"cropperOpt"
>
<span
@
click=
"cropperShow=false"
>
取消
</span>
<span
@
click=
"croppSure"
>
完成
</span>
</div>
</div>
</div>
<div
class=
"preview-box"
>
<div
class=
"preview-box"
>
<div>
预览:
</div>
<div>
预览:
</div>
...
@@ -351,6 +354,11 @@ export default {
...
@@ -351,6 +354,11 @@ export default {
console
.
log
(
'imgLoad'
)
console
.
log
(
'imgLoad'
)
console
.
log
(
msg
)
console
.
log
(
msg
)
},
},
croppSure
()
{
//裁剪完成
this
.
uploadPic
=
this
.
option
.
img
this
.
cropperShow
=
false
},
create
()
{
create
()
{
// 使input失去焦点
// 使input失去焦点
document
.
getElementById
(
"currentDayInput"
).
blur
()
document
.
getElementById
(
"currentDayInput"
).
blur
()
...
@@ -480,12 +488,12 @@ export default {
...
@@ -480,12 +488,12 @@ export default {
localId
:
res
.
localIds
[
0
],
// 图片的localID
localId
:
res
.
localIds
[
0
],
// 图片的localID
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
localData
.
substr
(
0
,
5
)
!=
'data:'
)
{
if
(
res
.
localData
.
substr
(
0
,
5
)
!=
'data:'
)
{
me
.
uploadPic
=
'data:image;base64,'
+
res
.
localData
//
me.uploadPic = 'data:image;base64,' + res.localData
me
.
option
.
img
=
me
.
uploadPic
me
.
option
.
img
=
'data:image;base64,'
+
res
.
localData
me
.
cropperShow
=
true
me
.
cropperShow
=
true
}
else
{
}
else
{
me
.
uploadPic
=
res
.
localData
// localData是图片的base64数据,可以用img标签显示
//
me.uploadPic = res.localData // localData是图片的base64数据,可以用img标签显示
me
.
cropperShow
=
true
me
.
cropperShow
=
true
me
.
option
.
img
=
me
.
uploadPic
me
.
option
.
img
=
me
.
uploadPic
...
@@ -568,9 +576,21 @@ export default {
...
@@ -568,9 +576,21 @@ export default {
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
z-index
:
9999
;
z-index
:
10000
;
.cropperOpt{
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
span{
padding
:
15px
20px
;
}
}
}
}
}
}
#posterCon
{
#posterCon
{
padding
:
10px
35.5px
0
;
padding
:
10px
35.5px
0
;
>img{
>img{
...
...
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