|
@@ -13,27 +13,42 @@
|
|
|
<view class="title-en">Hello!</view>
|
|
|
<view class="title-en">欢迎登录橙宝日志</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <!-- 输入框-->
|
|
|
<view class="input-wrapper">
|
|
|
- <view class="phone-input">
|
|
|
- <view class="country-code">
|
|
|
- <span>+86</span>
|
|
|
- <i class="fa-chevron-down"></i>
|
|
|
+ <!-- 账号 -->
|
|
|
+ <view class="country-code">
|
|
|
+ <view class="country-phone">
|
|
|
+ <image style="width: 24px; height: 24px" src="/src/static/icon/phone.svg"></image>
|
|
|
+ <view class="login-text">手机号</view>
|
|
|
+ </view>
|
|
|
+ <view class="phone-input">
|
|
|
+ <view>+86</view>
|
|
|
+ <view>
|
|
|
+ <input v-model="account" type="text" placeholder="请输入手机号" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <input v-model="account" type="text" placeholder="请输入手机号" />
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="verify-input">
|
|
|
- <i class="input-icon">
|
|
|
+ <!-- 验证码 -->
|
|
|
+ <view class="country-password">
|
|
|
+ <view class="country-phone">
|
|
|
<image
|
|
|
style="width: 24px; height: 24px"
|
|
|
- src="/src/static/icon/login_password.svg"
|
|
|
+ src="/src/static/icon/Verification.svg"
|
|
|
></image>
|
|
|
- </i>
|
|
|
- <input type="password" placeholder="请输入验证码" v-model="password" />
|
|
|
- <button class="send-btn" :disabled="isCountingDown" @click="sendVerificationCode">
|
|
|
- {{ buttonText }}
|
|
|
- </button>
|
|
|
+ <view class="login-text">验证码</view>
|
|
|
+ </view>
|
|
|
+ <view class="phone-input">
|
|
|
+ <view class="verification-input">
|
|
|
+ <input v-model="verification" type="text" placeholder="请输入验证码" />
|
|
|
+ </view>
|
|
|
+ <image
|
|
|
+ style="width: 1px; height: 16px; background: red"
|
|
|
+ src="/src/static/icon/textBor.svg"
|
|
|
+ ></image>
|
|
|
+ <view class="send-btn" :disabled="isCountingDown" @click="sendVerificationCode">
|
|
|
+ {{ buttonText }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -45,7 +60,7 @@
|
|
|
<script setup>
|
|
|
import { ref } from 'vue'
|
|
|
const account = ref('') // 账号
|
|
|
- const password = ref('') // 密码
|
|
|
+ const verification = ref('') // 验证码
|
|
|
const countdown = ref(0)
|
|
|
const isCountingDown = ref(false)
|
|
|
|
|
@@ -55,7 +70,7 @@
|
|
|
|
|
|
// 点击登录
|
|
|
const loginBtn = () => {
|
|
|
- console.log(account.value, password.value)
|
|
|
+ console.log(account.value, verification.value)
|
|
|
console.log(2222)
|
|
|
}
|
|
|
|
|
@@ -84,6 +99,13 @@
|
|
|
|
|
|
.login-box {
|
|
|
width: 90%;
|
|
|
+ font-size: 1rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .login_title {
|
|
|
+ width: 100%;
|
|
|
+ height: 4.5rem;
|
|
|
+ margin: 6.25rem 0 1.25rem 0;
|
|
|
}
|
|
|
|
|
|
.title-en {
|
|
@@ -94,106 +116,63 @@
|
|
|
color: #333333;
|
|
|
}
|
|
|
|
|
|
- .login_title {
|
|
|
- width: 100%;
|
|
|
- height: 4.5rem;
|
|
|
- margin: 6.25rem 0 1.25rem 0rem;
|
|
|
- }
|
|
|
-
|
|
|
.input-wrapper {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
- height: 7.75rem;
|
|
|
- margin: 0.625rem 0 1.25rem 0rem;
|
|
|
+ height: 11.25rem;
|
|
|
+ margin: 0.625rem 0 1.25rem 0;
|
|
|
}
|
|
|
|
|
|
- .login-button {
|
|
|
+ .country-code {
|
|
|
width: 100%;
|
|
|
- height: 3rem;
|
|
|
- margin: 5rem 0 1.25rem 0rem;
|
|
|
- font-size: 1rem;
|
|
|
- color: white;
|
|
|
- background: #50b3ff !important;
|
|
|
- border: none;
|
|
|
- border-radius: 0.5rem;
|
|
|
+ height: 5rem;
|
|
|
+ padding: 1rem 0;
|
|
|
}
|
|
|
|
|
|
.phone-input {
|
|
|
display: flex;
|
|
|
+ gap: 1rem;
|
|
|
align-items: center;
|
|
|
- margin-bottom: 1rem;
|
|
|
- background: #fff;
|
|
|
- border: 0.0625rem solid #ccc;
|
|
|
- border-radius: 0.5rem;
|
|
|
+ height: 3.5rem;
|
|
|
+ border-bottom: 0.03125rem solid var(--Gray-Gray3, #e7e7e7);
|
|
|
}
|
|
|
|
|
|
- .country-code {
|
|
|
+ .country-phone {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- padding: 0 1rem;
|
|
|
- font-size: 0.875rem;
|
|
|
- color: #333;
|
|
|
- border-right: 0.0625rem solid #e8e8e8;
|
|
|
}
|
|
|
|
|
|
- .country-code i {
|
|
|
- margin-left: 0.25rem;
|
|
|
- font-size: 0.75rem;
|
|
|
- color: #999;
|
|
|
+ .login-text {
|
|
|
+ margin-left: 0.625rem;
|
|
|
}
|
|
|
|
|
|
.phone-input input {
|
|
|
flex: 1;
|
|
|
- height: 3rem;
|
|
|
padding: 0 1rem;
|
|
|
font-size: 0.875rem;
|
|
|
- background: transparent;
|
|
|
- border: none;
|
|
|
}
|
|
|
|
|
|
- .verify-input {
|
|
|
- position: relative;
|
|
|
- display: flex;
|
|
|
- background: #fff;
|
|
|
- border: 0.0625rem solid #ccc;
|
|
|
- border-radius: 0.5rem;
|
|
|
- }
|
|
|
-
|
|
|
- .input-icon {
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- left: 1rem;
|
|
|
- color: #999;
|
|
|
- transform: translateY(-50%);
|
|
|
- }
|
|
|
-
|
|
|
- .verify-input input {
|
|
|
- width: 100%;
|
|
|
- height: 3rem;
|
|
|
- padding: 0 1rem 0 3rem;
|
|
|
- font-size: 0.875rem;
|
|
|
- background: transparent;
|
|
|
- border: none;
|
|
|
+ .verification-input {
|
|
|
+ width: 27.75rem;
|
|
|
}
|
|
|
|
|
|
.send-btn {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- width: 8.75rem;
|
|
|
+ width: 13.75rem;
|
|
|
overflow: hidden;
|
|
|
- font-size: 0.75rem;
|
|
|
- color: #409eff;
|
|
|
+ font-size: 0.875rem;
|
|
|
+ color: #f88842;
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
- // .send-btn:hover:not(:disabled) {
|
|
|
- // color: #66b1ff;
|
|
|
- // }
|
|
|
- // .send-btn:disabled {
|
|
|
- // color: #c0c4cc;
|
|
|
- // cursor: not-allowed;
|
|
|
- // }
|
|
|
+ .login-button {
|
|
|
+ width: 100%;
|
|
|
+ height: 3rem;
|
|
|
+ margin: 5rem 0 1.25rem 0;
|
|
|
+ font-size: 1rem;
|
|
|
+ color: white;
|
|
|
+ background: #f88842 !important;
|
|
|
+ border-radius: 0.5rem;
|
|
|
+ }
|
|
|
</style>
|