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
8daacf2b
Commit
8daacf2b
authored
Nov 07, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传头像修改
parent
149354e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
91 deletions
+100
-91
src/main/webapp/WEB-INF/system/user/user_view.html
+89
-89
src/main/webapp/assets/common/static/stylefeng/feng.css
+9
-1
src/main/webapp/assets/modular/system/user/user_view.js
+2
-1
No files found.
src/main/webapp/WEB-INF/system/user/user_view.html
View file @
8daacf2b
...
@@ -113,167 +113,167 @@
...
@@ -113,167 +113,167 @@
@ **/
@ **/
<div
class=
"tab-pane"
id=
"avatar"
role=
"tabpanel"
>
<div
class=
"tab-pane"
id=
"avatar"
role=
"tabpanel"
>
<div
class=
"card-block"
>
<div
class=
"card-block"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<div
class=
"img-container"
>
<div
class=
"img-container"
>
<img
id=
"image"
style=
"max-width: 100%;"
src=
"${avatar}"
alt=
"Picture"
>
<img
id=
"image"
style=
"max-width: 100%;"
src=
"${avatar}"
alt=
"Picture"
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
</div>
<div
class=
"col-md-12 docs-buttons"
>
<div
class=
"row p-t-10"
>
<div
class=
"btn-group"
>
<div
class=
"col-md-12 docs-buttons"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"setDragMode"
data-option=
"move"
title=
"Move"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"setDragMode"
data-option=
"move"
title=
"Move"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("setDragMode", "move")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("setDragMode", "move")"
>
<span
class=
"fa fa-arrows"
></span>
<span
class=
"fa fa-arrows"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"setDragMode"
data-option=
"crop"
title=
"Crop"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"setDragMode"
data-option=
"crop"
title=
"Crop"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("setDragMode", "crop")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("setDragMode", "crop")"
>
<span
class=
"fa fa-crop"
></span>
<span
class=
"fa fa-crop"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"zoom"
data-option=
"0.1"
title=
"Zoom In"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"zoom"
data-option=
"0.1"
title=
"Zoom In"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("zoom", 0.1)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("zoom", 0.1)"
>
<span
class=
"fa fa-search-plus"
></span>
<span
class=
"fa fa-search-plus"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"zoom"
data-option=
"-0.1"
title=
"Zoom Out"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"zoom"
data-option=
"-0.1"
title=
"Zoom Out"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("zoom", -0.1)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("zoom", -0.1)"
>
<span
class=
"fa fa-search-minus"
></span>
<span
class=
"fa fa-search-minus"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"-10"
data-second-option=
"0"
title=
"Move Left"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"-10"
data-second-option=
"0"
title=
"Move Left"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", -10, 0)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", -10, 0)"
>
<span
class=
"fa fa-arrow-left"
></span>
<span
class=
"fa fa-arrow-left"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"10"
data-second-option=
"0"
title=
"Move Right"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"10"
data-second-option=
"0"
title=
"Move Right"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", 10, 0)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", 10, 0)"
>
<span
class=
"fa fa-arrow-right"
></span>
<span
class=
"fa fa-arrow-right"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"0"
data-second-option=
"-10"
title=
"Move Up"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"0"
data-second-option=
"-10"
title=
"Move Up"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", 0, -10)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", 0, -10)"
>
<span
class=
"fa fa-arrow-up"
></span>
<span
class=
"fa fa-arrow-up"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"0"
data-second-option=
"10"
title=
"Move Down"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"move"
data-option=
"0"
data-second-option=
"10"
title=
"Move Down"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", 0, 10)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("move", 0, 10)"
>
<span
class=
"fa fa-arrow-down"
></span>
<span
class=
"fa fa-arrow-down"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"rotate"
data-option=
"-45"
title=
"Rotate Left"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"rotate"
data-option=
"-45"
title=
"Rotate Left"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("rotate", -45)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("rotate", -45)"
>
<span
class=
"fa fa-rotate-left"
></span>
<span
class=
"fa fa-rotate-left"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"rotate"
data-option=
"45"
title=
"Rotate Right"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"rotate"
data-option=
"45"
title=
"Rotate Right"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("rotate", 45)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("rotate", 45)"
>
<span
class=
"fa fa-rotate-right"
></span>
<span
class=
"fa fa-rotate-right"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"scaleX"
data-option=
"-1"
title=
"Flip Horizontal"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"scaleX"
data-option=
"-1"
title=
"Flip Horizontal"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("scaleX", -1)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("scaleX", -1)"
>
<span
class=
"fa fa-arrows-h"
></span>
<span
class=
"fa fa-arrows-h"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"scaleY"
data-option=
"-1"
title=
"Flip Vertical"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"scaleY"
data-option=
"-1"
title=
"Flip Vertical"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("scaleY", -1)"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("scaleY", -1)"
>
<span
class=
"fa fa-arrows-v"
></span>
<span
class=
"fa fa-arrows-v"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"crop"
title=
"Crop"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"crop"
title=
"Crop"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("crop")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("crop")"
>
<span
class=
"fa fa-check"
></span>
<span
class=
"fa fa-check"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"clear"
title=
"Clear"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"clear"
title=
"Clear"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("clear")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("clear")"
>
<span
class=
"fa fa-remove"
></span>
<span
class=
"fa fa-remove"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"disable"
title=
"Disable"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"disable"
title=
"Disable"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("disable")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("disable")"
>
<span
class=
"fa fa-lock"
></span>
<span
class=
"fa fa-lock"
></span>
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"enable"
title=
"Enable"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"enable"
title=
"Enable"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("enable")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("enable")"
>
<span
class=
"fa fa-unlock"
></span>
<span
class=
"fa fa-unlock"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"reset"
title=
"Reset"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"reset"
title=
"Reset"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("reset")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("reset")"
>
<span
class=
"fa fa-refresh"
></span>
<span
class=
"fa fa-refresh"
></span>
</span>
</span>
</button>
</button>
<label
class=
"btn btn-primary btn-upload"
for=
"inputImage"
title=
"Upload image file"
>
<label
class=
"btn btn-primary btn-upload"
for=
"inputImage"
title=
"Upload image file"
>
<input
type=
"file"
class=
"sr-only"
id=
"inputImage"
name=
"file"
accept=
".jpg,.jpeg,.png,.gif,.bmp,.tiff"
>
<input
type=
"file"
class=
"sr-only"
id=
"inputImage"
name=
"file"
accept=
".jpg,.jpeg,.png,.gif,.bmp,.tiff"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"Import image with Blob URLs"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"Import image with Blob URLs"
>
<span
class=
"fa fa-upload"
></span>
<span
class=
"fa fa-upload"
></span>
</span>
</span>
</label>
</label>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"destroy"
title=
"Destroy"
>
<button
type=
"button"
class=
"btn btn-primary"
data-method=
"destroy"
title=
"Destroy"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("destroy")"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("destroy")"
>
<span
class=
"fa fa-power-off"
></span>
<span
class=
"fa fa-power-off"
></span>
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"btn-group btn-group-crop"
>
<div
class=
"btn-group btn-group-crop"
>
<button
type=
"button"
class=
"btn btn-success"
data-method=
"getCroppedCanvas"
data-option=
"{ "maxWidth": 4096, "maxHeight": 4096 }"
>
<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
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("getCroppedCanvas", { maxWidth: 4096, maxHeight: 4096 })"
>
上传头像
</span>
Get Cropped Canvas
</button>
</span>
</div>
</button>
<button
type=
"button"
class=
"btn btn-success"
data-method=
"getCroppedCanvas"
data-option=
"{ "width": 160, "height": 90 }"
>
<div
class=
"btn-group btn-group-crop"
>
<button
type=
"button"
class=
"btn btn-info"
data-method=
"getCroppedCanvas"
data-option=
"{ "width": 160, "height": 90 }"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("getCroppedCanvas", { width: 160, height: 90 })"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("getCroppedCanvas", { width: 160, height: 90 })"
>
160
×
90
160
×
90
</span>
</span>
</button>
</button>
<button
type=
"button"
class=
"btn btn-success
"
data-method=
"getCroppedCanvas"
data-option=
"{ "width": 320, "height": 180 }"
>
<button
type=
"button"
class=
"btn btn-info
"
data-method=
"getCroppedCanvas"
data-option=
"{ "width": 320, "height": 180 }"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("getCroppedCanvas", { width: 320, height: 180 })"
>
<span
class=
"docs-tooltip"
data-toggle=
"tooltip"
data-animation=
"false"
title=
"$().cropper("getCroppedCanvas", { width: 320, height: 180 })"
>
320
×
180
320
×
180
</span>
</span>
</button>
</button>
</div>
</div>
<div
class=
"modal fade docs-cropped"
id=
"getCroppedCanvasModal"
aria-hidden=
"true"
aria-labelledby=
"getCroppedCanvasTitle"
role=
"dialog"
tabindex=
"-1"
>
<div
class=
"modal-dialog
"
>
<div
class=
"modal fade docs-cropped"
id=
"getCroppedCanvasModal"
aria-hidden=
"true"
aria-labelledby=
"getCroppedCanvasTitle"
role=
"dialog"
tabindex=
"-1
"
>
<div
class=
"modal-content
"
>
<div
class=
"modal-dialog
"
>
<div
class=
"modal-header
"
>
<div
class=
"modal-content
"
>
<h5
class=
"modal-title"
id=
"getCroppedCanvasTitle"
>
Cropped
</h5
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<h5
class=
"modal-title"
id=
"getCroppedCanvasTitle"
>
Cropped
</h5
>
<span
aria-hidden=
"true"
>
×
</span
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<
/butto
n>
<
span
aria-hidden=
"true"
>
×
</spa
n>
</
div
>
</
button
>
<div
class=
"modal-body"
>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-body"
></div
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Close
</button
>
<div
class=
"modal-footer"
>
<a
class=
"btn btn-primary"
id=
"download"
href=
"javascript:void(0);"
download=
"cropped.jpg"
>
Download
</a
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Close
</button
>
<
/div
>
<
a
class=
"btn btn-primary"
id=
"download"
href=
"javascript:void(0);"
download=
"cropped.jpg"
>
Download
</a
>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/assets/common/static/stylefeng/feng.css
View file @
8daacf2b
...
@@ -36,6 +36,13 @@
...
@@ -36,6 +36,13 @@
text-decoration
:
none
;
text-decoration
:
none
;
}
}
.fixed-table-pagination
.btn
{
.fixed-table-pagination
.btn
{
border-color
:
#DDDDDD
;
border-color
:
#DDDDDD
;
}
.div-center
{
width
:
auto
;
display
:
table
;
margin-left
:
auto
;
margin-right
:
auto
;
}
}
\ No newline at end of file
src/main/webapp/assets/modular/system/user/user_view.js
View file @
8daacf2b
...
@@ -13,8 +13,9 @@ $(function () {
...
@@ -13,8 +13,9 @@ $(function () {
var
$dataScaleX
=
$
(
'#dataScaleX'
);
var
$dataScaleX
=
$
(
'#dataScaleX'
);
var
$dataScaleY
=
$
(
'#dataScaleY'
);
var
$dataScaleY
=
$
(
'#dataScaleY'
);
var
options
=
{
var
options
=
{
aspectRatio
:
16
/
9
,
preview
:
'.img-preview'
,
preview
:
'.img-preview'
,
minContainerWidth
:
500
,
minContainerHeight
:
500
,
crop
:
function
(
e
)
{
crop
:
function
(
e
)
{
$dataX
.
val
(
Math
.
round
(
e
.
detail
.
x
));
$dataX
.
val
(
Math
.
round
(
e
.
detail
.
x
));
$dataY
.
val
(
Math
.
round
(
e
.
detail
.
y
));
$dataY
.
val
(
Math
.
round
(
e
.
detail
.
y
));
...
...
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