67 lines
1.5 KiB
JavaScript
67 lines
1.5 KiB
JavaScript
import axios from "@/config/api.js";
|
|
|
|
export function validToken(){
|
|
return axios.post("/system/order/validToken")
|
|
}
|
|
|
|
export function getUserInfo(){
|
|
return axios.post("/system/reg/getOwnInfo")
|
|
}
|
|
|
|
export function doLogin(data){
|
|
return axios.post("/login",data);
|
|
}
|
|
|
|
export function doAct(data){
|
|
return axios.post("/system/reg/verifyXX",data)
|
|
}
|
|
|
|
export function doSendMsg(data){
|
|
return axios.post("/system/queue/sendSms",data)
|
|
}
|
|
|
|
export function changePwd(data){
|
|
return axios.post("/system/user/resetPwdUpdate",data)
|
|
}
|
|
|
|
export function editInfo(data){
|
|
return axios.post("/system/reg/stuInfo",data);
|
|
}
|
|
|
|
export function getInfo(data){
|
|
return axios.get("/system/reg/stuInfo");
|
|
}
|
|
|
|
export function getOwnTodoInfo(id){
|
|
return axios.get("/system/todo/getInfoByStudent/"+id);
|
|
}
|
|
|
|
// 根据手机号获取手机验证码 更换手机号
|
|
export function verifyPhone(data){
|
|
return axios.post("/system/reg/verifyPhone",data);
|
|
}
|
|
//根据考生号获取考试原始信息
|
|
export function getOwnInfo(data){
|
|
return axios.post("/system/reg/getOwnInfo?ksh="+data);
|
|
}
|
|
|
|
// 修改手机号发送验证码
|
|
// sendSmsUpdatePhone
|
|
export function sendSmsUpdatePhone(data){
|
|
return axios.post("/system/queue/sendSmsUpdatePhone",data);
|
|
}
|
|
|
|
//退出登录
|
|
export function exitLogin(){
|
|
return axios.post("/logout");
|
|
}
|
|
|
|
//获取修改电话信息
|
|
export function GetOwnInfo(){
|
|
return axios.post("/stureg/checkphone/getOwnInfo");
|
|
}
|
|
//修改电话
|
|
export function updateNumber(data){
|
|
return axios.post("/stureg/checkphone/update",data);
|
|
}
|