diff --git a/.env.production b/.env.production index 908e604..686de8d 100644 --- a/.env.production +++ b/.env.production @@ -13,5 +13,5 @@ VUE_APP_API= '/' # 请求环境 # 方楠 -VUE_APP_BASE_API = 'http://expense-h5.lyrfp.com' +VUE_APP_BASE_API = 'http://one-h5.lyrfp.com' # VUE_APP_BASE_API = 'http://60.204.223.58:8080' diff --git a/src/api/login.js b/src/api/login.js index 38c0f22..bc81aaf 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -22,7 +22,8 @@ export function Wxlogin(query) { params: query }) } -// 通过code 后端获取访问用户身份 + +// 通过code 后端获取访问用户身份token export function sendCode(query) { return request({ url: '/system/auth/social-WeCom-login', @@ -30,6 +31,22 @@ export function sendCode(query) { params: query }) } +// 是否隐藏账号密码登录 +export function isProhibited(query) { + return request({ + url: '/system/auth/isProhibited', + method: 'get', + params: query + }) +} +// 账号密码登录 绑定企业微信 +export function userBind(data) { + return request({ + url: '/system/social-user/bind', + method: 'POST', + data + }) +} // 获取个人权限信息 export function getUserInfo() { diff --git a/src/assets/chahao.png b/src/assets/chahao.png new file mode 100644 index 0000000..9e01133 Binary files /dev/null and b/src/assets/chahao.png differ diff --git a/src/layout/index.vue b/src/layout/index.vue index 0b10147..c361505 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,6 +1,17 @@