diff --git a/src/api/login.ts b/src/api/login.ts index a58da00..d9ff205 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -1,7 +1,15 @@ import { request } from "../utils/request"; // 获取oauth token -export function oauthToken(args: any) { +export interface OauthTokenRequest { + clientId: string; + grant_type?: string; + openIdCode?: string[]; + scope?: string; + [property: string]: any; +} + +export function oauthToken(args: OauthTokenRequest) { return request({ url: "/auth/oauth2/token", method: "post", diff --git a/src/pages/login/components/AgreePopup/index.vue b/src/pages/login/components/AgreePopup/index.vue deleted file mode 100644 index a3a6da0..0000000 --- a/src/pages/login/components/AgreePopup/index.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - {{ title }} - - - - - - - - - - - - - - - 我知道了 - - - - - - diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 4f9780d..e3e7bbd 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -1,149 +1,56 @@ - - - - - - - 我已阅读并同意 - 《服务协议》 - 和 - 《隐私协议》 - 授权与账号关联操作 - - - - - - 手机号快捷登录 + + Continue with Google - -