Commit a7532c92 by 张立顺

修复tabbar样式问题

1 parent b358fc7b
......@@ -42,6 +42,13 @@ Page({
whiteArrow: false,
scenceList: []
},
navbarReady(e) {
let { height, statusBarHeight } = e.detail
console.log(e)
this.setData({
tabBarStyle: height / 2 + statusBarHeight
})
},
handleMonthNow() {
// this.dateObj.nowMonth = true
this.initTime()
......
<!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml-->
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<view class="layout">
<view class="titleBox">
<navigation-bar showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
{{merchantInfo.merchantName}}
</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:calc(100vh - {{tabBarStyle}}px)">
<!-- <view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" />
</view>
<view class="navigation-title-text text-hide">{{merchantInfo.merchantName}}</view>
</view>
</view> -->
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<view class="searchBar">
<view class="checkCon" wx:if="{{ tabIndx == 0 }}">
<view class="checkoutBox checkBox" bind:tap="changeStatus" wx:if="{{ !allType }}"></view>
<image class="checkBox" bind:tap="changeStatus" wx:if="{{ allType }}" src="../../images/checkoutIcon.png"></image>
查看全部品类
查看全品类
</view>
<view class="calendarMonthCon" wx:if="{{ tabIndx != 1 }}">
<view class="monthNow {{ dateObj.nowMonth ? 'active' : '' }}" bind:tap="handleMonthNow">本月</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!