更换版本
This commit is contained in:
8
we7/pages/component/footer/footer.js
Normal file
8
we7/pages/component/footer/footer.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var t;
|
||||
(t = getApp()),
|
||||
Component({
|
||||
properties: { tabBar: { type: Object, value: t.tabBar } },
|
||||
data: {},
|
||||
methods: {},
|
||||
created: function () {},
|
||||
});
|
1
we7/pages/component/footer/footer.json
Normal file
1
we7/pages/component/footer/footer.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "component": true, "usingComponents": {} }
|
17
we7/pages/component/footer/footer.wxml
Normal file
17
we7/pages/component/footer/footer.wxml
Normal file
@@ -0,0 +1,17 @@
|
||||
<view class="we7-bottom" style="background-color:{{tabBar.backgroundColor}};border-color:{{tabBar.borderStyle}}" wx:if="{{tabBar}}">
|
||||
<block wx:for="{{tabBar.list}}" wx:key="{{index}}">
|
||||
<view class="we7-bottom-item" hoverClass="active" wx:if="{{item.pageUrl=='/'+thisurl}}">
|
||||
<navigator hoverClass="active" openType="redirect" url="{{item.pagePath}}">
|
||||
<image class="item-img" mode="widthFix" src="{{item.selectedIconPath}}"></image>
|
||||
<view class="item-text" style="color: {{tabBar.selectedColor}};">{{item.text}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="we7-bottom-item" hoverClass="active" wx:else>
|
||||
<navigator hoverClass="active" openType="redirect" url="{{item.pagePath}}">
|
||||
<image class="item-img" mode="widthFix" src="{{item.iconPath}}"></image>
|
||||
<view class="item-text" style="color: {{tabBar.tabBarcolor}}">{{item.text}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="we7-bottom-placeholder"></view>
|
38
we7/pages/component/footer/footer.wxss
Normal file
38
we7/pages/component/footer/footer.wxss
Normal file
@@ -0,0 +1,38 @@
|
||||
.we7-bottom-placeholder {
|
||||
bottom: 0;
|
||||
height: 134rpx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
.we7-bottom {
|
||||
border-top: 1px solid #000;
|
||||
bottom: 0;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
padding: 10rpx 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
}
|
||||
.we7-bottom,
|
||||
.we7-bottom.active,
|
||||
.we7-bottom.active navigatorurl {
|
||||
background-color: #fff;
|
||||
}
|
||||
.we7-bottom .we7-bottom-item {
|
||||
flex: 1;
|
||||
padding: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.we7-bottom .item-img {
|
||||
display: inline-block;
|
||||
height: 50rpx;
|
||||
width: 50rpx;
|
||||
}
|
||||
.we7-bottom .item-text {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
}
|
Reference in New Issue
Block a user