<view class='page'>

  <view class='dialog_bg' hidden='{{dialogShow}}' bindtap='typeChange'>
    <view class='dialog_box' catchtap='dialog_box_click'>
      <block wx:for="{{typeList}}" wx:key="index">
        <view class='dialog_line'>
          <image class='dialog_line_image' src='../../../images/product/{{item.id===1?"attendance_ico_seclected":"attendance_ico_cant"}}.png'></image>
          <text class='dialog_line_text'>{{item.name}}</text>
        </view>
      </block>
    </view>
  </view>

  <view class='page__bd'>
    <view class='header'>
      <view class='header_1'>
        <view class='header_check'>
          <navigator url="../productCheck/productCheck" class='header_check_in' hover-class="none">
            <text class='header_check_in_text'>目的地、旅游路线</text>
            <image class='header_check_in_image' src='../../../images/product/product_ico_search.png'></image>
          </navigator>
          <view class='header_check_site' bindtap='goToSite'>{{siteName}}</view>
        </view>
      </view>
      <!-- 线路条 -->
      <view class='header_2'>
        <view class='header_type'>
          <text class='header_type_text' bindtap='typeChange'>旅游</text>
        </view>
        <scroll-view class='header_line' scroll-x scroll-into-view="{{lineView}}" scroll-with-animation="{{true}}">
          <view class='header_line_box'>
            <block wx:for="{{line}}" wx:key="index">
              <view id='line_{{index}}' class='header_line_text {{lineNum===index?"line_select":""}}' data-index='{{index}}' bindtap='lineClick'>{{item.shortName}}</view>
            </block>
          </view>
        </scroll-view>
      </view>
    </view>
    <view class='scroll_body'>
      <swiper class='body_swiper' current="{{lineNum}}" bindchange="swiperChange">
        <block wx:for="{{line}}" wx:key="index">
          <swiper-item>
            <!-- 系列条 -->
            <view class='header_3'>
              <view class='series_left' data-index='{{index}}' bindtap='seriesLeft'></view>
              <scroll-view class='header_series' scroll-x scroll-into-view="{{item.seriesView}}" scroll-with-animation="{{true}}">
                <view class='header_series_box'>
                  <view id='{{"series_"+index+"_left"}}'></view>
                  <block wx:for="{{item.lineTeam}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2">
                    <view class='header_series_text {{item.lineTeamNum===index2?"series_select":""}}' data-index='{{index}}' data-index='{{index2}}' bindtap='seriesClick'>{{item2.shortName}}</view>
                  </block>
                  <view id='series_{{index}}_right'></view>
                </view>
              </scroll-view>
              <view class='series_right' data-index='{{index}}' bindtap='seriesRight'></view>
            </view>
            <!-- 主体 -->
            <scroll-view class='data_body' scroll-y data-index='{{index}}' bindscrolltolower="scrollGetMore">
              <view class='body_box'>
                <!-- 筛选条 -->
                <view class='filter'>
                  <view class='filter_item' data-index='{{index}}' bindtap='priceChange'>
                    <text class='filter_item_text'>价格</text>
                    <view class='filter_item_ico'>
                      <view class='filter_item_ico_top {{orderByPrice===1?"ico_select":""}}'></view>
                      <view class='filter_item_ico_bottom {{orderByPrice===2?"ico_select":""}}'></view>
                    </view>
                  </view>
                  <view class='filter_item' data-index='{{index}}' bindtap='dateChange'>
                    <text class='filter_item_text'>团期</text>
                    <view class='filter_item_ico'>
                      <view class='filter_item_ico_top {{orderByDate===1?"ico_select":""}}'></view>
                      <view class='filter_item_ico_bottom {{orderByDate===2?"ico_select":""}}'></view>
                    </view>
                  </view>
                  <view class='filter_item' data-index='{{index}}' bindtap='salesChange'>
                    <text class='filter_item_text'>销量</text>
                    <view class='filter_item_ico'>
                      <view class='filter_item_ico_top {{orderBySales===1?"ico_select":""}}'></view>
                      <view class='filter_item_ico_bottom {{orderBySales===2?"ico_select":""}}'></view>
                    </view>
                  </view>
                </view>

                <view class="weui-panel weui-panel_access">
                  <view class="weui-panel__bd">
                    <block wx:for="{{item.dataList}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2">
                      <navigator url="../productDetail/productDetail?id={{item2.configId}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
                        <view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
                          <view wx:if="{{item2.imgCover===''}}" class="weui-media-box__gray">暂无图片</view>
                          <image wx:else class="weui-media-box__thumb" src="{{item2.imgCover}}" />
                          <view class='weui-media-box__hd__cover'>
                            <image src='../../../images/product/ico_loaction.png' class='weui-media-box__hd__cover_image'></image>
                            <text class='weui-media-box__hd__cover_text'>{{item2.startCityName===null?'':item2.startCityName+'出发'}} {{item2.dayNum}}天</text>
                          </view>
                        </view>
                        <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
                          <view class="weui-media-box__title">{{item2.title}}</view>
                          <view class="weui-media-box__date">
                            <image class='weui-media-box__date__image' src='../../../images/product/ico_date.png'></image>
                            <text class='weui-media-box__date__text'>团期: {{item2.startDate}}</text>
                          </view>
                          <view class="weui-media-box__desc" wx:if="{{isMember===1}}">
                            <text class="weui-media-box__desc__up">{{item2.b2BMemberPrice}}</text>
                            <text class="weui-media-box__desc__down">¥{{item2.b2CMemberPrice}}</text>
                          </view>
                          <view class="weui-media-box__desc" wx:else>
                            <text class="weui-media-box__desc__up">{{item2.b2BPrice}}</text>
                            <text class="weui-media-box__desc__down">¥{{item2.b2CPrice}}</text>
                          </view>
                        </view>
                      </navigator>
                    </block>
                  </view>
                </view>

                <view class='body_footer'>{{item.moreState===true?'上拉获取更多数据':'没有更多了...'}}</view>

              </view>
            </scroll-view>
          </swiper-item>
        </block>
      </swiper>
    </view>
  </view>
</view>