diff --git a/api/oil-identity.js b/api/oil-identity.js index b31b2ab..f96f657 100644 --- a/api/oil-identity.js +++ b/api/oil-identity.js @@ -1,17 +1,24 @@ import request from '@/utils/request' -const service_name ='oil-identity' -const group_name ='weChatCloudAuthorization' +const service_name ='xkhl-identity' +const group_name ='unionAuth' const Customer_name = 'oilCustomerChannelRelation' const WchatLogin_name ='weChatCloudAuthorization' export default{ // 新登录接口 手机密码登录 loginByPhonePwd (data) { return request({ - url: `/${service_name}/${group_name}/loginByPhonePwd`, + url: `/${service_name}/${group_name}/loginPwd`, method: 'post', data:data }) }, + // 新登录接口 手机密码登录 + logout () { + return request({ + url: `/${service_name}/${group_name}/logout`, + method: 'get', + }) + }, // 获取用户信息 sendCode(code){ return request({ @@ -37,7 +44,7 @@ export default{ url: `/${service_name}/${group_name}/verifyCodeLogin`, method: 'post', data:data, - + }) }, //切换油站 @@ -46,7 +53,7 @@ export default{ url: `/xkhl-identity/unionAuth/changeSiteLogin`, method: 'post', data:data, - + }) }, //微信一键登录 new @@ -55,7 +62,7 @@ export default{ url: `/xkhl-identity/unionAuth/loginPersonal`, method: 'post', data:data, - + }) }, //首次登录绑定手机号 绑定微信手机号 new @@ -64,7 +71,7 @@ export default{ url: `/xkhl-identity/unionAuth/bindLoginByPhonePersonal`, method: 'post', data:data, - + }) }, //首次登录绑定手机号 当用户拒绝获取微信手机号时走此接口,判断用户是否存在,不存在提示注册,存在就发送验证码登录 new @@ -73,7 +80,7 @@ export default{ url: `/${service_name}/${WchatLogin_name}/bindWeChatSendVerifyCode`, method: 'post', data:data, - + }) }, // 首次登录绑定手机号 当用户拒绝获取微信手机号时走此接kou 手机号存在账户时,调用此接口登录 个人通道 @@ -82,7 +89,7 @@ export default{ url: `/${service_name}/${WchatLogin_name}/bindWeChatLoginByVerifyCodePersonal`, method: 'post', data:data, - + }) }, bindLoginByPhone (data) { diff --git a/pages/login/boforeLogin/boforeLogin.vue b/pages/login/boforeLogin/boforeLogin.vue index bab4a04..00dc24e 100644 --- a/pages/login/boforeLogin/boforeLogin.vue +++ b/pages/login/boforeLogin/boforeLogin.vue @@ -25,7 +25,7 @@ --> - +