Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 46df7d96
authored
Jun 30, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
fd0dfbcf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
24 deletions
linkwe-pc/env.js
linkwe-pc/src/layout/components/Navbar.vue
linkwe-pc/src/styles/index.scss
linkwe-pc/src/views/system/user/profile/userAvatar.vue
linkwe-pc/env.js
View file @
46df7d9
...
...
@@ -3,9 +3,9 @@ const envs = {
development
:
{
DOMAIN
:
'http://demo.linkwechat.cn'
,
BASE_URL
:
'/'
,
// 路由基础路径
BASE_API
:
'http://demo.linkwechat.cn/
dev
-api'
,
SYSTEM_API
:
'/
dev
-api'
,
KF_API
:
'/
dev
-kf'
,
BASE_API
:
'http://demo.linkwechat.cn/
prod
-api'
,
SYSTEM_API
:
'/
prod
-api'
,
KF_API
:
'/
prod
-kf'
,
},
test
:
{
DOMAIN
:
'http://demo.linkwechat.cn'
,
...
...
linkwe-pc/src/layout/components/Navbar.vue
View file @
46df7d9
...
...
@@ -176,6 +176,7 @@ export default {
height
:
35px
;
border-radius
:
10px
;
vertical-align
:
middle
;
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0.1
);
}
.el-icon-caret-bottom
{
...
...
linkwe-pc/src/styles/index.scss
View file @
46df7d9
...
...
@@ -313,27 +313,6 @@ aside {
color
:
#888888
;
}
/* image */
.img-circle
{
border-radius
:
50%
;
}
.img-lg
{
width
:
120px
;
height
:
120px
;
}
.avatar-upload-preview
{
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
50%
,
-50%
);
width
:
180px
;
height
:
180px
;
border-radius
:
50%
;
box-shadow
:
0
0
4px
#ccc
;
overflow
:
hidden
;
}
/* 拖拽列样式 */
.sortable-ghost
{
opacity
:
0
.8
;
...
...
linkwe-pc/src/views/system/user/profile/userAvatar.vue
View file @
46df7d9
...
...
@@ -19,6 +19,7 @@
ref=
"cropper"
:img=
"options.img"
:info=
"true"
:outputType=
"options.outputType"
:autoCrop=
"options.autoCrop"
:autoCropWidth=
"options.autoCropWidth"
:autoCropHeight=
"options.autoCropHeight"
...
...
@@ -89,6 +90,7 @@ export default {
// 弹出层标题
title
:
'修改头像'
,
options
:
{
outputType
:
'png'
,
// 裁剪生成图片的格式 jpeg, png, webp
img
:
store
.
getters
.
avatar
,
//裁剪图片的地址
autoCrop
:
true
,
// 是否默认生成截图框
autoCropWidth
:
200
,
// 默认生成截图框宽度
...
...
@@ -157,3 +159,26 @@ export default {
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.img-circle
{
border-radius
:
50%
;
}
.img-lg
{
width
:
120px
;
height
:
120px
;
border
:
1px
solid
#ddd
;
}
.avatar-upload-preview
{
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
50%
,
-50%
);
width
:
180px
;
height
:
180px
;
border-radius
:
50%
;
box-shadow
:
0
0
4px
#ccc
;
overflow
:
hidden
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment