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.
95 lines
2.5 KiB
95 lines
2.5 KiB
import request from '@/utils/request' |
|
const service_name ='oil-identity' |
|
const group_name ='weChatCloudAuthorization' |
|
const Customer_name = 'oilCustomerChannelRelation' |
|
const WchatLogin_name ='weChatCloudAuthorization' |
|
export default{ |
|
// 新登录接口 手机密码登录 |
|
loginByPhonePwd (data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/loginByPhonePwd`, |
|
method: 'post', |
|
data:data |
|
}) |
|
}, |
|
// 获取用户信息 |
|
sendCode(code){ |
|
return request({ |
|
url: `/${service_name}/${group_name}/sendCode`, |
|
method: 'post', |
|
data:{ |
|
code:code, |
|
appId:'wxaf56b8bae925ba19' |
|
} |
|
}) |
|
}, |
|
// 获取验证码 |
|
getVerifyCode(phone){ |
|
return request({ |
|
url: `/${service_name}/${group_name}/getVerifyCode`, |
|
method: 'post', |
|
data: phone, |
|
}) |
|
}, |
|
// 验证码登录 |
|
verifyCodeLogin(data){ |
|
return request({ |
|
url: `/${service_name}/${group_name}/verifyCodeLogin`, |
|
method: 'post', |
|
data:data, |
|
|
|
}) |
|
}, |
|
//切换油站 |
|
changeChannelLogin(data){ |
|
return request({ |
|
url: `/${service_name}/${group_name}/changeChannelLogin`, |
|
method: 'post', |
|
data:data, |
|
|
|
}) |
|
}, |
|
//微信一键登录 new |
|
loginPersonal(data){ |
|
return request({ |
|
url: `/${service_name}/${WchatLogin_name}/loginPersonal`, |
|
method: 'post', |
|
data:data, |
|
|
|
}) |
|
}, |
|
//首次登录绑定手机号 绑定微信手机号 new |
|
bindLoginByPhonePersonal(data){ |
|
return request({ |
|
url: `/${service_name}/${WchatLogin_name}/bindLoginByPhonePersonal`, |
|
method: 'post', |
|
data:data, |
|
|
|
}) |
|
}, |
|
//首次登录绑定手机号 当用户拒绝获取微信手机号时走此接口,判断用户是否存在,不存在提示注册,存在就发送验证码登录 new |
|
bindWeChatSendVerifyCode(data){ |
|
return request({ |
|
url: `/${service_name}/${WchatLogin_name}/bindWeChatSendVerifyCode`, |
|
method: 'post', |
|
data:data, |
|
|
|
}) |
|
}, |
|
// 首次登录绑定手机号 当用户拒绝获取微信手机号时走此接kou 手机号存在账户时,调用此接口登录 个人通道 |
|
bindWeChatLoginByVerifyCodePersonal(){ |
|
return request({ |
|
url: `/${service_name}/${WchatLogin_name}/bindWeChatLoginByVerifyCodePersonal`, |
|
method: 'post', |
|
data:data, |
|
|
|
}) |
|
}, |
|
bindLoginByPhone (data) { |
|
return request({ |
|
url: `/${service_name}/${group_name}/bindLoginByPhone`, |
|
method: 'post', |
|
data:data |
|
}) |
|
}, |
|
}
|
|
|