index.js 479 B

1234567891011121314151617181920212223
  1. import {
  2. axios
  3. } from '@/utils/request.js'
  4. // 提交注册
  5. export function Api_setRegister(data) {
  6. return axios.post(`/api/user/register` , data)
  7. }
  8. // 发送邮箱验证码
  9. export function Api_getEmailCode(data) {
  10. return axios.post(`/api/sms_mail`, data)
  11. }
  12. // 发送手机验证码
  13. export function Api_getSmsSend(data) {
  14. return axios.post(`/api/sms_send`, data)
  15. }
  16. // 文章详情
  17. export function Api_getNewDetail(data) {
  18. return axios.post(`/api/news/detail` , data )
  19. }