<!-- <import src="../../tabbar/tabbar.wxml" />
<template is="tabBar" data="{{tabBar}}" /> -->
<wxs module="g_filter" src="g_filter.wxs"></wxs>

<!-- 风格1 -->
<block wx:if="{{is_used_share==0}}">
  <view class='top_view' wx:if="{{is_show_pl || is_show_gb || is_show_pp }}">
    <view class="swiper-tab">
      <view wx:if="{{is_show_pl}}" class="swiper-tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab">分类</view>
      <view wx:if="{{is_show_gb}}" class="swiper-tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab">国家</view>
      <view wx:if="{{is_show_pp}}" class="swiper-tab-item {{currentTab==2?'active':''}}" data-current="2" bindtap="clickTab">品牌</view>
      <view wx:if="{{is_show_xm}}" class="swiper-tab-item {{currentTab==3?'active':''}}" data-current="3" bindtap="clickTab">项目</view>
    </view>
  </view>
  <view class="search-box " bindtap="goseach">
    <view class="search-inner">
      <view class="search-img">
        <image class="wh100" src="{{iurl}}/miniapp/images/search.png" style="vertical-align:text-top"></image>
      </view>
      <input bindfocus="goseach" class="search-cont" placeholder="寻找好口碑" type="text"></input>
    </view>
  </view>
  <block wx:if="{{is_show_pl || is_show_gb || is_show_pp || is_show_xm}}">
    <swiper current="{{currentTab}}" duration="300" bindanimationfinish="swiperTab" style="height:{{abc}}rpx;margin-bottom:120rpx">
      <!--------分类---------->
      <swiper-item>
        <scroll-view scroll-y="true" class="fenlei-list" scroll-with-animation="true" lower-threshold="1" bindscrolltolower="scrolltolower" style="height: {{abc}}rpx;">
          <block wx:for="{{catelist}}" wx:for-item="fitem">
            <view class='f_item'>
              <view class="pic_view" bindtap="go_cate" data-cid="{{fitem.items.id}}" data-pid="0">
                <image class='fl_img' src='{{iurl}}{{fitem.items.image}}' binderror="bind_bnerr2" data-errorimg="catelist[{{index}}].items.image"></image>
                <view class='over_view'></view>
                <text class='f_item_over_t'>{{fitem.items.name}}</text>
              </view>
              <view class='fenlei_text_v'>
                <view class='f_text' wx:for="{{fitem.array}}" wx:for-item="item" bindtap="go_cate" data-cid="{{item.id}}" data-pid="{{item.parent_id}}">{{item.name}}</view>
              </view>
            </view>
          </block>
          <view style="height: 80rpx"></view>
        </scroll-view>
      </swiper-item>
      <!-------国别---------->
      <swiper-item>
        <scroll-view scroll-y="true" class="fenlei-list" scroll-with-animation="true" lower-threshold="1" bindscrolltolower="scrolltolower" style="height: {{abc}}rpx;">
          <view class='f_item' bindtap="go_nation" data-nid="{{bitem.id}}" wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx">
            <view>
              <image wx:if="{{bitem.imgtype==1}}" class='n_img' src='{{bitem.logo}}'></image>
              <image wx:else class='n_img' src='{{iurl}}{{bitem.logo}}'></image>

              <view class='nation_box' style="margin-left:-130rpx">
                <view class='nt_1'><text class="nt_1_t">{{bitem.name}}</text></view>
                <view class='nt_2'>{{bitem.enname}}</view>
              </view>
            </view>
          </view>
          <view style="height: 80rpx"></view>
        </scroll-view>
      </swiper-item>
      <!--  品牌  -->
      <swiper-item>
        <scroll-view scroll-y="true" class="fenlei-list" style="height: {{abc}}rpx;" scroll-into-view="{{scrollIntoView}}">
          <block wx:for="{{groups}}" wx:for-item="group" wx:for-index="pidx">
            <view>
              <view id="{{group.zm}}" class="group-name">{{group.zm}}</view>
              <view class="group-users">
                <view wx:for="{{group.array}}" bindtap="go_brand" data-bid="{{user.id}}" wx:for-item="user" wx:for-index="idx" class="user box box-lr">
                  <image class="user-avatar-img" src="{{user.logo}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr"></image>
                </view>
              </view>
            </view>
          </block>
          <view style="height: 80rpx"></view>
        </scroll-view>

        <view class="nav box box-tb my-nav" catchtouchmove="touchmove" catchtouchend="touchend">
          <!-- 							<image src="/images/up.png" style="width:36rpx;height:36rpx;margin-right:10rpx;"></image> -->
          <!-- <icon color="icon-close" color="#000" size="30" type="icon-shangjiantou" style=""></icon> -->
          <view class="iconfont icon-shangjiantou"></view>
          <view bindtap="tabLetter" data-index="{{item.zm}}" wx:for="{{groups}}" class="flex box box-align-center box-pack-center letter">
            <text class="letter-text {{selected == item.zm ? 'letter-actived' : ''}}" wx:if="{{item.zm}}">{{item.zm}}</text>
          </view>
        </view>
      </swiper-item>
      <!-------项目---------->
      <swiper-item wx:if="{{is_show_xm}}">
        <scroll-view scroll-y="true" class="fenlei-list" scroll-with-animation="true" lower-threshold="1" bindscrolltolower="scrolltolower" style="height: {{abc}}rpx;">
          <block wx:if="{{xmlist && xmlist.length != 0}}">
            <block wx:for="{{xmlist}}" wx:for-item="fitem">
              <view class='f_item'>
                <view class="pic_view" bindtap="goServiceCategoryList" data-cid="{{fitem.id}}" data-pid="0">

                  <image wx:if="{{fitem.showImgType==1}}" binderror="bind_bnerr2" class='fl_img' data-errorimg="xmlist[{{index}}].showImg" src='{{fitem.showImg}}'></image>
                  <image wx:else class='fl_img' binderror="bind_bnerr2" data-errorimg="xmlist[{{index}}].showImg" src='{{iurl}}{{fitem.showImg}}'></image>

                  <view class='over_view'></view>
                  <text class='f_item_over_t'>{{fitem.name}}</text>
                </view>
                <view class='fenlei_text_v'>
                  <view class='f_text' wx:for="{{fitem.array}}" wx:for-item="item" bindtap="goServiceCategoryList" data-cid="{{item.id}}" data-pid="{{item.parent_id}}">{{item.name}}</view>
                </view>
              </view>
            </block>
          </block>


          <view wx:else class="t-c fs28 c-9 pdt50">暂无项目</view>
        </scroll-view>
      </swiper-item>
    </swiper>
    <view class="no-data" wx:if="{{!is_date}}">
      <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
      <view class="no-data-title">暂无分类</view>
      <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator>
    </view>
  </block>
  <block wx:elif="{{is_do}}">
    <view class="no-data">
      <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
      <view class="no-data-title">商家暂未设置分类</view>
      <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator>
    </view>
  </block>
</block>
<!-- 风格2 -->
<block wx:elif="{{is_used_share == 1}}">
  <block wx:if="{{is_show_pl || is_show_gb || is_show_pp || is_show_xm}}">
    <!-- 新版分类头部 -->
    <view class="xc-search-box flex jc_sb ai-center" style="position:fixed;top:0;z-index:99">
      <!-- <view class="xc-search-inner ">
					<view class="search-img left">
						<image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image>
					</view>
					<input bindfocus="goseach" class="search-cont" placeholder="请输入商品关键字" type="text"></input>
				</view> -->
      <!-- 搜索框 -->
      <view class="search-container f1">
        <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>请输入商品关键字</view>
      </view>
      <view class="pdl30" bindtap="getScancode">
        <image class="scanning_black-img" src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image>
        <!-- <view class="fs24">扫一扫</view> -->
      </view>

    </view>


    <!-- 分类项目内容  22 -->
    <view class="flex project_height" style="height:100%;box-sizing:border-box;padding-bottom:100rpx;padding-top:108rpx;" id="two_type">
      <!-- 分类项目的类型 -->
      <view class="project_type" style="background-color:#f4f4f4;overflow-y:auto;position:fixed;left:0;z-index:99;top:108rpx;">
        <view class="project_type-frame" style="margin-bottom:120rpx;">
          <view wx:if="{{is_show_gb}}" class="{{status_show == 1?'':''}}">
            <!-- <view  style="{{status_show == 1?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> -->
            <view bindtap="click_classify" style="{{status_show == 1?'margin-top:0':'margin-top:40rpx'}}" class="fs30  {{select_classify_on==223?'select_classify':''}}" data-index="223" data-name="国家" wx:if="{{is_country}}">

              <!-- <view  class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">国家</view> -->
              <view class="tab-bar-item sort-name ellipsis-1" style="">国家</view>

            </view>
          </view>

          <view wx:if="{{is_show_pp}}">
            <!-- <view  style="{{status_show == 2?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> -->
            <view bindtap="click_classify" class="{{select_classify_on==220?'select_classify':''}} fs30" wx:if="{{is_brand}}" data-index="220" data-name="品牌">

              <!-- <view  class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">品牌</view> -->
              <view class="tab-bar-item sort-name ellipsis-1" style="">品牌</view>
            </view>
          </view>

          <!-- 项目 -->
          <view wx:if="{{is_show_xm}}">
            <view bindtap="click_classify" class="fs30 {{select_classify_on==221?'select_classify':''}}" data-index="221" data-name="项目">
              <view class="tab-bar-item sort-name ellipsis-1">项目</view>
            </view>
          </view>


          <!-- 品类 -->
          <view wx:if="{{is_show_pl}}">
            <view wx:for="{{one_level_classify}}" wx:for-item="ittms">
              <view class="{{ittms.items.is_show_class == true?'is_show_class':''}}">
                <!-- 添加左边红色条 -->
                <!-- <view  style="{{ittms.items.is_show_class == true?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> -->
                <view bindtap="click_classify" data-arr="{{ittms.array}}" data-cid="{{ittms.items.id}}" data-pid="0" class="{{select_classify_on==index?'select_classify width80':''}}  fs30 t-c  {{select_classify_on==index&&ittms.items.name.length==2?'':''}} {{select_classify_on==index&&ittms.items.name.length==3?'':''}}" data-index="{{index}}" data-name="{{ittms.items.mobile_name}}">
                  <view class="tab-bar-item sort-name ellipsis-1">{{ittms.items.name}}</view>
                </view>
              </view>
            </view>
          </view>

        </view>

      </view>
      <!-- 分类项目的内容 -->
      <view class="classify_content" style="padding-left:196rpx;">
        <!-- 国家的样式 -->
        <block wx:if="{{select_classify_on==223&&is_show_gb}}">
          <view class="classify_name fs28 flex-space-between">
            <view>{{ishaf_three==1?good_list.name:classify_name}}</view>

          </view>
          <view class=" classify_content-frame flex-space-between ">
            <view bindtap="go_nation" class="country_img-frame rel outer_location" wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx" data-nid="{{bitem.id}}">
              <image wx:if="{{bitem.imgtype==1}}" class="country_img" src="{{bitem.logo}}"></image>
              <image wx:else class="country_img" src="{{iurl}}{{bitem.logo}}"></image>

              <view class='nation_box abs box'>
                <view class='nt_1 t-c line-height' style="height:50rpx">
                  <text class="nation_z_name ellipsis-1 nt_1_t height fs24">{{bitem.name}}</text>
                </view>
                <view class='nt_2 t-c line-height fs24' style="line-height: 50rpx">
                  <text class="nation_y_name ellipsis-1 nt_1_t height fs24">{{bitem.enname}}</text>
                </view>
              </view>
              <!--<view class='nation_box abs box' style="top:20rpx">-->
              <!--</view>-->
            </view>
          </view>
        </block>
        <!-- 品牌 -->
        <!--        <block wx:if="{{select_classify_on==220&&is_show_pp}}">

        <view class="classify_name fs28 flex-space-between">
           <view>{{classify_name}}</view>
        </view>

        <view class="classify_content-frame flex flex-wrap">

         <block wx:for="{{groups}}" wx:for-item="brand_list" wx:for-index="pidx">
         <view class="brand_img_frame" wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}" >

            <view class="t-c">
              <image class="brand_img" src="{{user.logo}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image>
              <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view>
            </view>
         </view>


        </block>
        </view>
        </block> -->
        <block wx:if="{{select_classify_on==220&&is_show_pp}}">
          <scroll-view scroll-y="true" class="fenlei-list" style="height: 100%;padding-bottom:100rpx;" scroll-into-view="{{scrollIntoView}}">
            <view class="classify_name fs28 flex-space-between">
              <view>{{classify_name}}</view>
            </view>
            <block wx:for="{{groups}}" wx:for-item="brand_list" wx:for-index="pidx">
              <view id="{{brand_list.zm}}" class="group-name">{{brand_list.zm}}</view>
              <view class="classify_content-frame flex flex-wrap">
                <view class="brand_img_frame " wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}">
                  <view class="t-c">
                    <image class="brand_img" src="{{user.logo}}" data-pix="{{pidx}}" data-idx="{{idx}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image>
                    <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view>
                  </view>
                </view>
              </view>
            </block>
          </scroll-view>
          <view class="nav box box-tb my-nav" style="top:140rpx;" catchtouchmove="touchmove" catchtouchend="touchend">
            <view class="iconfont icon-shangjiantou"></view>
            <view bindtap="tabLetter" data-index="{{item.zm}}" wx:for="{{groups}}" class="flex box box-align-center box-pack-center letter">
              <text class="letter-text {{selected == item.zm ? 'letter-actived' : ''}}" wx:if="{{item.zm}}">{{item.zm}}</text>
            </view>
          </view>
        </block>




        <!-- 卡项 -->
        <!-- <block wx:if="{{select_classify_on==220&&is_show_xm}}"> -->
        <block wx:if="{{select_classify_on==221&&is_show_xm}}">
          <block wx:if="{{xmlist && xmlist.length != 0}}">
            <view class="classify_name fs28 flex-space-between">
              <view>{{classify_name}}</view>
            </view>

            <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;">
              <block wx:for="{{xmlist}}">
                <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}">
                  <view class="t-c">
                    <image wx:if="{{item.ico}}" class="brand_img" src="{{item.ico}}" mode="heightFix"></image>
                    <image wx:else class="brand_img" src="{{iurl + '/miniapp/images/no_cate_def.png'}}" mode="heightFix"></image>
                    <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view>
                  </view>
                </view>
              </block>
            </view>
          </block>

          <view wx:else class="t-c fs28 c-9 pdt50">暂无项目</view>
        </block>

        <!-- 品类-->
        <block wx:if="{{is_show_pl&&select_classify_on!=221&&select_classify_on!=220&&select_classify_on!=223}}">
          <!-- <block wx:if="{{select_classify_on!=221&&select_classify_on!=220&&select_classify_on!=223&&is_level_three!=1}}"> -->
          <view wx:if="{{one_level_classify && one_level_classify[select_classify_on] && one_level_classify[select_classify_on].items && one_level_classify[select_classify_on].items.ad_list && one_level_classify[select_classify_on].items.ad_list.length>0}}" style="width: 515rpx;height: 200rpx;margin: 0 auto;">
            <swiper circular="true" indicator-dots indicator-active-color="#fff" autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical="" bindchange="bannerSwiperChange" style="height:200rpx;min-height: 200rpx;">
              <swiper-item wx:for="{{one_level_classify[select_classify_on].items.ad_list}}" wx:key="banner" class="swiperItem">
                <view class="slide-image-frame">
                  <image bindtap='go_ad' data-url="{{item.ad_weapplink}}" style="width: 100%;height:200rpx;" class="slide-image"  src="{{ iurl + item.ad_code}}"  data-index="{{index}}" lazy-load="true" ></image>
                </view>
              </swiper-item>
            </swiper>
          </view>
          <view class="my-container">
            <view class="classify_name fs28 flex-space-between ai-center" data-pid="0" data-cid="{{cat_id}}" bindtap="{{(one_level_classify[select_classify_on].diy_class) ? '' :'select_more'}}">
              <view class="classify_title ellipsis-1">{{classify_name}}</view>
              <view class="flex select_more ai-center" wx:if="{{!(one_level_classify[select_classify_on].diy_class)}}">
                <view class="red-co fs24">更多</view>
                <view class="bg_right width_height" style="margin-top: 0;"></view>
              </view>
            </view>
            <!-- 显示2级列表 -->
            <!-- <view class="classify_content-frame flex-wrap">
              <block wx:if="{{goodslist && goodslist.length>0}}">
                <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="indx">
                  <view class="type_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="{{goods.items.parent_id}}" bindtap="go_cate">
                    <image class=" type_img" src="{{goods.items.icoimg==null||goods.items.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':goods.items.icoimg}}" binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image>
                    <view class="brand_img_name fs24 ellipsis-1 pdh10">{{goods.items.name}}</view>
                  </view>
                </block>
              </block>
              <block wx:else>
                <view class="no_child_lev fs28">该类别无子级</view>
              </block>
            </view> -->

          </view>

            <block wx:if="{{is_level_three==1}}">
              <!-- <block wx:if="{{select_classify_on == 0&&is_level_three!=1}}"> -->


               <!-- 商品 含有3级的-->
               <!-- <block wx:if="{{select_classify_on!=220&&select_classify_on!=221&&select_classify_on!=223&&is_level_three==1}}"> -->

              <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="inds">
              <view>

                <view class="classify_name fs28 flex-space-between ai-center" data-pid="{{goods.items.parent_id}}" data-cid="{{goods.items.id}}" bindtap="{{one_level_classify[select_classify_on][diy_class] ? '' :'select_more'}}">

                  <view class="classify_title ellipsis-1" style="margin-left: 25rpx;">{{goods.items.name}}</view>
                  <view class="flex select_more ai-center" wx:if="{{!one_level_classify[select_classify_on].diy_class}}">
                    <view class="red-co fs24">更多</view>
                    <view class="bg_right width_height" style="margin-top: 0;"></view>
                  </view>
                </view>

                <block wx:if="{{goods.arrays.length>0}}">
                  <view class="classify_content-frame  flex-wrap" style="margin-left: 50rpx;">
                    <view class="type_img_frame t-c ib" data-cid="{{item.id}}" data-pid="three" wx:for="{{goods.arrays}}" data-url="{{item.weapp_path_url}}" wx:for-index="index" wx:for-item="item" bindtap="{{goods.diy_class ? 'go_ad':'go_cate'}}">
                      <image class=" type_img" src="{{item.icoimg==null||item.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.icoimg}}" binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image>
                      <view class="brand_img_name fs24 ellipsis-1 pdh10">{{item.name}}</view>
                    </view>
                  </view>
                  <!-- <view class="divider_line"></view> -->
                </block>

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

            <block wx:else>
              <view class="classify_content-frame  flex-wrap" style="margin-left: 50rpx;">
                <view class="type_img_frame t-c ib" data-cid="{{item.items.id}}" data-pid="three" wx:for="{{goodslist}}" data-url="{{item.items.weapp_path_url}}" wx:for-index="index" wx:for-item="item" bindtap="{{item.diy_class ? 'go_ad':'go_cate'}}">
                  <image class=" type_img" src="{{item.items.icoimg==null||item.items.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.items.icoimg}}" binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image>
                  <view class="brand_img_name fs24 ellipsis-1 pdh10">{{item.items.name}}</view>
                </view>
              </view>

            </block>

        </block>
      </view>
    </view>
  </block>
  <block wx:elif="{{is_do}}">
    <view class="no-data">
      <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
      <view class="no-data-title">商家暂未设置分类</view>
      <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator>
    </view>
  </block>

</block>
<!-- 风格3 -->
<block wx:elif="{{is_used_share == 2}}">
  <block wx:if="{{is_show_pl || is_show_gb || is_show_pp || is_show_xm}}">
    <!-- 头部 -->
    <view class="xc-search-box flex-center white_b" id="navbar" style="position:fixed;top:0;z-index:99">
      <!-- <view class="share-height t-c" bindtap="getScancode" >
              <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image>
              <view class="fs24">
              扫一扫
              </view>
            </view>
            <view class="xc-search-inner ">
                <view class="search-img left">
                    <image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image>
                </view>
                <input bindfocus="goseach" class="search-cont" placeholder="请输入您所搜索的商品" type="text"></input>
            </view> -->

      <!-- 搜索框 -->
      <view class="search-container f1">
        <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>请输入商品关键字</view>
      </view>
      <view class="pdl30" bindtap="getScancode">
        <image class="scanning_black-img" src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image>
        <!-- <view class="fs24">扫一扫</view> -->
      </view>
    </view>
    <!-- /头部 -->
    <!-- 分类项目内容 -->
    <view class="flex project_height" style="">
      <!-- 分类项目的类型 -->
      <view class="project_type" style="background-color:#f4f4f4;overflow-y:auto;position:fixed;left:0;z-index:99;top:108rpx;" id="thress_type3">
        <view class="project_type-frame" style="margin-bottom:120rpx;">
          <view wx:if="{{is_show_gb}}">
            <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==223 ? 'active' : ''}}" data-index="223" data-name="国家" wx:if="{{is_country}}" data-current="223">
              <text style="">国家</text>
            </view>
          </view>

          <view wx:if="{{is_show_pp}}">
            <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==220 ? 'active' : ''}}" wx:if="{{is_brand}}" data-index="220" data-name="品牌" data-current="220">
              <text style="">品牌</text>
            </view>
          </view>


          <!-- 卡项 -->
          <view wx:if="{{is_show_xm}}">
            <view bindtap="click_classify" class="tab-bar-item {{select_classify_on == 221 ? 'active' : ''}}" data-index="221" data-name="项目" data-current="221">
              <text>项目</text>
            </view>
          </view>



          <view wx:if="{{is_show_pl}}">
            <!-- <view wx:for="{{one_level_classify}}" wx:for-item="ittms" class="class_set_height"> -->
            <!-- <view class="{{ittms.items.is_show_class == true?'is_show_class':''}}"> -->
            <!-- 添加左边红色条 -->
            <!-- <view  style="{{ittms.items.is_show_class == true?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> -->
            <!-- <view bindtap="click_classify"  style="{{status_show == 0 && ittms == 0 ?'margin-top:0':'margin-top:0rpx'}}" data-arr="{{ittms.array}}" data-cid="{{ittms.items.id}}" data-pid="0" class="{{select_classify_on==index?'select_classify width80':''}} share_type fs30 t-c {{ittms.items.name.length==2? 'world_sn':''}} {{select_classify_on==index&&ittms.items.name.length==2?'text-indent':''}} {{select_classify_on==index&&ittms.items.name.length==3?'text3':''}}"data-index="{{index}}"data-name="{{ittms.items.mobile_name}}">
                      <view class="{{ittms.items.name.length==3?'flex-center-around':'flex-space-between'}}" wx:if="{{ittms.items.name.length<4}}">
                        <view wx:for="{{ittms.items.name}}" wx:for-item="name"wx:for-index="index">
                          <view>
                          {{name}}
                          </view>
                        </view>
                      </view>
                      <view wx:else class="sort-name ellipsis-1">{{ittms.items.name}}</view>
                    </view> -->
            <!-- </view> -->
            <scroll-view scroll-y scroll-with-animation class="tab-view" scroll-top="{{scrollTop}}" style="height:88%">
              <view wx:for="{{one_level_classify}}" wx:for-item="ittms" wx:key="{{index}}" class="tab-bar-item {{select_classify_on==index ? 'active' : ''}}" data-current="{{index}}" catchtap="click_classify" data-arr="{{ittms.array}}" data-cid="{{ittms.items.id}}" data-pid="0" data-index="{{index}}" data-name="{{ittms.items.mobile_name}}">
                <text>{{ittms.items.name}}</text>
                <!-- <view class="{{ittms.items.name.length==3?'flex-center-around':'flex-space-between'}}" wx:if="{{ittms.items.name.length<4}}">
                        <view wx:for="{{ittms.items.name}}" wx:for-item="name"wx:for-index="index">
                          <text>
                          {{name}}
                          </text>
                        </view>
                      </view>
                      <text wx:else class="sort-name ellipsis-1">{{ittms.items.name}}</text> -->
              </view>
            </scroll-view>

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



        </view>
      </view>
      <!-- 分类项目的内容 -->
      <view  class="classify_content" style="padding-left:26%;padding-top:108rpx;box-sizing: border-box;" bindtouchstart="bScroll" bindtouchend="btouMove">
        <!-- 国家的样式 -->
        <block wx:if="{{select_classify_on==223&&is_show_gb}}">
          <view class="classify_name fs28 flex-space-between">
            <view>{{ishaf_three==1?good_list.name:classify_name}}</view>

          </view>
          <view class=" classify_content-frame flex-space-between ">
            <view bindtap="go_nation" class="country_img-frame rel outer_location" wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx" data-nid="{{bitem.id}}">
              <image wx:if="{{bitem.imgtype==1}}" class="country_img" src="{{bitem.logo}}"></image>
              <image wx:else class="country_img" src="{{iurl}}{{bitem.logo}}"></image>
              <view class='nation_box abs box'>
                <view class='nt_1 t-c line-height' style="height:50rpx">
                  <text class="nation_z_name ellipsis-1 nt_1_t height fs24">{{bitem.name}}</text>
                </view>
                <view class='nt_2 t-c line-height fs24' style="line-height: 50rpx">
                  <text class="nation_y_name ellipsis-1 nt_1_t height fs24">{{bitem.enname}}</text>
                </view>
              </view>
              <!--<view class='nation_box abs box' style="top:20rpx">-->
              <!--</view>-->
            </view>
          </view>
        </block>


        <!-- 品牌 -->
        <!--        <block wx:if="{{select_classify_on==220&&is_show_pp}}">

        <view class="classify_name fs28 flex-space-between">
           <view>{{classify_name}}</view>
        </view>

        <view class="classify_content-frame flex flex-wrap">

         <block wx:for="{{groups}}" wx:for-item="brand_list" wx:for-index="pidx">
         <view class="brand_img_frame "wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}" >

            <view class="t-c">
               <image class="brand_img" src="{{user.logo}}" data-pix="{{pidx}}" data-idx="{{idx}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image>
                <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view>
           </view>
         </view>
        </block>
        </view>
        </block> -->

        <!-- 品牌 -->
        <block wx:if="{{select_classify_on==220&&is_show_pp}}">
          <scroll-view scroll-y="true" class="fenlei-list" style="height: 100%;padding-bottom:100rpx;" scroll-into-view="{{scrollIntoView}}">
            <view class="classify_name fs28 flex-space-between">
              <view>{{classify_name}}</view>
            </view>
            <block wx:for="{{groups}}" wx:for-item="brand_list" wx:for-index="pidx">
              <view id="{{brand_list.zm}}" class="group-name">{{brand_list.zm}}</view>
              <view class="classify_content-frame flex flex-wrap">
                <view class="brand_img_frame " wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}">
                  <view class="t-c">
                    <image class="brand_img" src="{{user.logo}}" data-pix="{{pidx}}" data-idx="{{idx}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image>
                    <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view>
                  </view>
                </view>
              </view>
            </block>
          </scroll-view>
          <view class="nav box box-tb my-nav" style="top:140rpx;" catchtouchmove="touchmove" catchtouchend="touchend">
            <!-- <image src="/images/up.png" style="width:36rpx;height:36rpx;margin-right:10rpx;"></image> -->
            <view class="iconfont icon-shangjiantou"></view>
            <view bindtap="tabLetter" data-index="{{item.zm}}" wx:for="{{groups}}" class="flex box box-align-center box-pack-center letter">
              <text class="letter-text {{selected == item.zm ? 'letter-actived' : ''}}" wx:if="{{item.zm}}">{{item.zm}}</text>
            </view>
          </view>
        </block>




        <!-- 卡项 -->
        <block wx:if="{{select_classify_on==221&&is_show_xm}}">
          <block wx:if="{{xmlist && xmlist.length != 0}}">
            <view class="classify_name fs28 flex-space-between">
              <view>{{classify_name}}</view>
            </view>

            <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;">
              <block wx:for="{{xmlist}}">
                <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}">
                  <view class="t-c">
                    <image wx:if="{{item.ico}}" class="brand_img" src="{{item.ico}}" mode="heightFix"></image>
                    <image wx:else class="brand_img" src="{{iurl + '/miniapp/images/no_cate_def.png'}}" mode="heightFix"></image>
                    <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view>
                  </view>
                </view>
              </block>
            </view>
          </block>

          <view wx:else class="t-c fs28 c-9 pdt50">暂无项目</view>

        </block>


        <!-- 品类-->
        <!-- <block  wx:if="{{select_classify_on==0&&is_show_pl}}"> -->
        <block wx:if="{{is_show_pl&&select_classify_on!=220&&select_classify_on!=223&&select_classify_on!=221}}" >
          <!-- <block wx:if="{{select_classify_on!=220&&select_classify_on!=223}}"> -->
          <block wx:if="{{select_classify_on!=220&&select_classify_on!=223&&select_classify_on!=221}}">
            <view style="width:100%;height:100%;position: relative;">
              <view class="classify_name fs28 flex ai-center flex-space-between" id="header" data-pid="0" data-cid="{{cat_id}}" bindtap='select_more' style="box-sizing:border-box;position:fixed;z-index: 999;width:74%;background-color:#ffffff;padding:0 20rpx;">
                <view class="classify_title ellipsis-1">{{classify_name}}</view>
                <view class="flex select_more ai-center">
                  <view class="red-co fs24">更多</view>
                  <view class="bg_right width_height" style="margin-top: 0;"></view>
                </view>
              </view>
              <!-- 显示商品列表开始 -->
              <!-- <view class="classify_content-frame flex-wrap" style="width:100%;overflow:hidden;heigth:100%;"> -->

              <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> -->
              <scroll-view   scroll-y scroll-top="{{scrollTop}}"  bindscrolltolower='scrollLower' bindscrolltoupper='scrolltoupper' style="height:{{windowHeight}};position:absolute;margin-top:70rpx;top:0;bottom:0;left:0;width:100%;">
                <view class="null" style="width:100%;height:1px;"></view>
                <!-- goodslist -->
                <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}">

                  <navigator class="choice_item" style="margin-bottom:{{dataLength -1 == index?'50px':'0'}}" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:for="{{requestData}}" data-id="{{index}}" wx:key="{{index}}">
                    <view class="img-wrap">
                      <image src="{{url+item.original_img}}" binderror="bind_bnerr_t3" data-url="{{url+item.original_img}}" lazy-load="true" data-errorimg="requestData[{{index}}].original_img"></image>
                    </view>
                    <view class="item-cont">
                      <view class="title">{{item.goods_name}}</view>
                      <!-- 判断是否有活动价 -->
                      <block wx:if="{{(item.prom_price>0 || item.prom_integral)  && item.prom_id>0 && item.prom_type!=7 && item.prom_type!=10}}">

                        <view class="flex ai-center">
                          <!-- 活动价 -->
                          <view class="price">
                            <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text>
                            <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>
                            <text wx:if="{{item.prom_price}}" class="rmb">{{item.prom_price}}</text>
                          </view>
                          <view wx:if="{{is_retail_price}}" class="word-line xc-ash rmb mgl10 fs24 no_line_c">{{item.market_price}}</view>
                        </view>

                        <view class="comment">

                          <view class="fs22 pdt10 t-r">
                            <span>评论{{item.comment_count}}</span>
                            <span class="pdl30">已售{{item.sales_sum}}</span>
                          </view>
                        </view>
                      </block>
                      <block wx:else>


                        <!-- 商品价格,先判断下是后又等级价-->
                        <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}">


                          <!-- 当会员是等级卡的时候 -->
                          <block wx:if="{{card_field}}">

                            <!-- 等级价>0 -->
                            <block wx:if="{{item[card_field]>0}}">
                              <view class="flex ai_and">
                                <view class="price rmb">{{item[card_field]}}</view>
                                <view class="card_bg ellipsis-1">
                                  <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
                                  <view class="card_name">{{card_name}}</view>
                                </view>
                              </view>
                              <view class="comment flex jc_sb">
                                <view wx:if="{{is_retail_price}}" class="word-line xc-ash rmb fs24 no_line_c">{{item.market_price}}</view>
                                <view class="fs22 pdt10 t-r">
                                  <span>评论{{item.comment_count}}</span>
                                  <span class="pdl30">已售{{item.sales_sum}}</span>
                                </view>
                              </view>
                            </block>
                            <block wx:else>
                              <view class="flex ai-center">
                                <view class="price rmb">{{item.shop_price}}</view>
                                <view wx:if="{{is_retail_price}}"  class="word-line xc-ash rmb fs24 mgl10 no_line_c">{{item.market_price}}</view>
                              </view>

                              <view class="comment">
                                <view class="fs22 pdt10 t-r">
                                  <span>评论{{item.comment_count}}</span>
                                  <span class="pdl30">已售{{item.sales_sum}}</span>
                                </view>
                              </view>
                            </block>
                          </block>
                          <block wx:else>

                            <block wx:if="{{g_filter.get_card_price(item,card_list,0)}}">
                              <view class="flex ai-center">
                                <view class="price rmb">{{item.shop_price}}</view>
                                <view wx:if="{{is_retail_price}}" class="word-line xc-ash mk_price rmb fs24 mgl10 no_line_c">{{item.market_price}}</view>
                              </view>
                              <view class="comment">
                                <view class="flex ai-center">
                                  <view class="rmb">{{g_filter.get_card_price(item,card_list,0)}}</view>
                                  <view class="card_bg ellipsis-1">
                                    <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
                                    <view class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</view>
                                  </view>
                                </view>
                              </view>

                              <view class="fs22 t-r" style="color:#999;">
                                <span>评论{{item.comment_count}}</span>
                                <span class="pdl30">已售{{item.sales_sum}}</span>
                              </view>


                            </block>
                            <block wx:else>
                              <view class="flex ai-center">
                                 <view class="price rmb">{{item.shop_price}}</view>
                                 <view wx:if="{{is_retail_price}}" class="word-line xc-ash rmb fs24 mgl10 no_line_c">{{item.market_price}}</view>
                              </view>
                              <!-- <view class="price">￥{{item.shop_price}}</view> -->
                              <view class="comment">
                                <!-- <view class="word-line xc-ash">￥{{item.market_price}}</view> -->
                                <view class="fs22 pdt10 t-r">
                                  <span>评论{{item.comment_count}}</span>
                                  <span class="pdl30">已售{{item.sales_sum}}</span>
                                </view>
                              </view>
                            </block>
                          </block>
                        </block>
                        <block wx:else>

                          <view class="flex ai-center">
                            <view class="price rmb">{{item.shop_price}}</view>
                            <view wx:if="{{is_retail_price}}" class="word-line xc-ash rmb fs24 mgl10 no_line_c">{{item.market_price}}</view>
                          </view>
                          <!-- <view class="price">￥{{item.shop_price}}</view> -->
                          <view class="comment">
                            <!-- <view class="word-line xc-ash">￥{{item.market_price}}</view> -->
                            <view class="fs22 pdt10 t-r">
                              <span>评论{{item.comment_count}}</span>
                              <span class="pdl30">已售{{item.sales_sum}}</span>
                            </view>
                          </view>
                        </block>
                      </block>
                    </view>
                  </navigator>
                  <!-- 暂无更多 -->
                  <view style="height: 30rpx;line-height: 30rpx;margin-top: 20rpx;font-size: 25rpx; text-align: center;" wx:if="{{is_no_more}}">暂无更多</view>
                  <view id="sview" style="height: 420rpx;width: 100%;text-align: center;" wx:if="{{nextShow}}">
                    <view style="display: flex;align-items: center;justify-content: center;height:60rpx;">
                      <text class="iconfont icon-arrowup" style="font-size: 25rpx;color: #999;">上滑查看下一个分类</text>
                      <!-- <text >上滑查看下一个分类</text> -->
                    </view>
                  </view>
                </view>
                <view class="no-data" wx:if="{{msgStatus == true}}">
                  <!-- <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> -->

                  <view wx:if="{{msgStatus == true && lastMsg == false}}" class="no-data-title" style="text-align:center;margin-top:100px">
                    <view style="color:#444;line-height:30px;">该类别暂无推荐商品</view>
                    <view style="color:#444;line-height:30px;"> {{countDownNum}} 秒后自动跳到下一个类别</view>
                  </view>
                  <view wx:elif="{{lastMsg == true && msgStatus == true}}" class="no-data-title" style="text-align:center;margin-top:100px">该类别暂无推荐商品</view>
                  <!-- <navigator class="lookat"  url="/pages/index/index/index"> 去逛逛 </navigator> -->
                </view>


              </scroll-view>
              <!-- /goodslist -->
            </view>
            <!-- 商品列表结束 -->

          </block>
        </block>
      </view>
    </view>
  </block>
  <block wx:elif="{{is_do}}">
    <view class="no-data">
      <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
      <view class="no-data-title">商家暂未设置分类</view>
      <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator>
    </view>
  </block>
</block>