Browse Source

审核通过新增调短信接口

master
qushutong 6 years ago
parent
commit
f268aecd3b
  1. 11
      src/views/modules/user/user-add-or-update.vue

11
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(() => { })
}
}
}
</script>

Loading…
Cancel
Save