forgetPassword.js 458 B

123456789101112
  1. import axios from '../utils/axios'
  2. import { stringToUrl } from '@/common/js/utils';
  3. // 发送验证码
  4. export function sentForgetCode(params) {
  5. return axios.post(`/SZWL-SERVER/tMessageCode/sentForgetCode?${stringToUrl(params)}`, params);
  6. }
  7. // 注册
  8. export function checkForgetCode(params) {
  9. return axios.post(`/SZWL-SERVER/tMessageCode/checkForgetCode?ifForeign=${params.ifForeign}&phoneOrEmail=${params.phoneOrEmail}&code=${params.code}`, params);
  10. }