# 验证码弹窗组件 verificationCodeModal
验证码弹窗组件
# 示例代码
- 基本使用
 
wxml:
<via-verification-code-modal 
phone="150****1111"
id="via-verification-code-modal" 
bind:onRightInput="handleRightInput"
bind:onReFresh="handleRefresh"
/>
js:
  this.$codeModal = this.selectComponent('#via-verification-code-modal')
  this.$codeModal.show()
# 属性
| 属性 | 说明 | 类型 | 默认值 | 备注 | 
|---|---|---|---|---|
| time | 倒计时时长 | Number | 60 | 单位 s | 
| title | 标题 | String | 请填写手机短信验证码 | |
| phone | 手机号 | String | ||
| msglen | 验证码长度 | String | Number | 6 | 
# 外部样式类
| 类名 | 说明 | 备注 | 
|---|
# 插槽
| 名称 | 说明 | 备注 | 
|---|---|---|
| - | 内容自定义插槽 | - | 
# 事件
| 名称 | 说明 | 返回值 | 备注 | 
|---|---|---|---|
| onRightInput | 当输入正确位数验证码事件回调 | 输入的值 | |
| onReFresh | 刷新验证码事件 | '' | |
| onClose | 关闭弹窗事件 | '' |