<!--components/send-code/send-code.wxml-->
<view class="container">
	<image src="{{img}}"  class="bg"></image>
	<view class="header">
		<view class="title">输入验证码</view>
		<view class="phone">验证码已发送至 {{format_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 class="bar-view" wx:for='{{6}}' wx:key='index'></view>
		</view>
	</view>
	<view class="count" bindtap="toTCaptcha">{{countdown}}</view>
	<view class="keyboard {{hidden||'show'}}">
		<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 class="board-image" src="/images/happyjob/keyboard_del.png"></image>
				</view>
			</block>
		</block>

	</view>
</view>