<page-plugin isAuth="{{true}}" loading="{{loading}}" is-login="{{isLogin}}"
  bind:handleLogin="handleLogin" hasTabBar="1">
  <view class="block-box">
    <block wx:for="{{block}}" wx:key="index">
      <view class="block-item-box" style="background: {{BGColors[index]}};" bind:tap="onBlockNavTo"
        data-index="{{index}}">
        <view class="block-item-name">{{item.name}}</view>
        <view class="block-item-value">
          <text>{{item.value}}</text>
          <text>{{item.unit}}</text>
        </view>
      </view>
    </block>
  </view>
  <block wx:for="{{ menuList }}" wx:key="index" wx:for-item="item">
    <view class="menu-box">
      <view class="menu-title">
        <t-icon name="{{ item.icon }}"
          style="color: {{item.iconColor}};font-size: 1.2em;margin-right: 16rpx;" />
        <text
          style="font-weight: bold;font-size: 1.1em;color: {{item.iconColor}}">{{ item.title }}</text>
      </view>
      <view class="menu-children-box">
        <block wx:for="{{ item.children }}" wx:key="index" wx:for-item="child">
          <view class="menu-item" bindtap="nav" data-url="{{ child.url }}">
            <image class="nav-item-icon" src="/assets/icons/{{child.title}}.svg" mode="aspectFit" />
            <view>{{ child.title }}</view>
          </view>
        </block>
      </view>
    </view>
  </block>
</page-plugin>
<tab-bar-plugin active="index" />