修改引导页、登录页等页面样式

This commit is contained in:
zhouyanli
2026-05-05 11:42:04 +08:00
parent 614dab7a6b
commit 97f8973f39
12 changed files with 161 additions and 138 deletions

View File

@@ -89,11 +89,12 @@ const selectProject = (item) => {
padding: 10px;
height: 100vh;
box-sizing: border-box;
background-color: #f9f9f9;
}
.search-bar {
display: flex;
align-items: center;
padding: 8px 10px;
padding: 13px 16px;
background: #f5f5f5;
border-radius: 6px;
margin-bottom: 10px;
@@ -109,8 +110,9 @@ const selectProject = (item) => {
.category-left {
width: 120px;
height: 100%;
background: #f8f8f8;
background: #fff;
border-radius: 6px 0 0 6px;
margin-right: 20rpx;
}
.category-item {
padding: 15px 10px;
@@ -119,8 +121,8 @@ const selectProject = (item) => {
border-bottom: 1px solid #eee;
}
.category-item.active {
background: #fff;
color: #007aff;
background: #f9f9f9;
color: #222;
font-weight: bold;
}
.category-right {

View File

@@ -35,7 +35,7 @@
<script setup>
import { ref, computed } from 'vue';
import {onLoad,onShow} from '@dcloudio/uni-app'
import{getResetPassword} from '../api/api.js'
import{getResetPassword} from '../../api/api.js'
// ========== 响应式数据 ==========
@@ -134,7 +134,7 @@ const handleConfirm = () => {
}
.status_bar{
width: 100%;
height: 46px;
height: 36px;
}
/* 顶部导航栏 */
@@ -148,9 +148,10 @@ const handleConfirm = () => {
.nav-title {
flex: 1;
text-align: center;
font-size: 36rpx;
font-size: 32rpx;
font-weight: 500;
color: #333;
color: #000;
margin-right: 100rpx;
}
/* 输入框通用样式 */
@@ -180,9 +181,9 @@ const handleConfirm = () => {
line-height: 88rpx;
background-color: #4D5DFA;
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
margin-top: 20rpx;
border-radius: 8rpx;
font-size: 28rpx;
margin-top: 66rpx;
}
/* 确定按钮禁用状态 */
@@ -192,6 +193,6 @@ const handleConfirm = () => {
}
/* 禁用按钮边框 */
button:after{
border-radius: 50px;
border-radius: 8px;
}
</style>

View File

@@ -44,7 +44,7 @@
</template>
<script setup>
import { ref, computed, onUnmounted } from 'vue';
import {getSendCode} from '../api/api.js'
import {getSendCode} from '../../api/api.js'
// ====响应式数据======
const phoneNumber = ref('')
@@ -144,9 +144,10 @@ const goBack = () => {
.nav-title {
flex: 1;
text-align: center;
font-size: 36rpx;
font-size: 32rpx;
font-weight: 500;
color: #333;
color: #000;
margin-right: 100rpx;
}
/* 输入框通用样式 */
.input-item {
@@ -196,7 +197,7 @@ const goBack = () => {
background-color: #4D5DFA;
color: #fff;
border-radius: 35rpx;
font-size: 28rpx;
font-size: 26rpx;
padding: 0;
margin: 0;
}
@@ -205,6 +206,9 @@ const goBack = () => {
background-color: #ccc;
color: #fff;
}
.get-verify-btn:after{
border-radius: 50px;
}
/* 下一步按钮 */
.forget-btn{
width: 100%;
@@ -212,9 +216,10 @@ const goBack = () => {
line-height: 88rpx;
background-color: #4D5DFA;
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
border-radius: 8rpx;
font-size: 28rpx;
margin-bottom: 40rpx;
margin-top: 66rpx;
}
.forget-btn:disabled{
background-color: #99c8ff;
@@ -222,7 +227,7 @@ const goBack = () => {
}
/* 禁用按钮边框 */
button:after{
border-radius: 50px;
border-radius: 8px;
}

View File

@@ -64,7 +64,7 @@
import {
getLoginBySms,
getSendCode
} from '../api/api.js'
} from '../../api/api.js'
// ========== 响应式数据 ==========
// 手机号
@@ -243,11 +243,11 @@
/* 登录标题 */
.login-title {
font-size: 48rpx;
font-size: 52rpx;
font-weight: 600;
color: #333;
text-align: center;
margin-bottom: 80rpx;
margin-bottom: 142rpx;
}
/* 输入框项 */
@@ -301,7 +301,7 @@
background-color: #4D5DFA;
color: #fff;
border-radius: 35rpx;
font-size: 28rpx;
font-size: 26rpx;
padding: 0;
margin: 0;
}
@@ -312,18 +312,21 @@
color: #fff;
border-radius: 50px;
}
.get-verify-btn:after{
border-radius: 50px;
}
/* 协议勾选项 */
.agreement-item {
display: flex;
align-items: center;
margin: 40rpx 0;
margin: 70rpx 0 28rpx 0;
padding-left: 10rpx;
}
/* 协议文本 */
.agreement-text {
font-size: 28rpx;
font-size: 24rpx;
color: #666;
margin-left: 10rpx;
}
@@ -337,8 +340,8 @@
line-height: 88rpx;
background-color: #4D5DFA;
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
border-radius: 8rpx;
font-size: 28rpx;
margin-bottom: 60rpx;
}
@@ -351,7 +354,7 @@
/* 禁用按钮边框 */
button:after {
border-radius: 50px;
border-radius: 8px;
}
/* 底部链接 */

View File

@@ -23,7 +23,7 @@
<image src="http://47.104.199.163:9090/images/login/password.png" mode=""
style="height: 100%;width: 100%;"></image>
</view>
<uni-easyinput class="input-content" type="password" v-model="password" placeholder="请输入密码"
<uni-easyinput class="input-content" type="password" v-model="password" placeholder="请输入6-16位密码"
:inputBorder="false" :placeholderStyle="placeholderStyle">
</uni-easyinput>
@@ -66,7 +66,7 @@
} from "@dcloudio/uni-app"
import {
getLoginPassword
} from '../api/api.js'
} from '../../api/api.js'
// 响应式数据
const phoneNumber = ref('');
@@ -183,11 +183,11 @@
}
.login-title {
font-size: 48rpx;
font-size: 52rpx;
font-weight: 600;
color: #333;
text-align: center;
margin-bottom: 80rpx;
margin-bottom: 142rpx;
}
.input-item {
@@ -218,7 +218,7 @@
display: flex;
justify-content: space-between;
align-items: center;
margin: 40rpx 0;
margin: 70rpx 0 28rpx 0;
padding: 0 10rpx;
}
@@ -228,7 +228,7 @@
}
.agreement-text {
font-size: 28rpx;
font-size: 24rpx;
color: #666;
margin-left: 10rpx;
}
@@ -240,8 +240,8 @@
} */
.forget-pwd {
font-size: 28rpx;
color: #4D5DFA;
font-size: 24rpx;
color: #666;
text-decoration: none;
}
@@ -251,8 +251,8 @@
line-height: 88rpx;
background-color: #4D5DFA;
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
border-radius: 8rpx;
font-size: 28rpx;
margin-bottom: 60rpx;
}
@@ -265,7 +265,7 @@
/* 禁用按钮边框 */
button:after {
border-radius: 50px;
border-radius: 8px;
}
.bottom-link {

View File

@@ -64,21 +64,17 @@
</view>
<!-- 协议勾选 -->
<view class="agreement-item" @click="toggleAgreement">
<uni-icons
type="checkbox-filled"
size="24"
color="#4D5DFA"
v-if="agreeAgreement"
></uni-icons>
<uni-icons
type="checkbox"
size="24"
color="#999"
v-else
></uni-icons>
<text class="agreement-text">我已阅读并同意《用户隐私政策》</text>
</view>
<!-- 协议勾选 -->
<view class="agreement-item" >
<view @click="toggleAgreement">
<uni-icons type="checkbox-filled" size="24" color="#4D5DFA" v-if="agreeAgreement"></uni-icons>
<uni-icons type="checkbox" size="24" color="#999" v-else></uni-icons>
</view>
<text class="agreement-text" @click.stop="goToPrivacy">我已阅读并同意
<text class="agreePrivacy">《用户隐私政策》</text>
</text>
</view>
<!-- 立即注册按钮 -->
<button
@@ -98,7 +94,7 @@
<script setup>
import { ref, computed, onUnmounted } from 'vue';
import {getRegisterUser,getSendCode} from '../api/api.js'
import {getRegisterUser,getSendCode} from '../../api/api.js'
// ========== 响应式数据 ==========
// 表单数据
@@ -139,6 +135,12 @@ const canRegister = computed(() => {
const goBack = () => {
uni.navigateBack();
};
// 跳转隐私协议
const goToPrivacy = () => {
uni.navigateTo({
url:'/pageSubPack/loginSub/privacy',
})
}
// 切换协议勾选状态
const toggleAgreement = () => {
@@ -264,14 +266,15 @@ onUnmounted(() => {
.nav-title {
flex: 1;
text-align: center;
font-size: 36rpx;
font-size: 32rpx;
font-weight: 500;
color: #333;
margin-right: 100rpx;
}
/* 注册标题 */
.register-title {
font-size: 48rpx;
font-size: 40rpx;
font-weight: 600;
color: #333;
margin-bottom: 60rpx;
@@ -326,8 +329,8 @@ onUnmounted(() => {
line-height: 70rpx;
background-color: #4D5DFA;
color: #fff;
border-radius: 35rpx;
font-size: 28rpx;
border-radius: 198rpx;
font-size: 26rpx;
padding: 0;
margin: 0;
}
@@ -335,13 +338,17 @@ onUnmounted(() => {
.get-verify-btn:disabled {
background-color: #ccc;
color: #fff;
}
.get-verify-btn:after{
border-radius: 50px;
}
/* 协议勾选项 */
.agreement-item {
display: flex;
align-items: center;
margin: 40rpx 0;
margin: 70rpx 0 28rpx 0;
padding-left: 10rpx;
}
@@ -350,6 +357,9 @@ onUnmounted(() => {
color: #666;
margin-left: 10rpx;
}
.agreePrivacy{
color: #4D5DFA;
}
/* 立即注册按钮 */
.register-btn {
@@ -358,12 +368,12 @@ onUnmounted(() => {
line-height: 88rpx;
background-color: #4D5DFA;
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
border-radius: 8rpx;
font-size: 28rpx;
margin-bottom: 40rpx;
}
button:after{
border-radius: 50px;
border-radius: 8px;
}
.register-btn:disabled {
background-color: #99c8ff;

View File

@@ -159,7 +159,7 @@ const openDoor = () => {
.auth-container {
background: #ffffff;
border-radius: 20rpx;
padding: 30rpx 20rpx;
padding: 40rpx 42rpx;
margin-bottom: 60rpx;
position: relative;
top: -86px;
@@ -168,9 +168,10 @@ const openDoor = () => {
.auth-title {
text-align: center;
font-size: 32rpx;
font-weight: 500;
color: #333333;
padding-bottom: 20rpx;
border-bottom: 1px solid #e5e5e5;
/* border-bottom: 1px solid #e5e5e5; */
margin-bottom: 30rpx;
}
@@ -204,14 +205,14 @@ const openDoor = () => {
/* 门图标 */
.door-icon {
width: 80rpx;
height: 80rpx;
width: 126rpx;
height: 114rpx;
/* background-color: #f5f5f5; */
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 15rpx;
margin-bottom: 44rpx;
}
.icon-text {
/* font-size: 40rpx; */
@@ -221,8 +222,9 @@ const openDoor = () => {
/* 门名称 */
.door-name {
font-size: 26rpx;
color: #333333;
font-size: 32rpx;
color: #222;
font-weight: 500;
}
/* 确认按钮 */

View File

@@ -265,7 +265,7 @@ const handleConfirm = () => {
line-height: 88rpx;
background-color: #4D5DFA;
color: #fff;
border-radius: 44rpx;
border-radius: 8rpx;
font-size: 28rpx;
margin-top: 20rpx;
border: none;
@@ -280,6 +280,6 @@ const handleConfirm = () => {
/* 禁用按钮边框重置 */
button:after {
border: none;
border-radius: 44rpx;
border-radius: 8rpx;
}
</style>

View File

@@ -44,7 +44,7 @@
</template>
<script setup>
import { ref, computed, onUnmounted } from 'vue';
import {getSendCode} from '../api/api.js'
import {getSendCode} from '../../api/api.js'
// ====响应式数据======
const phoneNumber = ref('')

View File

@@ -167,7 +167,7 @@ const handleBtnClick = () => {
/* 单个进度点 */
.dot {
width: 16rpx;
height: 16rpx;
height: 8rpx;
border-radius: 8rpx;
background-color: #ddd;
margin: 0 8rpx;
@@ -176,7 +176,7 @@ const handleBtnClick = () => {
/* 激活的进度点 */
.dot.active {
background-color: #4D5DFA;
width: 40rpx;
width: 28rpx;
}
/* 按钮容器 */