Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
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
tianzhuanghu
ant-design-pro-vue
Commits
d90042be
Commit
d90042be
authored
Sep 14, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed: account center page
parent
7efa409a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
93 additions
and
8 deletions
+93
-8
index.js
src/router/index.js
+7
-7
Index.vue
src/views/account/center/Index.vue
+85
-0
BaseSetting.vue
src/views/account/settings/BaseSetting.vue
+0
-0
Binding.vue
src/views/account/settings/Binding.vue
+0
-0
Custom.vue
src/views/account/settings/Custom.vue
+0
-0
Index.vue
src/views/account/settings/Index.vue
+0
-0
IndexOld.vue
src/views/account/settings/IndexOld.vue
+1
-1
Notification.vue
src/views/account/settings/Notification.vue
+0
-0
Security.vue
src/views/account/settings/Security.vue
+0
-0
No files found.
src/router/index.js
View file @
d90042be
...
...
@@ -249,13 +249,13 @@ export const asyncRouterMap = [
{
path
:
'/account/center'
,
name
:
'center'
,
component
:
()
=>
import
(
'@/views/account/Index'
),
component
:
()
=>
import
(
'@/views/account/
center/
Index'
),
meta
:
{
title
:
'个人中心'
,
keepAlive
:
true
}
},
{
path
:
'/account/settings'
,
name
:
'settings'
,
component
:
()
=>
import
(
'@/views/account/Index'
),
component
:
()
=>
import
(
'@/views/account/
settings/
Index'
),
meta
:
{
title
:
'个人设置'
,
hideHeader
:
true
,
keepAlive
:
true
},
redirect
:
'/account/settings/base'
,
alwaysShow
:
true
,
...
...
@@ -263,31 +263,31 @@ export const asyncRouterMap = [
{
path
:
'/account/settings/base'
,
name
:
'BaseSettings'
,
component
:
()
=>
import
(
'@/views/account/BaseSetting'
),
component
:
()
=>
import
(
'@/views/account/
settings/
BaseSetting'
),
meta
:
{
title
:
'基本设置'
,
hidden
:
true
,
keepAlive
:
true
}
},
{
path
:
'/account/settings/security'
,
name
:
'SecuritySettings'
,
component
:
()
=>
import
(
'@/views/account/Security'
),
component
:
()
=>
import
(
'@/views/account/
settings/
Security'
),
meta
:
{
title
:
'安全设置'
,
hidden
:
true
,
keepAlive
:
true
}
},
{
path
:
'/account/settings/custom'
,
name
:
'CustomSettings'
,
component
:
()
=>
import
(
'@/views/account/Custom'
),
component
:
()
=>
import
(
'@/views/account/
settings/
Custom'
),
meta
:
{
title
:
'个性化设置'
,
hidden
:
true
,
keepAlive
:
true
}
},
{
path
:
'/account/settings/binding'
,
name
:
'BindingSettings'
,
component
:
()
=>
import
(
'@/views/account/Binding'
),
component
:
()
=>
import
(
'@/views/account/
settings/
Binding'
),
meta
:
{
title
:
'账户绑定'
,
hidden
:
true
,
keepAlive
:
true
}
},
{
path
:
'/account/settings/notification'
,
name
:
'NotificationSettings'
,
component
:
()
=>
import
(
'@/views/account/Notification'
),
component
:
()
=>
import
(
'@/views/account/
settings/
Notification'
),
meta
:
{
title
:
'新消息通知'
,
hidden
:
true
,
keepAlive
:
true
}
},
]
...
...
src/views/account/center/Index.vue
0 → 100644
View file @
d90042be
<
template
>
<a-card
:bordered=
"false"
:bodyStyle=
"
{ padding: '16px 0', height: '100%' }" :style="{ height: '100%' }">
account center page
</a-card>
</
template
>
<
script
>
import
PageLayout
from
'@/components/layout/PageLayout'
import
RouteView
from
"@/components/layout/RouteView"
;
export
default
{
components
:
{
RouteView
,
PageLayout
},
data
()
{
return
{
defaultSelectedKeys
:
[],
// cropper
preview
:
{},
option
:
{
img
:
'/avatar2.jpg'
,
info
:
true
,
size
:
1
,
outputType
:
'jpeg'
,
canScale
:
false
,
autoCrop
:
true
,
// 只有自动截图开启 宽度高度才生效
autoCropWidth
:
180
,
autoCropHeight
:
180
,
fixedBox
:
true
,
// 开启宽度和高度比例
fixed
:
true
,
fixedNumber
:
[
1
,
1
]
},
pageTitle
:
''
}
},
created
()
{
this
.
updateMenu
()
},
methods
:
{
onOpenChange
(
openKeys
)
{
},
updateMenu
()
{
let
routes
=
this
.
$route
.
matched
.
concat
()
this
.
defaultSelectedKeys
=
[
routes
.
pop
().
path
]
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.account-settings-info-main
{
width
:
100%
;
display
:
flex
;
height
:
100%
;
overflow
:
auto
;
.account-settings-info-left
{
border-right
:
1px
solid
#e8e8e8
;
width
:
224px
;
}
.account-settings-info-right
{
flex
:
1
1
;
padding
:
8px
40px
;
.account-settings-info-title
{
color
:
rgba
(
0
,
0
,
0
,
.85
);
font-size
:
20px
;
font-weight
:
500
;
line-height
:
28px
;
margin-bottom
:
12px
;
}
.account-settings-info-view
{
padding-top
:
12px
;
}
}
}
</
style
>
\ No newline at end of file
src/views/account/BaseSetting.vue
→
src/views/account/
settings/
BaseSetting.vue
View file @
d90042be
File moved
src/views/account/Binding.vue
→
src/views/account/
settings/
Binding.vue
View file @
d90042be
File moved
src/views/account/Custom.vue
→
src/views/account/
settings/
Custom.vue
View file @
d90042be
File moved
src/views/account/Index.vue
→
src/views/account/
settings/
Index.vue
View file @
d90042be
File moved
src/views/account/IndexOld.vue
→
src/views/account/
settings/
IndexOld.vue
View file @
d90042be
...
...
@@ -86,7 +86,7 @@
</
template
>
<
script
>
import
{
timeFix
,
welcome
}
from
"../../utils/util"
import
{
timeFix
,
welcome
}
from
"../../
../
utils/util"
import
LayoutMain
from
'@/components/layout/LayoutMain'
import
PageLayout
from
'@/components/layout/PageLayout'
...
...
src/views/account/Notification.vue
→
src/views/account/
settings/
Notification.vue
View file @
d90042be
File moved
src/views/account/Security.vue
→
src/views/account/
settings/
Security.vue
View file @
d90042be
File moved
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