<view class='page'>
  <view class='page__bd'>
    <view class='header'>
      <view class='header_check'>
        <view class='header_check_in' hover-class="none">
          <input class='header_check_in_text' value="{{inputValue}}" placeholder="目的地、旅游路线" placeholder-style="color: #FFFFFF;" adjust-position="{{false}}" confirm-type="search" bindinput="bindKeyInput" bindconfirm="bingCheckInput"></input>
          <image class='header_check_in_image' src='../../../images/product/product_ico_search.png'></image>
        </view>
      </view>
    </view>
    <view class='scroll_body'>
      <view hidden='{{pageState!==1}}' class='check_normal'>
        <view class='normal_block'>
          <view class='normal_title'>
            <image class='normal_title_image' src='../../../images/product/ico-hot.png'></image>
            <text class='normal_title_text'>热门搜索</text>
          </view>
          <view class='normal_list'>
            <block wx:for="{{hotList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
              <view class='normal_list_item' data-name='{{item}}' bindtap="btnCheck">{{item}}</view>
            </block>
          </view>
        </view>
        <view class='normal_block'>
          <view class='normal_title'>
            <image class='normal_title_image' src='../../../images/product/ico_history.png'></image>
            <text class='normal_title_text'>历史搜索</text>
            <view class='normal_title_del' bindtap="historyDel">
              <image class='normal_title_del_image' src='../../../images/product/ico_clear.png'></image>
              <text class='normal_title_del_text'>清空</text>
            </view>
          </view>
          <view class='normal_list'>
            <block wx:for="{{storageList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
              <view class='normal_list_item' data-name='{{item}}' bindtap="btnCheck">{{item}}</view>
            </block>
          </view>
        </view>
      </view>
      <view hidden='{{pageState!==2}}' class='check_list'>
        <view class="weui-panel weui-panel_access">
          <view class="weui-panel__bd">
            <block wx:for="{{itemList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
              <navigator url="../productDetail/productDetail?id={{item.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="{{item.imgCover===''}}" class="weui-media-box__gray">暂无图片</view>
                  <image wx:else class="weui-media-box__thumb" src="{{item.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'>{{item.startCityName===null?'':item.startCityName+'出发'}} {{item.dayNum}}天</text>
                  </view>
                </view>
                <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
                  <view class="weui-media-box__title">{{item.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'>团期: {{item.startDate}}</text>
                  </view>
                  <view class="weui-media-box__date weui-media-box__date2">
                    <text class='weui-media-box__date__text'>航班: {{item.alName}}(余位：{{item.surplus}})</text>
                  </view>
                  <view >
                  <!-- wx:if="{{isMember===1}}" -->
                    <view class="weui-media-box__desc" wx:if="{{account=== ''}}">
                      统一售价：<text class="weui-media-box__desc__up">{{item.b2BPrice}}</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">{{item.b2CPrice}}</text>
                      <!-- <text class="weui-media-box__desc__up">{{account=== "" ? item2.b2CPrice : item2.b2BPrice}}</text>
                      <text class="weui-media-box__desc__down">¥{{item2.b2CPrice}}</text> -->
                    </view>
                    <!-- <view class="weui-media-box__desc" wx:else>
                      <text class="weui-media-box__desc__up">{{account=== "" ? item2.b2CPrice : item2.b2BPrice}}</text>
                      <text class="weui-media-box__desc__down">¥{{item2.b2CPrice}}</text>
                    </view> -->
                  </view>
                  <!-- <view class="weui-media-box__desc" wx:if="{{isMember===1}}">
                    <text class="weui-media-box__desc__up">{{item.b2BMemberPrice}}</text>
                    <text class="weui-media-box__desc__down">¥{{item.b2CMemberPrice}}</text>
                  </view>
                  <view class="weui-media-box__desc" wx:else>
                    <text class="weui-media-box__desc__up">{{account=== "" ? item.b2CPrice : item.b2BPrice}}</text>
                    <text class="weui-media-box__desc__down">¥{{item.b2CPrice}}</text>
                  </view> -->
                </view>
              </navigator>
            </block>
            <view class='list_footer'>{{showMore===true?"上拉获取更多数据":"没有更多了..."}}</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>