Merge branch 'dev-wangyiming'
This commit is contained in:
commit
3ece6533d9
|
|
@ -4,7 +4,7 @@ import { get, post } from '../../index'
|
|||
|
||||
// 获取验证码
|
||||
export const getCodeInfoApi = (phone) => {
|
||||
return post(`/zlpt-system/sms/send?phone=${phone}&type=2`, {})
|
||||
return post(`/zlpt-system/sms/send?phone=${phone}&type=1`, {})
|
||||
}
|
||||
// 立即注册按钮
|
||||
export const registerNowApi = (data) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { getCodeInfoApi, registerNowApi } from 'http/api/register/index'
|
||||
import { getCodeInfoApi, registerNowApi } from '@/http/api/register/index'
|
||||
import { ElMessage } from 'element-plus'
|
||||
const router = useRouter()
|
||||
// const userStore = useStore()
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
if (res.code === 200) {
|
||||
ElMessage({
|
||||
showClose: true,
|
||||
message: res.msg,
|
||||
message: '验证码发送成功',
|
||||
type: 'success'
|
||||
})
|
||||
reduceSeconds()
|
||||
|
|
|
|||
Loading…
Reference in New Issue