Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gavel-oa-app
Project
Project
Details
Activity
Releases
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
李苏
gavel-oa-app
Commits
f1a0bb95
Commit
f1a0bb95
authored
Jan 16, 2025
by
王向前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置界面
parent
572fba7c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
5 deletions
+25
-5
routes.js
common/router/modules/routes.js
+7
-0
pages.json
pages.json
+7
-0
people.vue
pages/user/people.vue
+6
-1
setting.vue
pages/user/setting.vue
+2
-2
userdetail.vue
pages/user/userdetail.vue
+3
-2
No files found.
common/router/modules/routes.js
View file @
f1a0bb95
...
@@ -50,6 +50,13 @@ const routes = [
...
@@ -50,6 +50,13 @@ const routes = [
title
:
'个人编辑'
,
title
:
'个人编辑'
,
},
},
},
},
{
path
:
'/pages/user/setting'
,
name
:
'setting'
,
meta
:
{
title
:
'设置'
,
},
},
{
{
path
:
'/pages/common/exit'
,
path
:
'/pages/common/exit'
,
name
:
'exit'
,
name
:
'exit'
,
...
...
pages.json
View file @
f1a0bb95
...
@@ -50,6 +50,13 @@
...
@@ -50,6 +50,13 @@
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
"path"
:
"pages/user/setting"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
{
"path"
:
"pages/user/modifyPw"
,
"path"
:
"pages/user/modifyPw"
,
"style"
:
{
"style"
:
{
...
...
pages/user/people.vue
View file @
f1a0bb95
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<text
class=
"text-grey"
>
个人信息
</text>
<text
class=
"text-grey"
>
个人信息
</text>
</view>
</view>
</view>
</view>
<view
class=
"cu-item "
url=
"/pages/user/setting
"
style=
"margin-top: 10px;"
>
<view
class=
"cu-item "
@
tap=
"gotoSettingPage()
"
style=
"margin-top: 10px;"
>
<view
class=
"content"
>
<view
class=
"content"
>
<text
class=
" "
></text>
<text
class=
" "
></text>
<text
class=
"text-grey"
>
系统设置
</text>
<text
class=
"text-grey"
>
系统设置
</text>
...
@@ -138,6 +138,11 @@
...
@@ -138,6 +138,11 @@
name
:
"userdetail"
name
:
"userdetail"
})
})
},
},
gotoSettingPage
(){
this
.
$Router
.
push
({
name
:
"setting"
})
},
toMessage
()
{
toMessage
()
{
this
.
$Router
.
push
({
this
.
$Router
.
push
({
...
...
pages/user/setting.vue
View file @
f1a0bb95
<
template
>
<
template
>
<view
class=
"bg-white"
style=
"height: 100vh;"
>
<view
class=
"bg-white"
style=
"height: 100vh;"
>
<cu-
header
bgColor=
"bg-blue"
:isBack=
"true"
>
<cu-
custom
bgColor=
"bg-blue"
:isBack=
"true"
>
<block
slot=
"content"
>
<block
slot=
"content"
>
{{
title
}}
{{
title
}}
</block>
</block>
</cu-
header
>
</cu-
custom
>
<view>
<view>
<view
class=
" flex bg-white cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius"
>
<view
class=
" flex bg-white cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius"
>
<view
class=
"cu-item arrow animation-slide-bottom"
>
<view
class=
"cu-item arrow animation-slide-bottom"
>
...
...
pages/user/userdetail.vue
View file @
f1a0bb95
...
@@ -96,10 +96,11 @@
...
@@ -96,10 +96,11 @@
uni
.
getStorage
({
uni
.
getStorage
({
key
:
'userinfo'
,
key
:
'userinfo'
,
success
:
function
(
e
){
success
:
function
(
e
){
that
.
userid
=
e
.
data
.
userkey
that
.
userid
=
e
.
data
.
userkey
that
.
$http
.
post
(
that
.
apiUser
,{
id
:
that
.
userid
}).
then
(
e
=>
{
that
.
$http
.
post
(
that
.
apiUser
,{
id
:
that
.
userid
}).
then
(
e
=>
{
if
(
e
.
data
.
success
){
if
(
e
.
data
){
that
.
userinfo
=
e
.
data
.
data
.
records
[
0
]
that
.
userinfo
=
e
.
data
.
records
[
0
]
}
else
{
}
else
{
}
}
...
...
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