<!--pages/commonSick/commonSick.wxml-->
<nav navName="选择常见疾病"></nav>
<view class="page">
  <view class="searchbox">
    <input type="text" value="{{keyWord}}"  placeholder="请输入所患疾病名称" bindconfirm="goSearch" placeholder-class="searchIpt" bindinput="changeIpt" 	bindfocus="onfoucs" confirm-type="search">
    <keyboard-accessory >
      <cover-view class="keycontainer">
        <cover-view class="text">常见疾病:</cover-view>
        <cover-view class="cell"  bindtap="confirmBack" 	wx:for="{{commonList}}" wx:key="disease_class_id" data-id="{{item.disease_class_id}}" data-name="{{item.disease_class_name}}">{{item.disease_class_name}}</cover-view>
      </cover-view>
    </keyboard-accessory>
    </input>
    <image src="{{img_host+'/greenss.png'}}" bindtap="handleSearch"></image>
  </view>
  <view class="listbox" wx:if="{{list.length>0}}">
    <view class="cell" wx:for="{{list}}" bindtap="confirmBack" wx:key="disease_class_id" data-id="{{item.disease_class_id}}" data-name="{{item.disease_class_name}}">{{item.disease_class_name}}</view>
  </view>
  <view class="nonedata" wx:elif="{{list.length==0 && isSearch}}">暂无数据！</view>

</view>