Commit 5d6e0ed2 by 高淑倩

tab

parent b58834b4
...@@ -6,26 +6,27 @@ ...@@ -6,26 +6,27 @@
<block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab"> <block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab">
<view class="tab"> <view class="tab">
<!--当前页面需要授权 切未授权--> <!--当前页面需要授权 切未授权-->
<view wx:if="{{tools.hanlerLinkNeedAuth(tab.link.url)}}"> <view wx:if="{{tools.hanlerLinkNeedAuth(tab.link.url)}}" class="btn-tab">
<view wx:if="{{!currentHasUserInfo}}"> <view wx:if="{{!currentHasUserInfo}}" class="btn-tab">
<button <button
bindgetuserinfo="_getUserInfo" bindgetuserinfo="_getUserInfo"
data-jflag="false" data-jflag="false"
open-type='getUserInfo' open-type='getUserInfo'
class='btn btn-primary' class='btn btn-primary df'
hover-class="btn-hover" hover-class="btn-hover"
style="height:100%"
> >
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" /> <image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button> </button>
</view> </view>
<view wx:else data-item="{{tab}}" bindtap="handelToPage"> <view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
<button> <button class='btn btn-primary df' style="height:100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" /> <image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button> </button>
</view> </view>
</view> </view>
<view wx:else data-item="{{tab}}" bindtap="handelToPage"> <view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
<button> <button class='btn btn-primary df' style="height:100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" /> <image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button> </button>
</view> </view>
......
...@@ -11,16 +11,18 @@ ...@@ -11,16 +11,18 @@
} }
.tab { .tab {
flex: 1; flex: 1;
text-align: center;
} }
.btn-tab,.tab {
height: 100%;
}
.bgc { .bgc {
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
height: 108rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: rgba(255, 255, 255, 1); /* background-color: rgba(255, 255, 255, 1); */
box-shadow: 0px -4px 10px 0px rgba(232, 232, 232, 0.95); box-shadow: 0px -4px 10px 0px rgba(232, 232, 232, 0.95);
} }
.pdt { .pdt {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment