<!--pages/course/searchCourses/searchCourses.wxml-->
<view class="flex-col page">
  <view class="flex-row items-center section">
    <image
      class="image"
      src="./images/sousuo.png"
    />
    <input class="text ml-3" placeholder="搜索更多好课" bindinput="onSearchInput" confirm-type="search" bindconfirm="onSearch"/>
  </view>
  <view class="flex-col list mt-17">
    <view bind:tap="gotoCourseDetail" data-id="{{item.id}}" class="flex-row relative list-item" wx:for="{{courseList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
      <view class="list-divider pos_3"></view>
      <image
        class="image_2 pos"
        src="{{globalImgUrl + item.image}}"
      />
      <view class="flex-col group_2 pos_2">
        <text class="font">{{item.name}}</text>
        <view class="flex-row justify-between items-baseline mt-17">
          <text class="font_2">券后{{item.discountPrice}}元起</text>
          <text class="font_3">{{item.orderCount}}人学习</text>
        </view>
      </view>
    </view>
  </view>
</view>