Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
national_museum_vod-H5
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
fubaole
national_museum_vod-H5
Commits
120639ae
Commit
120639ae
authored
Mar 27, 2021
by
乐宝呗666
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改tab图
parent
1f09c673
Pipeline
#261
failed with stages
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
74 additions
and
22 deletions
+74
-22
.gitignore
.gitignore
+2
-0
admin-active.png
public/images/applets/admin-active.png
+0
-0
admin.png
public/images/applets/admin.png
+0
-0
commit-active.png
public/images/applets/commit-active.png
+0
-0
commit.png
public/images/applets/commit.png
+0
-0
editpsd-active.png
public/images/applets/editpsd-active.png
+0
-0
editpsd.png
public/images/applets/editpsd.png
+0
-0
learn-active.png
public/images/applets/learn-active.png
+0
-0
learn.png
public/images/applets/learn.png
+0
-0
index.vue
src/components/tabbar/index.vue
+72
-22
No files found.
.gitignore
0 → 100644
View file @
120639ae
node_modules
package-lock.json
public/images/applets/admin-active.png
0 → 100644
View file @
120639ae
3.22 KB
public/images/applets/admin.png
0 → 100644
View file @
120639ae
2.96 KB
public/images/applets/commit-active.png
0 → 100644
View file @
120639ae
2.88 KB
public/images/applets/commit.png
0 → 100644
View file @
120639ae
2.62 KB
public/images/applets/editpsd-active.png
0 → 100644
View file @
120639ae
2.1 KB
public/images/applets/editpsd.png
0 → 100644
View file @
120639ae
1.94 KB
public/images/applets/learn-active.png
0 → 100644
View file @
120639ae
4.9 KB
public/images/applets/learn.png
0 → 100644
View file @
120639ae
4.4 KB
src/components/tabbar/index.vue
View file @
120639ae
<
template
>
<div
class=
"my-tabbar"
>
<van-tabbar
v-model=
"activeIndex"
active-color=
"#EE0A24"
route
>
<van-tabbar-item
icon=
"home-o"
to=
"/commit"
>
观影互动
</van-tabbar-item>
<van-tabbar-item
icon=
"search"
to=
"/learn"
>
学习项目
</van-tabbar-item>
<van-tabbar-item
icon=
"friends-o"
to=
"/admin"
>
管理员信息
</van-tabbar-item
>
<van-tabbar-item
icon=
"setting-o"
to=
"/editPsd"
>
修改密码
</van-tabbar-item
>
</van-tabbar>
</div>
<div
class=
"my-tabbar"
>
<van-tabbar
v-model=
"activeIndex"
active-color=
"#EE0A24"
route
>
<van-tabbar-item
v-for=
"item in iconList"
:to=
"item.url"
:key=
"item.title"
>
<span>
{{
item
.
title
}}
</span>
<template
#
icon=
"props"
>
<img
:src=
"props.active ? item.icon.active : item.icon.inactive"
/>
</
template
>
</van-tabbar-item>
<!-- <van-tabbar-item icon="search" to="/learn">
<span>学习项目</span>
<template #icon="props">
<img :src="props.active ? icon.active : icon.inactive" />
</template>
</van-tabbar-item>
<van-tabbar-item icon="friends-o" to="/admin">
<span>管理员信息</span>
<template #icon="props">
<img :src="props.active ? icon.active : icon.inactive" />
</template>
</van-tabbar-item>
<van-tabbar-item icon="setting-o" to="/editPsd">
<span>修改密码</span>
<template #icon="props">
<img :src="props.active ? icon.active : icon.inactive" />
</template>
</van-tabbar-item> -->
</van-tabbar>
</div>
</template>
<
script
>
export
default
{
props
:
{
active
:
{
type
:
String
,
default
:
"0"
,
props
:
{
active
:
{
type
:
String
,
default
:
"0"
}
},
data
()
{
return
{
activeIndex
:
this
.
active
,
iconList
:
[
{
url
:
"/commit"
,
title
:
"观影互动"
,
icon
:
{
inactive
:
"images/applets/commit.png"
,
active
:
"images/applets/commit-active.png"
}
},
},
data
()
{
return
{
activeIndex
:
this
.
active
,
};
},
{
url
:
"/learn"
,
title
:
"学习项目"
,
icon
:
{
inactive
:
"images/applets/learn.png"
,
active
:
"images/applets/learn-active.png"
}
},
{
url
:
"/admin"
,
title
:
"管理员信息"
,
icon
:
{
inactive
:
"images/applets/admin.png"
,
active
:
"images/applets/admin-active.png"
}
},
{
url
:
"/editPsd"
,
title
:
"修改密码"
,
icon
:
{
inactive
:
"images/applets/editpsd.png"
,
active
:
"images/applets/editpsd-active.png"
}
}
]
};
}
};
</
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