Commit a7532c92 by 张立顺

修复tabbar样式问题

1 parent b358fc7b
...@@ -42,6 +42,13 @@ Page({ ...@@ -42,6 +42,13 @@ Page({
whiteArrow: false, whiteArrow: false,
scenceList: [] scenceList: []
}, },
navbarReady(e) {
let { height, statusBarHeight } = e.detail
console.log(e)
this.setData({
tabBarStyle: height / 2 + statusBarHeight
})
},
handleMonthNow() { handleMonthNow() {
// this.dateObj.nowMonth = true // this.dateObj.nowMonth = true
this.initTime() this.initTime()
......
<!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml--> <!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml-->
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> --> <!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<view class="layout"> <navigation-bar showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
<view class="titleBox"> {{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"> <view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" /> <image src="../../images/blackArrow.png" />
</view> </view>
<view class="navigation-title-text text-hide">{{merchantInfo.merchantName}}</view> <view class="navigation-title-text text-hide">{{merchantInfo.merchantName}}</view>
</view> </view> -->
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" /> <tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<view class="searchBar"> <view class="searchBar">
<view class="checkCon" wx:if="{{ tabIndx == 0 }}"> <view class="checkCon" wx:if="{{ tabIndx == 0 }}">
<view class="checkoutBox checkBox" bind:tap="changeStatus" wx:if="{{ !allType }}"></view> <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> <image class="checkBox" bind:tap="changeStatus" wx:if="{{ allType }}" src="../../images/checkoutIcon.png"></image>
查看全部品类 查看全品类
</view> </view>
<view class="calendarMonthCon" wx:if="{{ tabIndx != 1 }}"> <view class="calendarMonthCon" wx:if="{{ tabIndx != 1 }}">
<view class="monthNow {{ dateObj.nowMonth ? 'active' : '' }}" bind:tap="handleMonthNow">本月</view> <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!