Commit d97e70b9 by 高淑倩

tab

parent 09c76fbc
...@@ -27,7 +27,9 @@ Component({ ...@@ -27,7 +27,9 @@ Component({
baseImgUrl: app.globalData.imageUrl baseImgUrl: app.globalData.imageUrl
}) })
const { tabBar } = this.data const { tabBar } = this.data
tabBar.forEach(item => { console.log('tabBar', tabBar)
let currentTab = tabBar.images
currentTab.forEach(item => {
// 存在 row 处理数据 8 商品 9 分类 // 存在 row 处理数据 8 商品 9 分类
let newRow = null let newRow = null
if (item.link) { if (item.link) {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
bindgetuserinfo="_getUserInfo" bindgetuserinfo="_getUserInfo"
data-jflag="false" data-jflag="false"
open-type='getUserInfo' open-type='getUserInfo'
class='btn btn-primary' class='btn'
hover-class="btn-hover" hover-class="btn-hover"
style="height: 100%;" style="height: 100%;"
> >
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
data-item="{{tab}}" data-item="{{tab}}"
bindtap="handelToPage" bindtap="handelToPage"
> >
<button class='btn btn-primary' style="height: 100%;"> <button class='btn' 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>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
data-item="{{tab}}" data-item="{{tab}}"
bindtap="handelToPage" bindtap="handelToPage"
> >
<button class='btn btn-primary' style="height: 100%"> <button class='btn' 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>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
bindgetuserinfo="_getUserInfo" bindgetuserinfo="_getUserInfo"
data-jflag="false" data-jflag="false"
open-type='getUserInfo' open-type='getUserInfo'
class='btn btn-primary' class='btn'
hover-class="btn-hover" hover-class="btn-hover"
style="height: 100%;" style="height: 100%;"
> >
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
data-item="{{tab}}" data-item="{{tab}}"
bindtap="handelToPage" bindtap="handelToPage"
> >
<button class='btn btn-primary' style="height: 100%;"> <button class='btn' 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>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
data-item="{{tab}}" data-item="{{tab}}"
bindtap="handelToPage" bindtap="handelToPage"
> >
<button class='btn btn-primary' style="height: 100%"> <button class='btn' 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>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
.bgc { .bgc {
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: #fff;
height: 114rpx; height: 114rpx;
display: flex; display: flex;
align-items: center; align-items: center;
......
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