正在显示
1 个修改的文件
包含
10 行增加
和
6 行删除
| @@ -249,13 +249,17 @@ export default { | @@ -249,13 +249,17 @@ export default { | ||
| 249 | setTimeout(() => { | 249 | setTimeout(() => { |
| 250 | uni.hideLoading(); | 250 | uni.hideLoading(); |
| 251 | // 通知验证码组件内部开始倒计时 | 251 | // 通知验证码组件内部开始倒计时 |
| 252 | - this.$refs.uCode.start(); | ||
| 253 | 252 | ||
| 254 | - console.log(mobile); | ||
| 255 | - | ||
| 256 | - getSmsCodeApi({ | ||
| 257 | - phone: mobile, | ||
| 258 | - }); | 253 | + getSmsCodeApi({ phone: mobile, type: 'teacher_login' }).then(res => { |
| 254 | + console.warn(res) | ||
| 255 | + this.$refs.uCode.start(); | ||
| 256 | + }).catch(errors => { | ||
| 257 | + uni.showToast({ | ||
| 258 | + title: errors.data.msg, | ||
| 259 | + icon: "none", | ||
| 260 | + duration: 2500, | ||
| 261 | + }) | ||
| 262 | + }) | ||
| 259 | }, 1000); | 263 | }, 1000); |
| 260 | } else { | 264 | } else { |
| 261 | this.$u.toast("倒计时结束后再发送"); | 265 | this.$u.toast("倒计时结束后再发送"); |
请
注册
或
登录
后发表评论