<!--pages/Home/home.wxml-->
<view wx:if="{{isLogin!=0}}" class="Home commonF">
  <view id="searchView">
    <search id="CityComp" bind:ChangeSite="ChangeSite"></search>
  </view>
  <view class="tab1">
    <swiper autoplay="{{true}}" duration="{{duration}}">
      <block wx:for="{{background}}" wx:key="index">
        <swiper-item>
          <image src="{{item}}"></image>
        </swiper-item>
      </block>
    </swiper>
    <!-- <image src="http://imgfile.oytour.com/New/Upload/Cloud/2019-06/20190626103242285.png"></image> -->
  </view>
  <view class="tablist">
    <view>
      <navigator hover-class="Home_hover" url="/pages/GroupTour/GroupTour">
        <image src="../../images/home/list1.png"></image>
        <view>跟团游</view>
      </navigator>

    </view>
    <view>
      <navigator hover-class="Home_hover" url="/pages/freeTravel/free">
        <image src="../../images/home/list2.png"></image>
        <view>自由行</view>
      </navigator>

    </view>
    <view>
      <navigator hover-class="Home_hover" url="/pages/local/localhome">
        <image src="../../images/home/list3.png"></image>
        <view>当地游</view>
      </navigator>

    </view>
    <view>
      <navigator hover-class="Home_hover" url="/pages/visa/visa">
        <image src="../../images/home/list4.png"></image>
        <view>签证</view>
      </navigator>

    </view>
    <view>
      <navigator hover-class="Home_hover" url="/pages/Ticket/Ticket">
        <image src="../../images/home/list5.png"></image>
        <view>机票</view>
      </navigator>

    </view>
  </view>
  <view class="tab2">
    <navigator hover-class="Home_hover" url="/pages/activity/activity">
      <image src="http://imgfile.oytour.com/New/Upload/Cloud/2019-06/20190626103346128.png"></image>
    </navigator>
  </view>

  <view class="CommonMargin commonF">
    <!-- 超值特卖 -->
    <view>
      <view>
        <text style="font-size:30rpx;color:#000000">超值特卖</text>
        <text bindtap="goMore" data-url="/pages/GroupTour/GroupList/GroupList" style="font-size:24rpx;color:#888888;float:right;margin-top:15rpx">查看更多</text>
      </view>
      <view class="cztm cztm1">
        <view bindtap="goGroup" data-teamType="{{0}}" data-item="{{item}}" class="cztmList1" wx:for="{{homeTravelSpecialSale}}" wx:key="{{index}}" wx:if="{{index==0}}">
          <image src="{{item.imgCover[0].url}}"></image>
          <view class="boxshadow">
            <view class="text1" style="font-size:30rpx;padding-top:29rpx">{{item.title}}</view>
            <view style="font-size:22rpx">{{item.dayNum}}日{{item.nightNum}}晚</view>
          </view>
        </view>
        <view bindtap="goGroup" data-teamType="{{0}}" data-item="{{item}}" class="cztmList" wx:for="{{homeTravelSpecialSale}}" wx:key="{{index}}" wx:if="{{index==1}}">
          <image src="{{item.imgCover[0].url}}"></image>
          <view class="boxshadow">
            <view class="text1" style="font-size:30rpx;padding-top:29rpx">{{item.title}}</view>
            <view style="font-size:22rpx">{{item.dayNum}}日{{item.nightNum}}晚</view>
          </view>
        </view>

      </view>
      <view class="cztm cztm2">
        <view bindtap="goGroup" data-teamType="{{0}}" data-item="{{item}}" class="cztmList" wx:for="{{homeTravelSpecialSale}}" wx:key="{{index}}" wx:if="{{index>1 && index<5}}">
          <image src="{{item.imgCover[0].url}}"></image>
          <view class="boxshadow">
            <view class="text1" style="font-size:30rpx;padding-top:29rpx">{{item.title}}</view>
            <view style="font-size:22rpx">{{item.dayNum}}日{{item.nightNum}}晚</view>
          </view>
        </view>
      </view>
    </view>
    <!-- 特价机票 -->
    <view>
      <view>
        <text style="font-size:30rpx;color:#000000">特价机票</text>
        <text style="font-size:24rpx;color:#888888;float:right;margin-top:15rpx">查看更多</text>
      </view>
      <view style="margin-left:-20rpx;margin-top:23rpx">
        <view class="tjTicket" wx:for="{{specialAirTicketItem}}" wx:key="index">
          <view class="listLeft">
            {{item.alName}}
          </view>
          <view class="listRight">
            <view class="icon">
              <view class="hidden">{{item.departureName}}</view>
              <view>
                <view style="padding:0 4rpx">
                  <view style="position:relative;top:20rpx;">
                    <image style="width:24rpx;height:22rpx" src="../../images/home/icon1.png"></image>
                  </view>
                  <image style="width:60rpx;height:14rpx" src="../../images/home/icon2.png"></image>

                </view>
              </view>
              <view class="hidden">{{item.arrivalCityName}}</view>
            </view>
            <view style="text-align:right;color:#EE4454;font-size:20rpx;">
              ￥ {{(isLogin!=1 ? item.b2CPrice : item.b2BPrice)}}
            </view>
          </view>
        </view>
      </view>

    </view>

  </view>
  <!-- <view style="font-size:30rpx;color:#000000;padding-left:30rpx">猜你喜欢</view>
  <view class="likeView">
    <text bindtap="Scroll" data-id="GroupScroll" data-index="{{1}}" class="activeText">跟团游</text>
    <text bindtap="Scroll" data-id="FreeScroll" data-index="{{2}}">自由行</text>
    <text bindtap="Scroll" data-id="ScenScroll" data-index="{{3}}">景点门票</text>
    <text bindtap="Scroll" data-id="GroupScroll" data-index="{{1}}">当地游</text>
  </view> -->
  <!-- 猜你喜欢 -->
  <scroll-view scroll-y scroll-into-view="{{ScrollView}}" scroll-with-animation="true">

    <!-- 跟团游 -->
    <view id="GroupScroll" class="FlTitleView">
      <text class="text" style="color:#61DCD4"> \ \ \ </text>
      <text style="font-size:30rpx;color:#000000;font-weight:600;margin:0 12rpx"> 跟团游          </text>
      <text class="text" style="color:#61DCD4"> \ \ \</text>
      <text bindtap="goMore" data-url="/pages/GroupTour/GroupList/GroupList" class="more f24 c88"> 查看更多</text>
    </view>
    <view class="Gtour CommonList">
      <view bindtap="goGroup" data-item="{{item}}" data-teamType="{{0}}" wx:for="{{gentuanList}}" wx:key="index">
        <view class="imgView">
          <!-- <text class="country">日本</text> -->
          <image wx:if="{{item.imgCover[0]}}" src="{{item.imgCover[0].url}}"></image>
        </view>
        <view class='pad title text1'>{{item.title}}</view>
        <view class="pad">
          <!-- <text class="xl">销量432份</text> -->
          <text class="price">￥{{isLogin!=1 ? item.b2CPrice : item.b2BPrice}} 起</text>
        </view>
      </view>
    </view>
    <!-- 自由行 -->
    <view id="FreeScroll">
      <view class="FlTitleView">
        <text class="text" style="color:#FD7F56"> \ \ \ </text>
        <text style="font-size:30rpx;color:#000000;font-weight:600;margin:0 12rpx"> 自由行          </text>
        <text class="text" style="color:#FD7F56"> \ \ \</text>
        <text bindtap="goMore" data-url="/pages/freeTravel/freeList/freeList" class="more f24 c88"> 查看更多</text>
      </view>
      <view class="Gtour CommonList">
        <view bindtap="goGroup" data-item="{{item}}" data-teamType="{{1}}" wx:for="{{freeList}}" wx:key="index">
          <view class="imgView">
            <!-- <text class="country">日本</text> -->
            <image wx:if="{{item.imgCover[0]}}" src="{{item.imgCover[0].url}}"></image>
          </view>
          <view class='pad title text1'>{{item.title}}</view>
          <view class="pad">
            <!-- <text class="xl">销量432份</text> -->
            <text class="price">￥{{isLogin!=1 ? item.b2CPrice : item.b2BPrice}}起</text>
          </view>
        </view>

      </view>
    </view>
    <!-- 景点门票 -->
    <view id="ScenScroll" class="FlTitleView">
      <text class="text" style="color:#6AA8F9"> \ \ \ </text>
      <text style="font-size:30rpx;color:#000000;font-weight:600;margin:0 12rpx"> 景点门票</text>
      <text class="text" style="color:#6AA8F9"> \ \ \</text>
      <text bindtap="goMore" data-url="/pages/local/localTrip/localTrip?isShowType=3" class="more f24 c88"> 查看更多</text>
    </view>
    <view class="Scen CommonList">
      <view bindtap="goTicket" data-item="{{item}}" wx:for="{{scenList}}" wx:key="index">
        <view class="ScenimgView">
          <!-- <text class="country">日本</text> -->
          <image wx:if="{{item.coverImgs[0]}}" src="{{item.coverImgs[0]}}"></image>
          <view class="DesView">
            <view class='pad title text1'>{{item.name}}</view>
            <view class="padScen">
              <text class="xl">今日可用</text>
              <text class="price">￥{{isLogin!=1 ? item.b2cPrice : item.b2bPrice}}起</text>
            </view>
          </view>
        </view>
      </view>

    </view>
    <!-- 当地游 -->
    <view class="FlTitleView">
      <text class="text" style="color:#F36C9B"> \ \ \ </text>
      <text style="font-size:30rpx;color:#000000;font-weight:600;margin:0 12rpx"> 当地游</text>
      <text class="text" style="color:#F36C9B"> \ \ \</text>
      <text class="more f24 c88" bindtap="goMore" data-url="/pages/local/localTrip/localTrip"> 查看更多</text>
    </view>
    <view class="Local CommonList">
      <view bindtap="goGroup" data-item="{{item}}" data-teamType="{{2}}" wx:for="{{localList}}" wx:key="index">
        <view class="LocalimgView">
          <image wx:if="{{item.imgCover[0]}}" src="{{item.imgCover[0].url}}"></image>
          <view class='title'>{{item.ltName}}</view>
          <text class="price">￥{{isLogin!=1 ? item.b2CPrice : item.b2BPrice}}起</text>
        </view>
      </view>

    </view>
  </scroll-view>

</view>
<!-- 未登录 -->
<view class="loginOut" wx:if="{{isLogin==0}}">
  <view class="imgView">
    <image style="width:438rpx;height:215rpx" src="http://imgfile.oytour.com/New/Upload/Cloud/2019-07/20190710035131045.png"></image>
    <view style="font-size:28rpx">您还没有登录，请登录后查看</view>
    <view bindtap="login" class="loginBtn">去登录</view>
  </view>
</view>