<!--pages/member/course/CourseSearch/CourseSearch.wxml-->
<view class="">
  <view class="search">
    <view class="searchBox">
      <input type="text" placeholder="搜索你想要的" bindinput="bindKeyInput" />
      <icon class="iconfont icon-sousuo" catchtap="_getData"></icon>
      <!-- <view class="img-icon" catchtap="_getData">
        <view class="img-icon-btn"></view>
      </view> -->
    </view>
  </view>
  <view class="screen">
    <view class="tap_screen" catchtap="getDataBth">
      <view class="{{!navStatus?'icon_color':''}}">全部</view>
    </view>
    <view class="tap_screen" catchtap="getDataBth" data-type="sales">
      <view>销量</view>
      <view class="iconfff" style="margin-top: -25rpx;margin-left:11rpx">
        <!-- <icon class="fa fa-angle-up {{navStatus=='sales_asc'?'icon_color':''}}"></icon>
        <icon class="fa fa-angle-down {{navStatus=='sales_desc'?'icon_color':''}}" style="margin-top: -30rpx;"></icon>   -->
        <van-icon name='arrow-up' color="{{navStatus=='sales_asc'?'#ff8c20':''}}" style="height: 20rpx;" size="10px"></van-icon>
        <van-icon name='arrow-down' color="{{navStatus=='sales_desc'?'#ff8c20':''}}" style="height: 20rpx;margin-bottom: -4px" size="10px"></van-icon>
      </view>
    </view>
    <view class="tap_screen" catchtap="getDataBth" data-type="price">
      <view>价格</view>
      <view class="iconfff" style="margin-top: -25rpx;margin-left:11rpx">
        <!-- <icon class="fa fa-angle-up {{navStatus=='price_asc'?'icon_color':''}}"></icon>
        <icon class="fa fa-angle-down {{navStatus=='price_desc'?'icon_color':''}}" style="margin-top: -30rpx;"></icon>   -->
        <van-icon name='arrow-up' color="{{navStatus=='price_asc'?'#ff8c20':''}}" style="height: 20rpx;" size="10px"></van-icon>
        <van-icon name='arrow-down' color="{{navStatus=='price_desc'?'#ff8c20':''}}" style="height: 20rpx;margin-bottom: -4px" size="10px"></van-icon>
      </view>
    </view>
  </view>
  <view class="quanBox">
      <block wx:for="{{goodsList}}" wx:key="{{item.goods_id}}">
        <view class="quanlist" catchtap='toCourse' data-id="{{item.goods_id}}">
          <view class="quan_left">
            <image src="{{item.thumb}}"></image>
          </view>
          <view class="quan_right">
            <view>
              <view class="video_title">{{item.title}}</view>
              <view class="pitch_number">共{{ item.course_chapter_num }}小节</view>
            </view>
            <view class="quan_bottom">
                <view class="master_name" wx:if="{{item.has_one_lecturer}}">讲师：{{ item.has_one_lecturer.real_name }}</view>
                <view class="price" wx:if="{{item.vip_level_status && item.vip_level_status.status == 1}}">
                  {{language['money']}} <view class="cost2">{{ item.vip_level_status.word }}</view>
                </view>
                <view class="price" wx:else>
                  {{language['money']}} {{ item.price == '0.00'?'免费':item.price }}
                </view>
            </view>
          </view>
        </view>
      </block>
    </view>
  <!-- <block wx:for="{{goodsList}}" wx:key="{{item.goods_id}}">
    <view class="course" data-id="{{item.goods_id}}" catchtap='toCourse'>
      <view class="course-content">
        <view class="course-img">
          <image src="{{item.thumb}}"></image>
        </view>
        <view class="course-text">
          <view class="name">课程名称：{{item.title}}</view>
          <view class="time">共{{ item.course_chapter_num }}小节</view>
          <view>
            <view class="time" style="float:left;">讲师：{{ item.has_one_lecturer.real_name }}</view>
            <view class="money">{{language['money']}}
              <text wx:if="{{item.vip_level_status && item.vip_level_status.status == 1}}" class="s1">{{item.vip_level_status.word}}</text>
              <text class="s2" wx:else>{{item.price}}</text>
            </view>
          </view>
        </view>
        <view style="clear:both"></view>

      </view>
    </view>
  </block> -->
</view>
<shopfoot></shopfoot>
