Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
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
Administrator
jd-vx-app
Commits
759280d8
Commit
759280d8
authored
May 10, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心修改
parent
703eca84
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
main.vue
pages/main.vue
+6
-4
personal.vue
pages/personal.vue
+1
-8
No files found.
pages/main.vue
View file @
759280d8
...
...
@@ -3,7 +3,7 @@
<index
v-if=
"tab=='index'"
></index>
<moveCar
v-if=
"tab=='moveCar'"
></moveCar>
<shop
v-if=
"tab=='shop'"
></shop>
<personal
v-if=
"tab=='personal'"
></personal>
<personal
v-if=
"tab=='personal'"
ref=
"personal"
></personal>
<u-gap
bgColor=
"transparent"
height=
"055"
></u-gap>
<view
class=
"tabbar"
>
<v-tabbar
ref=
"myTab"
:list=
"tabbar"
style=
"position:fixed;bottom:0;width:100%;left:0;right:0;"
@
tabChange=
"tabChange"
></v-tabbar>
...
...
@@ -43,9 +43,11 @@ export default {
},
onShow
:
function
()
{
uni
.
hideHomeButton
()
if
(
this
.
tab
==
'personal'
){
this
.
$refs
.
personal
.
getUserInfo
();
}
},
methods
:
{
tabChange
(
index
)
{
let
that
=
this
switch
(
index
)
{
...
...
@@ -130,7 +132,7 @@ export default {
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/scan?moveCode='
+
s
});
}
,
}
},
onLoad
(
option
)
{
if
(
option
&&
option
.
index
){
...
...
pages/personal.vue
View file @
759280d8
...
...
@@ -113,7 +113,7 @@ export default {
}
],
//用户信息
userInfo
:
{
nickName
:
'默认昵称'
}
,
userInfo
:
null
,
//头像
avatar
:
''
,
}
...
...
@@ -295,13 +295,6 @@ export default {
title
:
'个人中心'
});
},
onShow
()
{
this
.
getUserInfo
()
// setTimeout(() => {
// this.show=true
// }, 100);
},
};
</
script
>
...
...
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