<wxs src="../../../common.wxs" module="dateUtil" />
<form catchsubmit="beforeFormSubmit">
  <view class="mt10" style="padding-bottom: 120px;">
    <view class="weui-cells__group weui-cells__group_form mt10">
      <view class="weui-cells weui-cells_form">
        <view class="weui-cells searchbar-result" wx:if="{{searchListShow}}">
          <view class="weui-cell weui-cell_active weui-cell_access" wx:for="{{storeArray}}" wx:for-item="item" wx:for-index="idx" data-name="{{item.aliasName}}" data-id="{{item.id}}" bindtap="setValue">
            <view class="weui-cell__bd weui-cell_primary">
              <view>{{item.aliasName}}</view>
            </view>
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c6">报名岗位</label>
          </view>
          <view class="weui-cell__bd">
            <view class="fse" hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#333" bindtap="toJobAndAgencySelect" data-type="jobName">
              <view class="oelps {{jobName?'':'c9'}}" hover-class="none" hover-stop-propagation="false" style="max-width:190px">{{jobName || '请选择老乡岗位'}}</view>

              <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i>
            </view>
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c6">报名企业</label>
          </view>
          <view class="weui-cell__bd">
            <view class hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#333" data-type="job">
              <view class="c6" hover-class="none" hover-stop-propagation="false">
                {{storeName}}
                <!-- <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i> -->
              </view>
            </view>
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c6">报名时间</label>
          </view>
          <view class="weui-cell__bd tr">
            {{currentTime}}
            <!-- <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i> -->
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c3">
              政策
              <!-- <text class="cfred">*</text> -->
            </label>
          </view>
          <view class="weui-cell__bd">
            <picker class="tar" mode="selector" bindchange="policyChange" range="{{zhengceTextList}}" range-key="name" value="{{0}}">
              <view class="c3" hover-class="none" hover-stop-propagation="false" wx:if="{{policyStr !== ''}}">
                {{zhengceTextList[policyIdx - 1].name}}
                <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i>
              </view>
              <view class hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#ccc" wx:else>
                请选择政策
                <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i>
              </view>
            </picker>
            <!-- <view class hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#333" bindtap="showPolicy" data-type="job">
              <view class hover-class="none" hover-stop-propagation="false" wx:if="{{policyStr !== ''}}">
                政策{{dateUtil.changeNum(policyStr)}}
                <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i>
              </view>
              <view class hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#ccc" wx:else>
                请选择政策
                <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i>
              </view>
            </view>-->
          </view>
        </view>
      </view>
    </view>
  </view>
  <view class="btmFix display-flex" style="justify-content: center;">
    <button class="dtBtnD mr12" catchtap="shrink" data-edit="2">取消</button>
    <button type="primary" class="dtBtn ml12" loading="{{loading}}" hover-class="button-hover" formType="submit">确定</button>
  </view>
</form>
<bottom-drawer show="{{drawerShow}}" touchClose="{{false}}" drawerType="drawerShow" titleText="政策" bindhidedrawer="hidedrawershow" class="bottomDrawer" height="80vh">
  <view slot="title" class="tal bb1 fw500 pl12" style="height:54px;line-height:54px" hover-class="none" hover-stop-propagation="false">政策</view>
  <view class hover-class="none" hover-stop-propagation="false">
    <view class="weui-cells weui-cells_after-title screen-weui-cell">
      <radio-group bindchange="radioChange2">
        <block wx:for="{{policyList}}" wx:for-item="item" wx:for-index="idx" wx:key="{{item.value}}">
          <label class="weui-cell weui-check__label f14" style="display: block;">
            <view class="display-flex">
              <view class="weui-cell__hd" style="width: 20px;">
                <radio value="{{item.id}}" color="var(--color-ysd)" style="transform:scale(.6);position:relative;top:-1px;left:-6px" />
              </view>
              <view class="weui-cell__bd">政策{{dateUtil.changeNum(idx)}}</view>
            </view>
            <view class="zhengceDiv {{item.checked ? 'active' :''}}">{{item.policy}}</view>
          </label>
        </block>
      </radio-group>
    </view>
  </view>
</bottom-drawer>
