<!-- search -->
<view class="search">
    <navigator class="mall-search" url="/pages/search/search" hover-class="none">
        <image class="mall-search-icon" src="/static/icons/search.png" mode="widthFix"></image>搜索商品
    </navigator>
</view>

<!-- 内容 -->
<scroll-view class="stair-nav" scroll-y>
    <view class="stair-nav-li {{ item.category_id == categorieArr[categorieindex].category_id ? 'active' : ''}}" wx:for="{{categorieArr}}" wx:key="categorieArr" bindtap="categorieTap" data-index="{{index}}">{{item.name}}</view>
</scroll-view>
<scroll-view class="level-content" scroll-y>
    <view class="levelList-title">{{categorieArr[categorieindex].name}}</view>
    <view class="level-nav" wx:if="{{categorieArr[categorieindex].children.length > 0}}">
        <navigator hover-class="none" url="/pages/mall/goods/goods?id={{categorieArr[categorieindex].category_id}}" class="level-nav-li" wx:for="{{categorieArr[categorieindex].children}}" wx:key="children" wx:for-item="items">
            <view class="level-nav-cover"><image src="{{items.cover}}" mode="aspectFill"></image></view>
            <view class="level-nav-title">{{items.name}}</view>
        </navigator>
    </view>
    <view class="level-tips" wx:else>
        暂无产品
    </view>
</scroll-view>