111
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.

60 lines
1.3 KiB

2 years ago
import request from '@/utils/request'
const service_name = "oil-identity"
const group_name = "weChatAuthorization"
const Wchat_id = 'wx7a939c19b270cc3d'
export default {
1 year ago
autoLogin (data,url,requestParameter={}) {
2 years ago
return request({
url: `/${service_name}/${group_name}/${url}`,
method: 'post',
1 year ago
data:data,
...requestParameter
2 years ago
})
},
wechatLogin(data) { //卡力小程序跳转登录
return request({
url: `/${service_name}/${group_name}/wechatLogin`,
method: 'post',
data:data
})
},
sendCode (code) {
return request({
url: `/${service_name}/${group_name}/sendCode`,
method: 'post',
data:{
code:code,
appId:Wchat_id
}
})
},
1 year ago
bindLoginByPhone (data,url,requestParameter={}) {
2 years ago
return request({
url: `/${service_name}/${group_name}/${url}`,
method: 'post',
1 year ago
data:data,
...requestParameter
2 years ago
})
},
decryptPhoneNumber (data) {
return request({
url: `/${service_name}/${group_name}/decryptWeChatPhoneData`,
method: 'post',
data:data
})
},
getPhone (data) {
return request({
url: `/${service_name}/releaseXingYou/encryptedweChatPhone`,
method: 'post',
data:{
...data,
appId:Wchat_id
}
})
}
}