register.js 555 B

123456789101112131415161718
  1. import axios from '../utils/axios';
  2. import { stringToUrl } from '@/common/js/utils';
  3. // 发送验证码
  4. export function sentRegisterCode(params) {
  5. return axios.post(`/SZWL-SERVER/tMessageCode/sentRegisterCode?${stringToUrl(params)}`, params);
  6. }
  7. // 注册
  8. export function tAdminSave(params) {
  9. return axios.post(`/SZWL-SERVER/tAdmin/save`, params);
  10. }
  11. // 获取最后一次发送验证码的时间
  12. export function getLastSendTime(params) {
  13. return axios.get(`/SZWL-SERVER/tMessageCode/getLastSendTime?phoneOrEmail=${params.phoneOrEmail}`, params);
  14. }