kind.wxml 4.2 KB
<view class="kindnav">
    <view wx:for="{{navbar}}" data-idx="{{index}}" class="kindnav_item {{currentTab==index ? 'kindactive' : ''}}" wx:key="unique" bindtap="navbarTap" data-id="{{item.id}}">{{item.category_name}}
    </view>
</view>


<view class="swiper_image">
    <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange">
        <block wx:for="{{imgUrls}}" wx:key="doct">
            <swiper-item>
                <image src="{{item.image}}" class="slide-image" width="355" height="150" />
            </swiper-item>
        </block>
    </swiper>

    <view class="dots">
        <block wx:for="{{imgUrls}}" wx:key="">
            <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
        </block>
    </view>

</view>

<view class="nodata" wx:if="{{kindlist.son_classify.length==0}}">暂无数据</view>

<view class="seconlist" wx:else>
<view class="seconlistitem" wx:for="{{kindlist.son_classify}}" wx:key="">
<view class="kindname">
    <view class="kindimg">
        <image src="http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>
    <view class="kindtypename">{{item.category_name}}</view>
    <view class="kindimg">
        <image src="http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>
</view>
<view class="nodata" wx:if="{{item.grandson_classify.length==0}}">暂无数据</view>
<block wx:else>
<view class="kindlist">
    <view class="kindlistitem" wx:for="{{item.grandson_classify}}" wx:key="" data-id="{{item.id}}" data-free="{{item.goods_price}}" data-id="{{item.id}}" bindtap="detail">
        <view class="kindlistitemimg">
            <image  mode="widthFix" src="{{item.logo}}"></image>
        </view>
        <view class="kindlistitemnaem">{{item.category_name}}</view>
    </view>
    
</view>

</block>


<view wx:if="{{item.is_more==false}}">
    <view class="kindseemore" data-seeid="{{index}}" bindtap="seemore">
        <image src="http://bronet.wangshuwen.com/hjktyut@2x.png"></image>
        <view class="kindmoreword">查看更多</view>
        <view class="kindlowrow">
            <image src="http://bronet.wangshuwen.com/ioytrew@2x.png"></image>
        </view>
    </view>
</view>

<view wx:if="{{item.is_more==true}}">
    <view class="kindseemore" data-seeid="{{index}}" bindtap="hidemore">
        <image src="http://bronet.wangshuwen.com/hjktyut@2x.png"></image>
        <view class="hiderow">
            <image src="http://bronet.wangshuwen.com/toprow.png"></image>
        </view>
        <view class="hide">收起</view>

    </view>
</view> 
</view>

<!-- 
<view class="kindname">
    <view class="kindimg">
        <image src=http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>
    <view class="kindtypename">二级分类名称</view>
    <view class="kindimg">
        <image src=http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>
</view>

<view class="kindlist">
    <view class="kindlistitem">
        <view class="kindlistitemimg">
            <image src=http://bronet.wangshuwen.com/dfsddfhgf@2x.png"></image>
        </view>
        <view class="kindlistitemnaem">Alphabet</view>
    </view>
    <view class="kindlistitem">
        <view class="kindlistitemimg">
            <image src=http://bronet.wangshuwen.com/dfsddfhgf@2x.png"></image>
        </view>
        <view class="kindlistitemnaem">Alphabet</view>
    </view>
    <view class="kindlistitem">
        <view class="kindlistitemimg">
            <image src=http://bronet.wangshuwen.com/dfsddfhgf@2x.png"></image>
        </view>
        <view class="kindlistitemnaem">Alphabet</view>
    </view>
    <view class="kindlistitem">
        <view class="kindlistitemimg">
            <image src=http://bronet.wangshuwen.com/dfsddfhgf@2x.png"></image>
        </view>
        <view class="kindlistitemnaem">Alphabet</view>
    </view>

</view>
<view>
    <view class="kindseemore">
        <image src=http://bronet.wangshuwen.com/hjktyut@2x.png"></image>
        <view class="hiderow">
            <image src=http://bronet.wangshuwen.com/toprow.png"></image>
        </view>
        <view class="hide">收起</view>

    </view>
</view> -->

</view>