<view>
  <view class="weui-search-bar weui-search-bar_focusing" id="searchBar" style="line-height: 1;background-color: #fff;">
    <form class="weui-search-bar__form flex-1">
      <view class="weui-search-bar__box" catchtap="goSearch" style="background-color: #f5f5f5;border-radius: 17px;">
        <i class="iconfont icon-sousuo11"></i>
        <!-- <input type="text" class="weui-search-bar__input" placeholder-style="color:#999;" placeholder="搜索姓名、手机号" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" bindconfirm="searchKey" confirm-type="search" style="width: 200px;" />
        <view class="iconfont icon-qingchu1" wx:if="{{inputVal.length > 0}}" bindtap="clearInput"></view>
        <view class="search" bindtap="searchKey">搜索</view>-->
        <view class="weui-search-bar__input {{!chaShowed ? 'c9' : 'c3'}}" style="width: 160px;">{{inputVal}}</view>
        <view class="iconfont icon-qingchu1" wx:if="{{chaShowed}}" catchtap="clearInput"></view>
        <view class="search" catchtap="searchKey">搜索</view>
      </view>
    </form>
  </view>
</view>

<scroll-view class="container" style="height:calc(100vh - {{navigatorHeight + 6}}px);">
  <view class="topMenu">
    <view class="onMune {{currIndex == '1' ? 'active' : ''}}" data-id="{{1}}" bindtap="changeMenu">
      <view class="pr dib">
        已发布
        <view class="menuBorder"></view>
      </view>
    </view>
    <view class="onMune {{currIndex == '0' ? 'active' : ''}}" data-id="{{0}}" bindtap="changeMenu">
      <view class="pr dib">
        审核中
        <view class="menuBorder"></view>
      </view>
    </view>
    <view class="onMune {{currIndex == '2' ? 'active' : ''}}" data-id="{{2}}" bindtap="changeMenu">
      <view class="pr dib">
        审核失败
        <view class="menuBorder"></view>
      </view>
    </view>
  </view>
  <scroll-view class="main" scroll-y="{{true}}" enable-back-to-top="true" refresher-enabled style="height:calc(100% - 114px)" bindrefresherrefresh="onScrollRefresh" bindscrolltolower="onScrollToLower" refresher-triggered="{{isTrigger}}">
    <view class="mainlist">
      <view wx:for="{{billList}}" wx:key="index" class="subset por" hover-class="hcb" hover-stop-propagation="false" mark:id="{{item.id}}" mark:index="{{index}}" data-item="{{item}}" bindtap="showDrawer">
        <view class="userinfo">
          <view class="lNum" style>{{index < 9?'0'+(index+1):index+1 }}</view>
          <view class="user">
            <view class="username">{{item.jobName}}</view>
            <!-- <view class="clb"></view> -->
            <view class="usertype f16 mt4">{{item.sex}}，{{item.minAge + '-' + item.maxAge + '岁' }}，{{item.salaryClassifyValueHaibao}}</view>
            <view class="mt4" hover-class="none" hover-stop-propagation="false">{{item.fuWuFei}}</view>
            <view class="fss mt4" wx:if="{{item.rejectReason}}" hover-class="none" hover-stop-propagation="false">
              <i class="iconfont icon-tishi ysd-base-color mr4"></i>
              <view class="c9" hover-class="none" hover-stop-propagation="false">{{item.rejectReason}}</view>
            </view>
          </view>
        </view>
        <view class="date tr">
          <view class="link biggerSize" catchtap="goEdit" data-item="{{item}}" wx:if="{{currIndex != 0}}" hover-class="none" hover-stop-propagation="false">编辑</view>
          <!-- {{item.updateTimeStr}}{{activeTab == 5 ? '维护' : ''}}
          <view class="mt8 c3">{{item.statusText}}</view>-->
        </view>
      </view>
      <block wx:if="{{(billList == null || billList.length == 0) && !isLoading}}">
        <view style="margin-top:128rpx;">
          <view class="center">
            <icon class="t-icon cccc t-icon-zanwu" style="width:86px;height:86px;margin-bottom:20px;margin-top:30px"></icon>
            <view class="f16 cccc">暂无职位</view>
          </view>
        </view>
      </block>
    </view>
    <view class wx:if="{{billList.length != 0}}" hover-class="none" hover-stop-propagation="false">
      <view wx:if="{{!hasMoreData && !isLoading }}" class="f12 c9 tc p20">暂无更多数据</view>
      <view wx:else class="f12 c9 tc p20">上滑加载更多</view>
    </view>
  </scroll-view>
  <view class="bottomBox" hover-class="none" hover-stop-propagation="false">
    <button class="normalBtn loginOut" bindtap="addJob" hover-class="thover">新增职位</button>
  </view>
</scroll-view>
<bottom-drawer show="{{drawerShow}}" drawerType="drawerShow" bindhidedrawer="hidedrawershow" class="bottomDrawer" height="calc(100vh - {{statusBarHeight + ((navigationBarHeight - menuButtonHeight) / 2)  + 41}}px)" hideTabbar="{{false}}">
  <view class="fss bb1" style="padding:6px 16px;min-height:54px" slot="title">
    <view class hover-class="none" style hover-stop-propagation="false">
      <span class="f18 fw500">{{currentJobDrawer.jobName}}</span>
      <view class="flex-1">
        <view class="jobText f14">服务费：{{currentJobDrawer.fuWuFei}}</view>
      </view>
    </view>
    <!-- <view style="min-width:50px;" class="pr10 ml16 fsa" hover-class="thover" bindtap="sharePoster">
      <icon class="iconfont icon-zhuanfa1 f16" style="color:#787878"></icon>
      <view class="btext" style="margin-top:4px;">分享</view>
    </view>-->
  </view>
  <view class hover-class="none" hover-stop-propagation="false">
    <view class="fsa poa" style="width:50px;right:12px;top:72px" catchtap="copyClose" hover-class="thover">
      <view class="iconfont icon-fuzhi c9 f16 mr4"></view>
      <view class="f14">复制</view>
    </view>
    <scroll-view class="mt12 p16 linefeed despBox" scroll-y="{{true}}" hover-class="none" hover-stop-propagation="false">{{currentJobDrawer.jobDesp}}</scroll-view>
    
  </view>
</bottom-drawer>
