Commit d97e70b9 by 高淑倩

tab

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