diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 712cab0..bc5aea9 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -13,6 +13,19 @@ + + + + + + + + + + + @@ -36,36 +49,8 @@ @@ -100,8 +85,8 @@ const privacyAgreement = ref(""); const AgreeType = ref("service"); const logo = computed(() => getCurrentConfig().logo); -// 同意隐私协议并获取手机号 -const handleAgreeAndGetPhone = () => { +// 提交表单操作 +const onSubmitForm = () => { if (!isAgree.value) { uni.showToast({ title: "请先同意服务协议和隐私协议", @@ -111,18 +96,6 @@ const handleAgreeAndGetPhone = () => { } }; -const getPhoneNumber = (e) => { - onLogin(e) - .then(() => { - uni.showToast({ - title: "登录成功", - icon: "success", - }); - goBack(); - }) - .catch(() => {}); -}; - const handleLogin = () => { console.log("handleLogin"); onLogin() diff --git a/src/pages/login/styles/index.scss b/src/pages/login/styles/index.scss index 0057239..a4d47ed 100644 --- a/src/pages/login/styles/index.scss +++ b/src/pages/login/styles/index.scss @@ -36,8 +36,16 @@ } } + .form { + margin-top: 40px; + } + + .w-272 { + width: 272px; + } + .login-agreement { - margin-top: 80px; + margin-top: 40px; width: 304px; } }