<!--components/send-code/send-code.wxml-->
<view class="container">
  <view class="header">
    <view class="title">请输入短信验证码：</view>
    <view class="phone">已发送验证码至{{phone}}</view>
  </view>
  <view class="content">
    <view class="nums">
      <view wx:for='{{6}}' wx:key='index' class="nums-content" data-value="{{code[index]}}" bindtap="showFlash">
        <text>{{code[index]}}</text>
        <view class="flash" wx:if='{{!up}}' hidden="{{index !== code.length}}"></view>
      </view>
    </view>
    <view class="bar">
      <view wx:for='{{6}}' wx:key='index'></view>
    </view>
  </view>
  <view class="count {{time===60?'time':''}}" bindtap="send">{{countdown}}</view>
  <view class="keyboard {{up||'up'}}">
    <block wx:for='{{keybord}}' wx:key='index' wx:for-index='key'>
      <view class="board" wx:for='{{item}}' wx:key='index' wx:if='{{key<3}}' data-value='{{item}}' bindtap='keyboard'>{{item}}</view>
      <block wx:if='{{key === 3}}'>
        <view class="board del" bindtap="cancel">取消</view>
        <view class="board" wx:for='{{keybord[3]}}' wx:key='index' data-value='{{item}}' bindtap="keyboard">{{item}}</view>
        <view class="board del" bindtap="del">
          <image src="/images/happyjob/keyboard_del.png"></image>
        </view>
      </block>
    </block>

  </view>
</view>