index.wxml 8.33 KB
<!--index.wxml-->
<dialog
id='dialog'
src="{{dialogSrc}}"
url="{{dialogUrl}}"
></dialog>
<view class="container">

  <view  class='newtop' style='z-index:{{homelist.length==0?"1101":"1000"}}'>
    <view class='newsearch' bindtap="searchTapped">
      <image class="serachIcon" src="./images/home_search@2x.png"></image>
      <view class="serach_view_show">潮流单品搜一下</view>
    </view>
    <view class='scanCodeIconView'>
      <image class="scanCodeIcon" catchtap="scanCodeTapped" src="./images/home_qr_new@3x.png"></image> 
    </view>
     <image bindtap='selectChannel' class="channelIcon" src='./images/ceb-ic@2x.png'></image>
  </view>
  <image class='newTopImg' style='z-index:{{homelist.length==0?"1100":"999"}}' src='images/home-top-bg2@2x.png'></image> 
  <image wx:if='{{channelSelect}}' class='channelBg' style='z-index:{{homelist.length==0?"1110":"999"}}' src='images/channel-bg@2x.png'></image>
  <!-- <image wx:if='{{channelSelect}}' class='channelBg-girl' src='images/channel-bg@2x.png'></image> -->
  <form bindsubmit='formSubmitFromSwitchGender' report-submit='true'>

  <view class='channelContainer' wx:if='{{channelSelect}}' style='z-index:{{homelist.length==0?"1111":"1000"}}'>

    <view class='channelItem' data-type="boy" bindtap="channelSelected">
      <view class='indicator' style="background-color:{{selectedChannel=='boy' ? 'white':'transparent'}}"></view>
      <view class='channelText' data-type="boy">男生
      </view>
      <button class='channelButton' style='top: 0rpx;'
      form-type='submit'  data-type="boy"></button>
    </view>
    <view class='channelItem' style='border-top: 1rpx solid #ececec;'  bindtap="channelSelected" data-type="girl">
      <view class='indicator' style="background-color:{{selectedChannel=='girl' ? 'white':'transparent'}}" ></view>
      <view class='channelText' data-type="girl">女生
      </view>
      <button class='channelButton' style='top: 100rpx'
      form-type='submit' data-type="girl"></button>
    </view>

     <!-- <view class='channelItem' style='border-top: 1rpx solid #ececec;' bindtap="jumpToYohood">
      <view class='channelText'>YOHOOD</view>
      <button class='channelButton' style='top: 200rpx;' form-type='submit'  data-type="yohood"></button>
    </view> -->
  </view>

</form>
<view class='scrollview' id='touchContainer'>
    <view id='fixedFilterViewCTop' style='height: 1rpx;width: 100%;background-color: white;'></view>

    <block wx:for='{{homelist}}' wx:key='{{index}}'>
      <newFocus
          wx:if="{{item.template_name =='focus' || item.template_name == 'newFocus'}}"
          floor-data="{{item}}"
          floor-idx="{{index}}"
          is-group="{{false}}">
      </newFocus>
      <fourImage
          wx:if="{{item.template_name =='image_list' && item.data.list.length == 4}}"
          floor-data="{{item}}"
          floor-idx="{{index}}">
      </fourImage>
      <twoImage
          wx:if="{{item.template_name =='twoPicture'}}"
          floor-data="{{item}}"
          floor-idx="{{index}}">
      </twoImage>
      <newSingleImage
          wx:if="{{item.template_name =='newSingleImage'}}"
          floor-data="{{item}}"
          floor-idx="{{index}}">
      </newSingleImage>
    <newCustomer wx:elif="{{item.template_name=='sv_new_user_floor'}}" floor-data="{{item}}"
          floor-idx="{{index}}" new-customer="{{newCustomer}}"></newCustomer>
    <!-- 热门品类 -->
      <newRecommendContent wx:elif="{{item.template_name=='new_recommend_content_five'}}" floor-data="{{item}}"
          floor-idx="{{index}}">
      </newRecommendContent>
      <!-- 潮流品牌 -->
      <newHorizontal wx:elif="{{item.template_name=='3:4ImageListFloor'}}" floor-data="{{item}}"
          floor-idx="{{index}}">
      </newHorizontal>
      <!-- 均分楼层 -->
      <splitImage wx:elif="{{item.template_name=='splitJointImg'}}" floor-data="{{item}}"
          floor-idx="{{index}}">
      </splitImage>
      
      <popularFloor wx:elif="{{item.template_name=='popularListFloor' || item.template_name=='newProductListFloor'}}" floor-data="{{item}}" floor-idx="{{index}}"></popularFloor>


    <!--拼团购商品列表-->

      <collageBuyPrdList
        wx:if="{{item.template_name == 'collageBuyPrdList'}}"
        floor-data="{{item}}"
        floor-idx="{{index}}">
      </collageBuyPrdList>
  </block>
    
 <!-- 筛选框 -->
 
  <block wx:if="{{homeTabs.length > 0}}">
    <view class="fixedFilterNormalBack {{fixedFilter ? 'fixedFilter' : ''}}" style="top:{{homelist.length==0?'96':'0'}}rpx">
      <view class="fixedFilterNormalView">
        <block wx:if="{{homeTabs.length == 2}}">
          <view class="fixedFilterItem" data-type='0' bindtap='fixedFilterTapped'>
            <view class="{{currentFixedFilterIndex==0 ? 'fixedFilterTextSelect' : 'fixedFilterTextNormal'}}" style='margin-left: 70rpx;'>{{homeTabs[0].content}}</view>
          </view>
          <view class="fixedFilterItem"  data-type='1' bindtap='fixedFilterTapped'>
            <view class="{{currentFixedFilterIndex==1 ? 'fixedFilterTextSelect' : 'fixedFilterTextNormal'}}" style='margin-right: 70rpx;'>{{homeTabs[1].content}}</view>
            </view>
        </block>
        <block wx:elif='homeTabs.length == 1'>
          <view class="fixedFilterItem" data-type='0' bindtap='fixedFilterTapped'>
            <view class="fixedFilterTextSelect">{{homeTabs[0].content}}</view>
          </view>
        </block>
      </view>
    </view>
  <view class='guang' style='padding-top:{{homelist.length==0?"96":"0"}}rpx'>
     <view class='sLine' wx:if="{{fixedFilter}}"></view> 

    <view id='fixedFilterViewC' style='height: 1rpx;width: 100%;background-color: white;z-index: 1090;position: relative;'></view>


    <block wx:if="{{homeTabs[currentFixedFilterIndex].type == 1}}">
      <block wx:for="{{guangList.list}}" wx:key="{{index}}">
      <form bindsubmit='formSubmitFromGuangArt' report-submit='true'>
        <view class='guangArtContent'  wx:if="{{item.type==1}}"
        data-f_inindex='{{index}}' data-article-id='{{item.id}}'
        bindtap='tappedGuangArtContent'>
        <button class='guangItemButton'form-type='submit'></button>
        <image class="artImage" src="{{item.src}}" ></image> 
        <text class="artTitle">{{item.title}}</text> 
        <text class='artType'># {{item.min_category_name}}</text>
        </view>
        <view class='space' wx:if="{{item.type==1}}"></view>
        <view class='line' wx:if="{{item.type==1}}"></view>
      </form>
      </block>
    </block>
    <block wx:elif='{{homeTabs[currentFixedFilterIndex].type == 2}}'>
      <view class="likeContainer">
        <block wx:for="{{newChannels[selectedChannel]['recommend']['data']}}" wx:key="{{index}}">

          <view class='suggestCell' data-f_inindex='{{index}}' catchtap="productCellTapped" data-product-item="{{item}}">
            <view class='left'>
              <image class="activityImage" src="{{item.default_images}}"></image>
            </view>
            <view class='right'>
              <view class='titleView'>  
              <text class="title">{{item.product_name}}</text>
            </view>
            <view class='priceView'>  
              <text class="icon">¥</text>
              <text class="price1">{{item.salePriceFixed2}}</text>
              <text wx:if="{{item.showOriginPrice}}" class="price2">¥{{item.originPriceFixed2}}</text>
            </view>
            <view class='brandView' wx:if="{{item.shop_id}}" catchtap="brandCellTapped" data-product-item="{{item}}">  
              <image class="brandicon" src="./images/dianpu@2x.png"></image>
              <text class="brandTitle">{{item.shop_name}}</text>
              <image class="brandArrowIcon" src="./images/go@2x.png"></image>
            </view>
          </view>
        </view>
        <view class='spaceLine'/>
        </block>
      </view>
    </block>
  </view>
  </block>

  <loading wx:if="{{newChannels[selectedChannel]['isLoading'] }}">加载中</loading>

</view>
  <view class='container_mask' bindtap='hiddenChannel' wx:if='{{channelSelect}}'></view>
</view>
<quickNavigation id="quickNavigation" isHome="{{true}}" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{true}}" isShowMenu="{{false}}" marginBottom="{{50}}" bind:backToTop="backToTop"></quickNavigation>  
<import src="../../vendors/toast/wetoast.wxml"/>
<template is="wetoast" data="{{...__wetoast__}}"/>
<import src="../../vendors/zanui/toast/index.wxml"/>
<template is="zan-toast" data="{{zanToast}}"/>