<view class='GroupList commonF'>
  <view id="searchView">
 <search id="CityComp" bind:ChangeSite="ChangeSite"></search>
</view>
  <view class="ListView">
    <view class="PxView">
      <!-- <view class="jView">
        综合
      </view> -->
      <view class="jView" data-type="{{1}}" bindtap='changeOrderType' data-target="self">
        团期
        <image wx:if="{{ordertype==0||orderindex!=1}}" src="/images/group/bx.png"></image>
        <image wx:else src="/images/group/bs.png"></image>
      </view>
      <view class="jView" data-type="{{2}}" bindtap='changeOrderType'>
        价格
        <image wx:if="{{ordertype==0||orderindex!=2}}" src="/images/group/bx.png"></image>
        <image wx:else src="/images/group/bs.png"></image>
      </view>
      <view class="jView" data-type="{{3}}" bindtap='changeOrderType'>
        销量
        <image wx:if="{{ordertype==0||orderindex!=3}}" src="/images/group/bx.png"></image>
        <image wx:else src="/images/group/bs.png"></image>
      </view>
      <view class="jView" data-type="{{4}}" bindtap='changeOrderType'>
        评论数
        <image wx:if="{{ordertype==0||orderindex!=4}}" src="/images/group/bx.png"></image>
        <image wx:else src="/images/group/bs.png"></image>
      </view>
      <view bindtap='ScreenOpen' class="SView">
        筛选
        <image src="/images/group/s.png"></image>
      </view>
    </view>

    <scroll-view scroll-x class="scroll-header">
      <view wx:for="{{startCityList}}" bindtap='getStartCity' data-id="{{item.id}}" data-index="{{index}}" wx:key="index" class="{{ckedStartCity==index?'ScrollActive':''}}">{{item.startCityName}}</view>
    </scroll-view>
    <!-- 列表数据 -->
    <view class="ListItem" wx:for="{{dataList}}" wx:key="index" data-id="{{item.id}}" data-tcid="{{item.tcid}}" bindtap='Godetail'>
      <view class="imgView">
        <image src="{{item.newImgCover[0].Url}}"></image>
        <view class="ListDays">
          {{item.dayNum}}天
        </view>
      </view>
      <view class="ItemRight" style="width:460rpx;padding-left:15rpx">
        <view class="text2 f26">{{item.title}}</view>
        <view class="f22" style="color:#888888;padding:15rpx 0">
          <image style="width:18rpx;height:22rpx" src="/images/group/adress.png"></image>
          出发地：{{item.startCityName}}
          <image style="width:22rpx;height:22rpx;margin-left:20rpx;" src="/images/group/tuan.png"></image>
          最近团期：{{item.startDate}}
        </view>
        <view class="f20" style="color:#5597FF">
          {{item.ltName}}
        </view>
        <view class="f22" style="color:#888888;padding-top:15rpx">
          <image style="width:22rpx;height:22rpx;margin-right:10rpx;" src="/images/group/p.png"></image>
          <text>余位：{{item.surplus>10?'充足':'仅于'+item.surplus+'席'}}</text>
          <text class="cee f40" style="float:right;position:relative;top:-20rpx"><text style="font-size:25rpx;">￥</text>{{isLogin!=1?item.b2CPrice:item.b2BPrice}}<text style="font-size:20rpx;color:#888888;margin-left:10rpx;">起</text>
          </text>
        </view>
      </view>
    </view>
  </view>
  <view class="nodata">
    <image style="width:190rpx;height:190rpx" src="/images/home/nodata.png"></image>
  </view>
  <!-- 筛选多条件 -->
  <view bindtap='CloseScreen' data-target="self" class="screen" hidden="{{!ScreenStatus}}">
    <view>
      <view class="title">出发日期</view>
      <view class="DatePicker">
        <picker class="pcikerView" mode="date" value="{{date}}" data-type="{{1}}"  bindchange="bindDateChange">
          <view class="picker">
            {{listmsg.startDate}}
          </view>
        </picker>
        <text style="margin:0 15rpx"> - </text>
        <picker class="pcikerView" mode="date" value="{{date}}" data-type="{{2}}" bindchange="bindDateChange">
          <view class="picker">
            {{listmsg.endDate}}
          </view>
        </picker>
      </view>
      <view class='MonthList'>
        <text wx:for="{{dates}}" data-type="{{item.id}}" bindtap="getStartMonth"  wx:key="index">{{item.name}}</text>
      </view>
      <view class="title">行程天数</view>
      <view class='MonthList' style="margin-top:25rpx">
        <text wx:for="{{datecount}}" wx:key="index" class="{{showDays==item.id?'ckedDays':''}}"  data-id='{{item.id}}' bindtap='getTripDay'>{{item.name}}</text>
      </view>
      <view class="title">价格区间</view>
      <view class="PriceView">
        <input placeholder="2000"  data-type='{{1}}' bindinput="bindKeyInput" placeholder-style="text-align:center" />
        <text style="padding:0 15rpx">-</text>
        <input placeholder="最高价"  data-type='{{2}}' bindinput="bindKeyInput" placeholder-style="text-align:center" />
      </view>
      <view class="btnView">
        <view bindtap='resetMsg'>重置</view>
        <view class="GL_sureBtn" bindtap="getList">确定</view>
      </view>
    </view>
  </view>
</view>