Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
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
高淑倩
7-Eleven
Commits
5d6e0ed2
Commit
5d6e0ed2
authored
Sep 05, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab
parent
b58834b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
bottomTabs.wxml
src/component/bottomTabs/bottomTabs.wxml
+8
-7
bottomTabs.wxss
src/component/bottomTabs/bottomTabs.wxss
+5
-3
No files found.
src/component/bottomTabs/bottomTabs.wxml
View file @
5d6e0ed2
...
...
@@ -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>
...
...
src/component/bottomTabs/bottomTabs.wxss
View file @
5d6e0ed2
...
...
@@ -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 {
...
...
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