Commit 5d6e0ed2 by 高淑倩

tab

parent b58834b4
......@@ -6,26 +6,27 @@
<block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab">
<view class="tab">
<!--当前页面需要授权 切未授权-->
<view wx:if="{{tools.hanlerLinkNeedAuth(tab.link.url)}}">
<view wx:if="{{!currentHasUserInfo}}">
<view wx:if="{{tools.hanlerLinkNeedAuth(tab.link.url)}}" class="btn-tab">
<view wx:if="{{!currentHasUserInfo}}" class="btn-tab">
<button
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary'
class='btn btn-primary df'
hover-class="btn-hover"
style="height:100%"
>
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
<view wx:else data-item="{{tab}}" bindtap="handelToPage">
<button>
<view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
<button class='btn btn-primary df' style="height:100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
</view>
<view wx:else data-item="{{tab}}" bindtap="handelToPage">
<button>
<view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
<button class='btn btn-primary df' style="height:100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
......
......@@ -11,16 +11,18 @@
}
.tab {
flex: 1;
text-align: center;
}
.btn-tab,.tab {
height: 100%;
}
.bgc {
background-size: 100% 100%;
background-repeat: no-repeat;
height: 108rpx;
display: flex;
align-items: 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);
}
.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