66 lines
1.3 KiB
JavaScript
66 lines
1.3 KiB
JavaScript
import http from '../utils/http'
|
|
|
|
|
|
/**
|
|
* 登录
|
|
* @author Seven
|
|
* @data 2025-1-6
|
|
* @returns { }
|
|
* @see https://mall.gpxscs.cn/mobile/account/login/doLogin
|
|
*/
|
|
|
|
export function GetLogin(params){
|
|
return new Promise((resolve, reject) => {
|
|
params.isFilter = true;
|
|
http({
|
|
url:'/account/login/doLogin',
|
|
method:'get',
|
|
params,
|
|
baseURL:process.env.VUE_APP_BACK_BASE_API
|
|
}).then(res=>{
|
|
resolve(res)
|
|
}).catch(e => reject(console.warn(e)))
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取验证码
|
|
* @author Seven
|
|
* @data 2025-1-6
|
|
* @returns { }
|
|
* @see https://mall.gpxscs.cn/mobile/account/user/verifyCode
|
|
*/
|
|
|
|
export function GetSmsCode(params){
|
|
return new Promise((resolve, reject) => {
|
|
params.isFilter = true;
|
|
http({
|
|
url:'/account/user/verifyCode',
|
|
method:'get',
|
|
params,
|
|
}).then(res=>{
|
|
resolve(res)
|
|
}).catch(e => reject(console.warn(e)))
|
|
})
|
|
}
|
|
|
|
|
|
/**
|
|
* 验证码登录
|
|
* @author Seven
|
|
* @data 2025-1-6
|
|
* @returns { }
|
|
* @see https://mall.gpxscs.cn/mobile/account/login/doSmsLogin
|
|
*/
|
|
|
|
export function GetSmsLogin(params){
|
|
return new Promise((resolve, reject) => {
|
|
http({
|
|
url:'/account/login/doSmsLogin',
|
|
method:'get',
|
|
params,
|
|
}).then(res=>{
|
|
resolve(res)
|
|
}).catch(e => reject(console.warn(e)))
|
|
})
|
|
} |