output.wxml 1.59 KB
<!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady">
	<!-- <picker
	        range="{{merchantRange}}"
	        value="{{subIndex}}"
	        range-key="merchantName"
	        bindchange="changePicker"
	        bindtap="tapPicker"
	        bindcancel="tapPicker"
	        disabled="{{merchantRange.length < 2}}"> -->
	<view class="navigation-title" bindtap="tapPicker">
		<view class="navigation-title-text text-hide">
			{{merchantRange[subIndex].merchantName||userInfo.merchantName}}
		</view>
		<view class="arrow {{moveArrow?'move':''}}" wx:if="{{merchantRange.length > 1}}">
			<image src="{{IMG_URL}}/output/arrow.png" />
		</view>
	</view>
	<!-- </picker> height:calc(100vh - {{tabBarStyle}}px) -->
</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px;">
	<tab
	     tab="{{tabList}}"
	     itemWidth="{{'27%'}}"
	     index="{{tabIndx}}"
	     bindclick="changeTabIndx"
	     class="tabContainer" />
	<!-- <view class="">{{IMG_URL}}</view> -->
	<!-- 我的客户 -->
	<view class="comCom" hidden="{{tabIndx != 0}}">
		<client id="client" />
	</view>
	<!-- 我的门店 -->
	<view class="comCom" hidden="{{tabIndx != 1}}">
		<merchant id="merchant" />
	</view>
	<!-- 我的员工 -->
	<view class="comCom" hidden="{{tabIndx != 2}}">
		<staff id="staff" />
	</view>
</view>
<accountSwitchingPop
                     wx:if="{{popupShow}}"
                     bind:hidePopup="tapPicker"
                     bind:changeAccount="getMerchantRange"
                     popShow="{{popupShow}}"
                     merchantRange="{{merchantRange}}" />