40 lines
775 B
JavaScript
40 lines
775 B
JavaScript
import { http } from '@/utils/http'
|
|
|
|
/**
|
|
* 登录方法 - 调试使用 - 产线环境需注释
|
|
*/
|
|
export const appLoginAPI = (data) => {
|
|
// return false
|
|
return http({
|
|
method: 'POST',
|
|
url: '/auth/login',
|
|
data,
|
|
})
|
|
}
|
|
/**
|
|
* 获取用户信息
|
|
*/
|
|
export const getUserInfoAPI = () => {
|
|
return http({
|
|
method: 'GET',
|
|
url: '/system/user/getInfo',
|
|
})
|
|
}
|
|
|
|
// 通过二维码编码得到设备编码
|
|
export const getMaCodeByQrCodeApi = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: '/material/bm_qrcode_box/get_ma_info_by_qrcode',
|
|
data,
|
|
})
|
|
}
|
|
|
|
// iws登录接口
|
|
export const iwsLoginAPI = (data) => {
|
|
return http({
|
|
method: 'POST',
|
|
url: '/auth/iwsLogin',
|
|
data,
|
|
})
|
|
} |