Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
470f88ad
Commit
470f88ad
authored
Nov 08, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新剪裁
parent
7e312ec3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/main/webapp/WEB-INF/system/user/user_view.html
+5
-5
src/main/webapp/assets/modular/system/user/user_view.js
+6
-6
No files found.
src/main/webapp/WEB-INF/system/user/user_view.html
View file @
470f88ad
...
...
@@ -238,8 +238,8 @@
</div>
<div
class=
"btn-group btn-group-crop"
>
<button
type=
"button"
class=
"btn btn-info"
data-method=
"getCroppedCanvas"
data-option=
"{ "maxWidth":
4096, "maxHeight": 4096
}"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("getCroppedCanvas", { maxWidth: 4096, maxHeight: 4096
})"
>
上传头像
</span>
<button
type=
"button"
class=
"btn btn-info"
data-method=
"getCroppedCanvas"
data-option=
"{ "maxWidth":
350, "maxHeight": 350
}"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("getCroppedCanvas", { maxWidth: 350, maxHeight: 350
})"
>
上传头像
</span>
</button>
</div>
...
...
@@ -260,15 +260,15 @@
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"getCroppedCanvasTitle"
>
Cropped
</h5>
<h5
class=
"modal-title"
id=
"getCroppedCanvasTitle"
>
预览
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
></div>
<div
class=
"modal-footer"
>
<
button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Close
</button
>
<
a
class=
"btn btn-primary"
id=
"download"
href=
"javascript:void(0);"
download=
"cropped.jpg"
>
Download
</a
>
<
a
class=
"btn btn-info"
id=
"download"
href=
"javascript:void(0);"
download=
"cropped.jpg"
>
上传
</a
>
<
button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
关闭
</button
>
</div>
</div>
</div>
...
...
src/main/webapp/assets/modular/system/user/user_view.js
View file @
470f88ad
...
...
@@ -37,22 +37,22 @@ $(function () {
// Cropper
$image
.
on
({
ready
:
function
(
e
)
{
console
.
log
(
e
.
type
);
//
console.log(e.type);
},
cropstart
:
function
(
e
)
{
console
.
log
(
e
.
type
,
e
.
detail
.
action
);
//
console.log(e.type, e.detail.action);
},
cropmove
:
function
(
e
)
{
console
.
log
(
e
.
type
,
e
.
detail
.
action
);
//
console.log(e.type, e.detail.action);
},
cropend
:
function
(
e
)
{
console
.
log
(
e
.
type
,
e
.
detail
.
action
);
//
console.log(e.type, e.detail.action);
},
crop
:
function
(
e
)
{
console
.
log
(
e
.
type
);
//
console.log(e.type);
},
zoom
:
function
(
e
)
{
console
.
log
(
e
.
type
,
e
.
detail
.
ratio
);
//
console.log(e.type, e.detail.ratio);
}
}).
cropper
(
options
);
...
...
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