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.
48 lines
2.4 KiB
48 lines
2.4 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" />
|
|
</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%;">
|
|
<!-- <scroll-view scroll-y style="height:{{ 88 * (factoryList.length >= 5 ? 5 : factoryList.length)}}rpx;">
|
|
<van-cell clickable wx:for="{{factoryList}}" custom-style="min-height:88rpx" wx:key="index" data-index="{{index}}" bind:click="changeFactory">
|
|
<view class="text-bold {{ item.id == factoryId ? 'text-blue' : 'text-black'}}" slot="title">{{item.name}}</view>
|
|
<van-icon slot="right-icon" name="success" size="1.3em" color="#008AFF" wx:if="{{item.id == factoryId}}" />
|
|
</van-cell>
|
|
</scroll-view> -->
|
|
<van-tree-select items="{{items}}" height="440rpx" 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" />
|