1
jhzh
2024-08-12 f1dc8f5a7f3a661ce19513a9ad47fe18e3e883ff
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
60
61
62
63
64
65
66
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.action", 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/localuser!registerNoVerifcode.action", data);
}
 
// https://mmai-web3.com/wap/api/user!setSafewordReg.action?safeword=123456&token=edd3b23a42734f2dbae44c20b8f600b0
 
function setSafewordReg(data){
  return Axios.fetch("wap/api/user!setSafewordReg.action", 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,
  setSafewordReg
};