From f268aecd3be74ac91a956469f710eec4e979a32c Mon Sep 17 00:00:00 2001 From: qushutong <1976590620@qq.com> Date: Wed, 25 Sep 2019 16:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=80=9A=E8=BF=87=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=B0=83=E7=9F=AD=E4=BF=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/user/user-add-or-update.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue index e796b139..67d8561f 100644 --- a/src/views/modules/user/user-add-or-update.vue +++ b/src/views/modules/user/user-add-or-update.vue @@ -180,6 +180,8 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg) } + // 审核通过之后触发发短信 + this.registerResult(this.dataForm.id, this.dataForm.pass) this.$message({ message: this.$t('prompt.success'), type: 'success', @@ -191,7 +193,14 @@ export default { }) }).catch(() => { }) }) - }, 1000, { 'leading': true, 'trailing': false }) + }, 1000, { 'leading': true, 'trailing': false }), + registerResult (userId, state) { + this.$http.get(`api/message/sms/registerResult?userId=` + userId + '&state=' + state).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + }).catch(() => { }) + } } }