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
abd55672
Commit
abd55672
authored
May 10, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tabbar修改
parent
1160d95a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
hans-tabbar.vue
common/hans-tabbar/hans-tabbar.vue
+21
-13
No files found.
common/hans-tabbar/hans-tabbar.vue
View file @
abd55672
<
template
>
<view
class=
"weui-tabbar"
:class=
"extClass"
>
<view
@
click=
"tabChange(index)"
v-for=
"(item, index) in list"
:key=
"index"
class=
"weui-tabbar__item"
:class=
"[
{'weui-bar__item_on':index === current},{'flexd__icon':index===2}]">
<view
style=
"position: relative;display:inline-block;"
><image
:src=
"current === index ? item.selectedIconPath : item.iconPath"
class=
"weui-tabbar__icon"
></image></view>
<view
style=
"position: relative;display:inline-block;"
>
<image
:src=
"current === index ? item.selectedIconPath : item.iconPath"
class=
"weui-tabbar__icon"
v-if=
"index !== 2"
></image>
<image
src=
"/static/tarbar/index31.png"
v-else
class=
"weui-tabbar__icon2"
></image>
</view>
<view
class=
"weui-tabbar__label"
>
{{
item
.
text
}}
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
export
default
{
props
:
{
...
...
@@ -48,19 +51,24 @@ export default {
box-shadow
:
0px
8rpx
19rpx
2rpx
rgba
(
215
,
215
,
215
,
0
.21
);
}
.flexd__icon
{
position
:
relative
;
top
:
-30rpx
;
left
:
0
;
right
:
0
;
text-align
:
center
;
margin
:
0
auto
;
background
:
url('../../static/tarbar/index31.png')
center
center
no-repeat
;
background-size
:
contain
;
width
:
54rpx
;
height
:
54rpx
;
// position: relative;
// top: -30rpx;
// left: 0;
// right: 0;
// text-align: center;
// margin: 0 auto;
// background: url('../../static/tarbar/index31.png') center center no-repeat;
// background-size: contain;
// width: 54rpx !important;
// height: 54rpx !important;
.weui-tabbar__icon2
{
width
:
86rpx
;
height
:
86rpx
;
position
:
relative
;
top
:
-40rpx
;
}
>
.weui-tabbar__label
{
position
:
relative
;
bottom
:
-30
rpx
;
bottom
:
36
rpx
;
}
}
.weui-tabbar
:before
{
...
...
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