1.编辑获取验证码模块
    <Form ref="phoneFormItem" :model="phoneFormItem" :label-width="100" :rules="ruleValidate3" label-position="left" style="margin-left: 60px;" v-show="comfort">
<FormItem label="新手机号码" prop="phone">
<Input v-model="phoneFormItem.phone" placeholder="请输入登录密码" style="width: 200px;"></Input>
</FormItem>
<FormItem label="图形验证码" prop="imgCode">
<Input v-model="phoneFormItem.imgCode" placeholder="请输入登录密码" style="width: 200px;"></Input> <div class="divIdentifyingCode" @click="getIdentifyingCode(true)">
<img id="imgIdentifyingCode" style="height:33px; width: 100px; cursor: pointer;" alt="点击更换" title="点击更换" />
</div>
</FormItem>
<FormItem label="手机验证码" prop="code">
<Input v-model="phoneFormItem.code" placeholder="请输入登录密码" style="width: 200px;"></Input>
<span class="phoneCode" v-show="show" @click="getCode" style="cursor: pointer;">获取验证码</span>
<span class="phoneCode" v-show="!show">{{count}} s</span>
</FormItem>
</Form>
 
 
2.在data return添加默认值
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASkAAACmCAYAAACGCHk7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA9nSURBVHhe7Z0/a9zIG4B/n2S7aw63yRWBI3BVIGA4SJXDGHIQSHlVIMWBtwlHmpQhCS5cpLnGrtKfCbhIqq1CPkQ+Qea3I2mkd0bvK2ltazW7eoqHWHrn3y7Mk3dkzfh/i8XCdXH//n31/jaYa9/b4tmbR63rFBm36CuXtinRykvSMmn9NC7LafcDfXHIByRlkJWkDn91z/65437WYmvuPn/kjv78SY11ISeqNmnTeIpWbihD66Tl+q777geG9g/Tg6QM8pHUT+63fx653w+12Jpf7rijN7+6u1qsAzlJw8/aPYu0rIYsnzIknhLup+Xktbzfh1YP8gNJGWQjKS+hjizq5z8f3DiLSu8PmcChjFY2vRfaHIKsF+pucg37B5IyyEVS3Uu5A/f7mwfut1+0mI0Ugpzk1s8aVhvatcaQMp6+toe2A7sLkjLIQlI9SzmfRT17f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one != '' ){ // 1.首先判断是否未输入手机号码就点击获取验证码
if(/^1[34578]\d{9}$/.test(this.phoneFormItem.phone)){ //2.使用正则判断手机输入的验证码是否符合规范
const TIME_COUNT = 60; // 3.设置时间为60s
if (!this.timer) {
this.count = TIME_COUNT;
this.show = false; // 4.隐藏获取验证码按钮,展示倒计时模块
this.getPhoneCode() // 5.调用后端获取验证码接口的函数
this.timer = setInterval(() => {
if (this.count > 0 && this.count <= TIME_COUNT) { // 6.设置每秒钟递减
this.count--;
} else { // 7.递减至0时,显示获取验证码按钮,隐藏倒计时模块,清除定时器this.timer,并将其置为null
this.show = true;
clearInterval(this.timer);
this.timer = null;
}
}, 1000)}
} else {
this.$Message.error('手机号格式不正确!');
}
} else {
this.$Message.error('请先填写手机号码!');
}
},
getPhoneCode(){
let phoneParam ={
phone:this.phoneFormItem.phone,
type:0
}
this.$api.SendPhoneCode(phoneParam).then(res =>{
if (res.code == 200) { }
})
},
 5.获取图形验证码

 6.效果图

vue 项目,获取手机验证码和图形验证码(iviewUI框架)的更多相关文章

  1. Web项目中手机注册短信验证码实现的全流程及代码

    最近在做只能净化器的后台用户管理系统,需要使用手机号进行注册,找了许久才大致了解了手机验证码实现流程,今天在此和大家分享一下. 我们使用的是榛子云短信平台, 官网地址:http://smsow.zhe ...

  2. 一百一十九:CMS系统之将短信验证码和图形验证码放到memcached缓存中

    将两个验证码的视图都放到common蓝图下 from flask import Blueprint, request, make_responsefrom exts import alidayufro ...

  3. vue项目获取当前地址栏参数(非路由传参)

    项目中遇到一个需求,就是另一个管理系统带参直接单纯的跳转跳转到vue pc项目中的某个页面,后再初始化查询数据,参数以地址栏的形式传入 管理系统:打开新地址地址 let obj = { id: 21, ...

  4. vue项目获取地址栏参数(非路由传参)

    在项目中,遇到一个需求,就是另一个系统直接跳转到我们项目中的某个页面,不需要做用户的校验直接单纯的跳转新页面,再初始化查询数据,参数以地址栏的形式传入 由于原来项目做过权限控制,所以在路由那边需要进行 ...

  5. <自动化测试>之<自动获取手机短信验证码>

    第一次写博,最近解决了做自动化测试短信验证码自动获取填入的方法减少了脚本的人工干预,并非拦截短信,所以不存在安全警报提醒,拿出来分享给大家,有感兴趣的大家可以加Q1856100 目前在职测试开发,,写 ...

  6. Tornado框架实现图形验证码功能

    图形验证码是项目开发过程中经常遇到的一个功能,在很多语言中都有对应的不同形式的图形验证码功能的封装,python 中同样也有类似的封装操作,通过绘制生成一个指定的图形数据,让前端HTML页面通过链接获 ...

  7. vue项目经验:图形验证码接口get请求处理

    一般图形验证码处理: 直接把img标签的src指向这个接口,然后在img上绑定点击事件,点击的时候更改src的地址(在原来的接口地址后面加上随机数即可,避免缓存) <img :src=" ...

  8. 【无私分享:ASP.NET CORE 项目实战(第十四章)】图形验证码的实现

    目录索引 [无私分享:ASP.NET CORE 项目实战]目录索引 简介 很长时间没有来更新博客了,一是,最近有些忙,二是,Core也是一直在摸索中,其实已经完成了一个框架了,并且正在准备在生产环境中 ...

  9. python 自动获取手机短信验证码

    需要一个有权限的 APK 在手机实时存储短信到手机内存 /sdcard/smslog.txt 里(外部SD卡也可以知道能通过adb命令访问到): /***** ...... try {long tim ...

随机推荐

  1. paste 合并文件

    1.命令功能 paste  用于合并文件的列,把每个文件以列对列的方式,一列列地加以合并. 2.语法格式 paste  option  file 参数选项 参数 参数说明 -d 指定间隔符合并文件(默 ...

  2. Linux wc -l 统计行数问题

    统计文件行数   通过wc -l 来实现. [root@xguang_02 xguang]# wc -l tt.dat     798 tt.dat    而通过nl\ cat -n 查看时发现为79 ...

  3. 37行代码构建无状态组件通信工具-让恼人的Vuex和Redux滚蛋吧!

    状态管理的现状 很多前端开发者认为,Vuex和Redux是用来解决组件间状态通信问题的,所以大部分人仅仅是用于达到状态共享的目的.但是通常Redux是用于解决工程性问题的,用于分离业务与视图,让结构更 ...

  4. Java第二阶段笔记

    抽象类不能创建对象 抽象类可以有构造方法成员变量成员方法静态方法final修饰的方法(只能被子类调用,不能被重写)抽象方法(可以有0个或多个) 抽象方法不能有方法体,只能以:结尾,只能存在于抽象方法中 ...

  5. Python随笔——Map之键对应多值的处理

    在使用 Python 处理时,因为某些原因,可能遇到 Map 的键对应多个值的处理. 很常见的比如:查询某表的结果,对应了多条记录. 此时使用Python进行算法处理时,其中一种方式如下: 定义一个 ...

  6. Atcoder2134 Zigzag MST

    问题描述 We have a graph with N vertices, numbered 0 through N−1. Edges are yet to be added. We will pro ...

  7. URLEncode解决url中有特殊字符的问题

      问题:图片上传后的url地址中有&等特殊字符,页面传到后端时被自动处理成了&   解决:前端对url进行URLEncode,后端收到后进行URLDecode   总结:需要在请求u ...

  8. Task8.循环和递归神经网络

    RNN提出的背景: RNN通过每层之间节点的连接结构来记忆之前的信息,并利用这些信息来影响后面节点的输出.RNN可充分挖掘序列数据中的时序信息以及语义信息,这种在处理时序数据时比全连接神经网络和CNN ...

  9. DELPHI FMX 同时使用LONGTAP和TAP

    在应用到管理图标时,如长按显示删除标志,单击取消删除标志.在FMX的手势管理中,只有长按LONGTAP,点击TAP则是单独的事件,不能在同事件中管理.在执行LONGTAP后,TAP也会被触发​,解决方 ...

  10. 黑苹果 MacOS 10.15 Catalina安装教程

    10.15 Catalina 桌面 一.准备工作 一个8G以上的U盘(有的U盘标的是8G,实际只有7.X,实际容量小于7.5G的会失败) MacOS镜像.TransMac(刻录工具).DiskGeni ...