<!--pages/workstand/index.wxml-->
<view class="container">
  <view class="width700" wx:if="{{loginStatus}}">
    <!-- <view class="banner">
      <image src="/images/gallerybanner.png" mode="widthFix"></image>
    </view> -->

    <!-- 排版一 -->
    <!-- <view class="menuBox" style="margin-top: 500rpx;">
      <van-row>
        <block wx:for="{{ menuData }}" wx:key="index">
          <van-col span="8" wx:if="{{ filters.hasPromision(roleCodeList, item.role)}}">
            <view class="menuItem" data-url="{{ item.url }}" data-tab="{{false}}" bindtap="toLink">
              <view class="meneBox">
                <image src="{{ item.flowIcon }}" alt="" srcset="" mode="widthFix" wx:if="{{ item.flowIcon }}"/>
                <van-icon class-prefix="iconfont" name="{{ item.iconfont }}" size="30" color="{{ item.color }}" wx:else/>
              </view>
              <text class="menuTitle">{{ item.flowName ? item.flowName : '未定义' }}</text>
            </view>
          </van-col>
        </block>
      </van-row>
    </view> -->


    <!-- 排版二 -->
    <view class="menuBox" style="margin-top: 500rpx;">
      <van-row gutter="17">
        <block wx:for="{{ menuData }}" wx:key="index">
          <van-col span="12" wx:if="{{ filters.hasPromision(roleCodeList, item.role)}}">
            <view class="menuItemStyle2 menuItem{{index+1}}" data-url="{{ item.url }}" data-tab="{{false}}" bindtap="toLink">
              <view>{{ item.flowName }}</view>
              <image src="{{ item.flowIcon }}" alt="" srcset="" mode="widthFix" wx:if="{{ item.flowIcon }}"/>
              <van-icon class-prefix="iconfont" name="{{ item.iconfont }}" size="56" wx:else/>
            </view>
          </van-col>
        </block>
      </van-row>
    </view>

    <!-- 排版三 -->
    <!-- <view class="menuBox" style="margin-top: 500rpx;">
      <van-row gutter="17">
        <block wx:for="{{ menuData }}" wx:key="index">
          <van-col span="12" wx:if="{{ filters.hasPromision(roleCodeList, item.role)}}">
            <view class="menuItemStyle3 menuItem{{index+1}}" data-url="{{ item.url }}" data-tab="{{false}}" bindtap="toLink">
              <image src="{{ item.flowIcon }}" alt="" srcset="" mode="widthFix" wx:if="{{ item.flowIcon }}"/>
              <van-icon class-prefix="iconfont" name="{{ item.iconfont }}" size="28" wx:else/> {{ item.flowName }}
            </view>
          </van-col>
        </block>
      </van-row>
    </view> -->

  </view>

  <block wx:else>
    <view class="width700">
      <view class="menuBox" style="margin-top: 500rpx;">
        <van-empty image="/images/loginNull.png">
          <view slot="description" style="text-align: center;">
            <text style="display:block;margin-bottom: 20rpx;">您还未登录，登录后查看更多～</text>
            <van-button type="info" bindtap="toLogin">立即登录</van-button>
          </view>
        </van-empty>
      </view>
    </view>
  </block>
</view>

<wxs module="filters" src="../../utils/filter.wxs"></wxs>