<!--index.wxml-->
<import src="../../wxParse/wxParse.wxml"/> 
<view class="container">
     <view>
        <swiper class="swiper_box" indicator-dots="{{indicatorDots}}" vertical="{{vertical}}"  circular="true" 
                autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="swiperchange">
            <block wx:for="{{images}}" wx:key="index">
                <swiper-item bindtap="onslide" data-id="{{item.url}}">
                    <image src="{{item.img}}" class="slide-image"/>
                </swiper-item>
            </block>
        </swiper> 
    </view> 
    <view class="mydata_box0" wx:if="{{ifxn==1}}">
         <view class="category-grid">
            <view class="category-group" wx:for="{{images1}}" wx:for-item="groupItem" wx:for-index="groupIndex">
                <view class="category-row">
                    <view class="category-item" wx:for="{{groupItem.datas}}" wx:for-item="cell" wx:for-index="cellIndex" wx:if="{{cellIndex < 4}}" bindtap="onnav" data-id='{{cell.id+"&title="+cell.label}}'>
                        <image src='{{cell.img}}'></image>
                        <text>{{cell.label}}</text>
                    </view>
                </view>
                <view class="category-row" wx:if="{{groupItem.datas.length > 4}}">
                    <view class="category-item" wx:for="{{groupItem.datas}}" wx:for-item="cell" wx:for-index="cellIndex" wx:if="{{cellIndex >= 4}}" bindtap="onnav" data-id='{{cell.id+"&title="+cell.label}}'>
                        <image src='{{cell.img}}'></image>
                        <text>{{cell.label}}</text>
                    </view>
                </view>
            </view>
        </view>
    </view>
  
    <view class="choice_text">
        <view class="line_flag"></view>
        <text>优选商品</text>
        <view class="more"></view>
    </view>
    <view class="choice_box">
        <view class="choice_list">
            <block wx:for="{{Products}}" wx:for-item="cell" wx:for-index="index0">
                <view class='block block0{{(index0%2)==1?" r":" l"}}'  bindtap="gotodetail" data-id="{{cell._id}}">
                    <view class='choice_item'>
                        <image src="{{cell.image}}"/>
                        <view class="title">{{cell.name}}</view>
                        <view class="je">
                           
                          <view class="jeto">
                                 <view>零售价： </view>
                                 <view class="scje">￥{{cell.scje}}</view>
                            </view>
                            <view class="jeto jeto0">
                                <view class="viphyj">会员价：<text>{{cell.hyje}}</text></view>
                            </view>
                        </view>
                    </view>
                </view>
            </block>
        </view>
    </view>
    <!-- <view class="choice_text">
        <view class="line_flag"></view>
        <text>推荐商品</text>
        <view class="more"></view>
    </view>
    <view class="choice_box">
        <view class="choice_list">
            <block wx:for="{{Products0}}" wx:for-item="cell" wx:for-index="index0">
                <view class='block block0{{(index0%2)==1?" r":" l"}}'  bindtap="gotodetail" data-id="{{cell._id}}">
                    <view class='choice_item'>
                        <image src="{{cell.image}}"/>
                        <view class="title">{{cell.name}}</view>
                        <view class="je">
                           
                          <view class="jeto">
                                 <view>零售价： </view>
                                 <view class="scje">￥{{cell.scje}}</view>
                            </view>
                            <view class="jeto jeto0">
                                <view class="viphyj">兑换价：<text>{{cell.hyje}}</text></view>
                            </view>
                        </view>
                    </view>
                </view>
            </block>
        </view>
    </view> -->
    <view style="height: 4em;"></view>
    <loading hidden="{{loadingHidden}}">
        加载中...
    </loading>
    
</view>
