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.
59 lines
1.3 KiB
59 lines
1.3 KiB
import request from '@/utils/request' |
|
const service_name = "oil-identity" |
|
const group_name = "weChatAuthorization" |
|
const Wchat_id = 'wx7a939c19b270cc3d' |
|
export default { |
|
autoLogin (data,url,requestParameter={}) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/${url}`, |
|
method: 'post', |
|
data:data, |
|
...requestParameter |
|
}) |
|
}, |
|
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 |
|
} |
|
}) |
|
}, |
|
bindLoginByPhone (data,url,requestParameter={}) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/${url}`, |
|
method: 'post', |
|
data:data, |
|
...requestParameter |
|
}) |
|
}, |
|
|
|
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 |
|
} |
|
}) |
|
} |
|
|
|
|
|
}
|
|
|