dcc
2024-06-07 4a31519bd6d5db765556664042fdc0a5dcc63cf0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import Axios from "@/utils/http";
//登录
function login(data) {
  return Axios.fetch("wap/api/user!login.action", data);
}
//获取邮箱或手机号的验证码
function getVeriCode(data) {
  return Axios.fetch("wap/api/idcode/execute", data);
}
 
//根据用户名和类型获取它的验证方式,用于重置密码界面,
function forgotVericode(data) {
  return Axios.fetch("wap/api/user/getUserNameVerifTarget", data);
}
//通过邮箱或手机号,或谷歌重置密码
function fixResgister(data) {
  return Axios.postFormData("wap/api/user/resetPsw", data);
}
//退出登录
function loginOut() {
  return Axios.fetch("wap/api/user!logout.action");
}
//用账户名注册时,获取接口返回的base64图片
function imageVerifica() {
  return Axios.fetch("wap/api/user/getImageCode");
}
 
//账号名注册
function accountRegister(data) {
  return Axios.fetch("wap/api/user/registerUsername", data);
}
 
//手机号或邮箱注册
function resgister(data) {
  return Axios.fetch("wap/api/user/register", data);
}
 
///通过谷歌验证器重置密码
function resetpswByGoogle(data) {
  return Axios.fetch("wap/api/user!resetpswByGoogle.action", data);
}
 
//判断是否读取三方客服
function getServiceUrl(data) {
  return Axios.fetch("wap/api/syspara!getSyspara.action", data);
}
 
export default {
  login,
  getVeriCode,
  resgister,
  forgotVericode,
  fixResgister,
  loginOut,
  imageVerifica,
  accountRegister,
  resetpswByGoogle,
  getServiceUrl,
};