纸通宝SAAS仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

42 lines
1.9 KiB

<!--pages/index/index.wxml-->
<cu-custom bgColor="bg-blue" wx:if="{{tabIndex != 3}}">
<view slot="right" class="flex flex-center" style="padding-left:32rpx" bindtap="showFactoryList">
<text class="text-white text-xl" style="margin-right: 12rpx">{{ userInfo ? (factoryName || '未注册工厂') : ''}}</text>
<van-icon name="{{visible ? 'arrow-up' : 'arrow-down'}}" size="36rpx" color="white" wx:if="{{arrow}}"/>
</view>
</cu-custom>
<swiper current="{{tabIndex}}" duration="0" style="height:{{fragment}}rpx">
<swiper-item catchtouchmove="stopTouchMove">
<process id="{{tabList[0].value}}" bind:zIndex="onPopupChange" />
</swiper-item>
<swiper-item catchtouchmove="stopTouchMove">
<storage id="{{tabList[1].value}}" bind:zIndex="onPopupChange" />
</swiper-item>
<swiper-item catchtouchmove="stopTouchMove">
<agent id="{{tabList[2].value}}" />
</swiper-item>
<swiper-item catchtouchmove="stopTouchMove">
<home id="{{tabList[3].value}}" />
</swiper-item>
</swiper>
<view class="cu-bar foot" style="height:{{100 + safeBottom}}rpx;padding-bottom:{{safeBottom}}rpx;z-index:{{zIndex}}">
<van-tabbar active="{{ tabIndex }}" fixed="{{false}}" bind:change="onChange">
<van-tabbar-item wx:for="{{tabList}}" wx:key="index">
<van-icon slot="icon" name="{{item.gray}}" size="25" />
<van-icon slot="icon-active" name="{{item.blue}}" size="25" />
<text>{{item.name}}</text>
</van-tabbar-item>
</van-tabbar>
</view>
<van-popup position="top" show="{{ visible }}" bind:close="onHide" z-index="29">
<view class="bg-white" style="margin-top:{{customBar}}px;width: 100%;">
<van-tree-select items="{{items}}" height="240px" flex="{{1.5}}" main-active-index="{{mActiveIndex}}" active-id="{{factoryId}}"
bind:click-item="changeFactory" bind:click-nav="onClickNav"></van-tree-select>
</view>
</van-popup>
<van-dialog id="van-dialog" />
<notification id="qn-notification" />