<!--pages/myCertificate/myCertificate.wxml-->
<custom-navi text="证书申领" back="{{true}}" home="{{true}}"></custom-navi>
<view class='myCertificate'>
  <view style='font-size:12px;color:#666;float:right;padding-right:15px;'>
    
  </view>
  <view class="certificateItem" wx:for="{{certificateList}}">
    <image src='{{item.front_image}}'></image>
    <view class="getRow">
      <text>{{item.title}}</text>
      <van-button type="info" size='mini' bindtap="applyCertificate" data-index='{{item.id}}'>申领</van-button>
    </view>
  </view>
</view>

<!--添加底部弹出对话框开始-->
<view class='bot_myCertificate' wx:if="{{inpShow==true}}">
  <view class='con_bot_myCertificate'>
  <view class='top_myCertificate' style='justify-content: center;border-bottom:none'>请填写详细信息</view>
    <view>
      <text>收件人</text>
      <input placeholder='请输入姓名' value='{{name}}' bindinput='changeName'></input>
    </view>
    <view>
      <text>手机号</text>
      <input placeholder='请输入手机号' value='{{mobile}}' bindinput='changeMobile'></input>
    </view>
    <view>
      <text>详细地址</text>
      <input placeholder='请输入收件地址' value='{{address}}' bindinput='changeAddress'></input>
    </view>
    <view class='btnBot'>
      <view bindtap='backApplyCertificate' style='background:#979797;'>取消</view>
      <view style='background:#ed4848;' bindtap='sureApplyCertificate'>确定</view>
    </view>
  </view>
</view>
<!--添加底部弹出对话框结束-->
<van-notify id="van-notify" />