You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
2 years ago
|
import request from '@/utils/request'
|
||
|
const service_name = "oil-identity"
|
||
|
const group_name = "weChatAuthorization"
|
||
|
export default {
|
||
|
autoLogin (data) {
|
||
|
return request({
|
||
|
url: `/${service_name}/${group_name}/loginOilOmsWebMini`,
|
||
|
method: 'post',
|
||
|
data:data
|
||
|
})
|
||
|
},
|
||
|
sendCode (code) {
|
||
|
return request({
|
||
|
url: `/${service_name}/${group_name}/sendCode`,
|
||
|
method: 'post',
|
||
|
data:{
|
||
|
...code,
|
||
|
appId:'wx679386b5e40ab43e'
|
||
|
}
|
||
|
})
|
||
|
},
|
||
|
bindLoginByPhone (data) {
|
||
|
return request({
|
||
|
url: `/${service_name}/${group_name}/bindLoginByPhoneOilOmsWebMini`,
|
||
|
method: 'post',
|
||
|
data:{
|
||
|
...data,
|
||
|
appId:'wx679386b5e40ab43e'
|
||
|
}
|
||
|
})
|
||
|
},
|
||
|
weChatLoginOilOmsWebMini (data) {
|
||
|
return request({
|
||
|
url: `/${service_name}/${group_name}/loginOilOmsMini`,
|
||
|
method: 'post',
|
||
|
data:data
|
||
|
})
|
||
|
},
|
||
|
logoutAuthSystem (data) {
|
||
|
return request({
|
||
|
url: `/oil-site/oilSiteAccountAppInfo/logoutAuthSystem/OIL_OMS_WEB_MINI`,
|
||
|
method: 'get'
|
||
|
})
|
||
|
},
|
||
|
decryptPhoneNumber (data) {
|
||
|
return request({
|
||
|
url: `/${service_name}/${group_name}/decryptWeChatPhoneData`,
|
||
|
method: 'post',
|
||
|
data:data
|
||
|
})
|
||
|
}
|
||
|
}
|