classify.wxml 2.4 KB
<view class='page'>
  <view class='top'>
    <navigator class='search_box' url="/pages/search/search">
      <view class='search_icon'>
        <image src='/images/search.png'></image>
      </view>
      <input class='real_search' placeholder='搜索您想要的商品' disabled="true" />
    </navigator>
  </view>
  <view class='center'>
    <!-- <scroll-view scroll-y class='scroll-view' scroll-into-view="NAV{{status}}"> -->
      <view class='center_child flexone'>
        <view class='left'>
          <view class='left_item {{status == index?"active":""}}' id='Nav{{index}}' wx:for='{{nav_arr}}' wx:key='index' bindtap='{{item.id!=""?"click_category":"seltaocan"}}' data-index='{{index}}' data-id='{{item.id}}'>{{item.name}}</view>

          <view class='left_item {{taocan == true?"active":""}}' wx:if="{{taocanlist.length>0}}" bindtap="seltaocan">套餐专区</view>
        
                  
        </view>
        <!-- <view class='fake_left'></view> -->
        <view class='right' wx:if="{{remain}}">
          <view class='right_item' id='NAV{{index}}' wx:for='{{good_arr}}' wx:key='index' wx:if="{{good_arr[index].products.length>0}}">
            <view class='right_item_top'>
              <view class='right_left'>{{item.title}}</view>
              <text decode='{{true}}' catchtap="look_more" data-id="{{item.id}}" data-title="{{item.title}}">查看全部&ensp;&gt;</text>
            </view>
            <view class='right_goods'>
              <view class='goods' wx:for="{{item.products}}" wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-id="{{zitem.id}}" catchtap="look_detail">
                <view class='goods_img'>
                  <image src='{{zitem.image}}'></image>
                </view>
                <view class='goods_name'>{{zitem.name}}</view>
              </view>
            </view>
          </view>
        </view>

        <view class="right" wx:else>
          <view class="right_item">
              <view class='right_goods'>
              <view class='goods' wx:for="{{taocanlist}}"  wx:key="zindex" data-id="{{item.id}}" catchtap="look_detailk">
                <view class='goods_img'>
                  <image src='{{item.image}}'></image>
                </view>
                <view class='goods_name'>{{item.name}}</view>
              </view>
            </view>
        
        </view>
        </view>
        


      </view>
    <!-- </scroll-view> -->
  </view>
</view>