121 lines
2.7 KiB
TypeScript
121 lines
2.7 KiB
TypeScript
import { Request } from '@/utils/request'
|
|
import { number } from 'echarts/lib/export'
|
|
|
|
// 用户登录
|
|
export const getUserLogin =async (param:any) => {
|
|
return await Request({
|
|
url: `/api/user/Account/login?code=${param}`,
|
|
method: "POST"
|
|
})
|
|
}
|
|
//注册
|
|
|
|
// 用户登录信息
|
|
export const getUserInfo = () => {
|
|
return Request({
|
|
url: '/api/user/Account',
|
|
method: "GET"
|
|
})
|
|
}
|
|
// 切换学生
|
|
export const getChangeUserList = (param:any) => {
|
|
return Request({
|
|
url: `/api/user/Account/switchstudent?studentId=${param}`,
|
|
method: "GET"
|
|
})
|
|
}
|
|
|
|
//查询未绑定学生
|
|
export const getUnbindstudentinfo = (param:string) => {
|
|
return Request({
|
|
url: `/api/user/Student/unbindstudentinfo?telephone=${param}`,
|
|
method: "GET"
|
|
})
|
|
}
|
|
//获取绑定学生刘表
|
|
export const getbindstudentList = () => {
|
|
return Request({
|
|
url: `/api/user/Student/bindstudentlist`,
|
|
method: "GET"
|
|
})
|
|
}
|
|
|
|
//绑定学生 【511】跳电话尾号验证 【512】跳电话验证码验证
|
|
export const getSendbindstudent = (params) => {
|
|
return Request({
|
|
url: `/api/user/Student/bindstudent?StudentTelephone=${params.StudentTelephone}&VerifyName=${params.VerifyName}&VerifyLastTelephone=${params.VerifyLastTelephone}&VerifySMSId=${params.VerifySMSId}&VerifyCode=${params.VerifyCode}`,
|
|
method: "GET"
|
|
})
|
|
}
|
|
|
|
//发送电话验证码
|
|
export const getSendTelphoneCode = (telephone,type) => {
|
|
return Request({
|
|
url: `/api/user/Account/sms?mobile=${telephone}&smsType=${type}`,
|
|
method: "GET"
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
//动态令牌换取用户手机号
|
|
export const getUserPhone = (param:string) => {
|
|
return Request({
|
|
url: `/api/user/Account/getXcxMobileFlag?code=${param}`,
|
|
method: "POST"
|
|
})
|
|
}
|
|
|
|
//获取配置信息
|
|
export const getConfig = () => {
|
|
return Request({
|
|
url: `/api/user/Account/config`,
|
|
method: "GET"
|
|
})
|
|
}
|
|
|
|
//登录失败,注册绑定
|
|
export const postRegister = (data) => {
|
|
return Request({
|
|
url: `/api/user/Account/register`,
|
|
method: "POST",
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
//接触绑定账号
|
|
export const putUnBind = (data) => {
|
|
return Request({
|
|
url: `/api/user/Student/ubind`,
|
|
method: "PUT",
|
|
data
|
|
})
|
|
}
|
|
|
|
//获取测评客服信息
|
|
export const getSTudyReportInfo = () => {
|
|
return Request({
|
|
url: `/api/user/Student/getstudyreportinfo`,
|
|
method: "GET"
|
|
})
|
|
}
|
|
|
|
//获取查看学生信息
|
|
export const LookStudentInfo = (data)=>{
|
|
return Request({
|
|
url:`/api/user/Account/student?studentId=${data}`,
|
|
method:'GET'
|
|
})
|
|
}
|
|
|
|
//绑定家长手机号码
|
|
export const bindMobile = (data:string)=>{
|
|
return Request({
|
|
url:`/api/user/Account/bindMobile?code=${data}`,
|
|
method:'POST'
|
|
})
|
|
}
|
|
|