手机端项目整体UI调整修改

This commit is contained in:
黎小北
2026-05-14 16:45:12 +08:00
parent 31996b716f
commit b36f75599e
31 changed files with 2278 additions and 790 deletions
+171 -76
View File
@@ -1,11 +1,11 @@
<template>
<view class="login">
<div class="langview">
<div class="select" @click="showLangselect(true)">
<view class="langview">
<view class="select" @click="showLangselect(true)">
{{ langList[language] }}
</div>
<div class="select-box" v-show="langselect">
<div
</view>
<view class="select-box" v-show="langselect">
<view
class="option"
v-for="item in Object.keys(langList)"
:key="item"
@@ -13,42 +13,56 @@
@click="choseLang(item)"
>
{{ langList[item] }}
</div>
</div>
</div>
</view>
</view>
</view>
<view class="content">
<view class="logo">
<u--image
:showLoading="false"
:src="loginLogo"
width="125px"
height="119px"
mode="scaleToFill"
></u--image>
<view class="logo-shell">
<view class="logo">
<u--image
:showLoading="false"
:src="loginLogo"
width="125px"
height="119px"
mode="scaleToFill"
></u--image>
</view>
</view>
<u-input
class="input"
v-model="phone"
type="text"
clearable
:placeholder="$lang.enterAccount"
><!--
<view class="phone-code" slot="prefix" @click="countryShow = true">{{
countryData.country_code
}}</view>-->
</u-input>
<u-input
class="input"
v-model="password"
:password="true"
:placeholder="$lang.enterPassword"
>
</u-input>
<view class="btn-box">
<view class="btn" @tap="login('login')">{{ $lang.login }}</view>
<view class="btn" @tap="login('dome')">{{ $lang.dome }}</view>
<view class="panel">
<u-input
class="input"
v-model="phone"
type="text"
clearable
border="none"
color="#f7ecd2"
:placeholder="$lang.enterAccount"
placeholderStyle="color: rgba(245, 228, 184, 0.38); font-size: 14px;"
><!--
<view class="phone-code" slot="prefix" @click="countryShow = true">{{
countryData.country_code
}}</view>-->
</u-input>
<u-input
class="input"
v-model="password"
:password="true"
border="none"
color="#f7ecd2"
:placeholder="$lang.enterPassword"
placeholderStyle="color: rgba(245, 228, 184, 0.38); font-size: 14px;"
>
</u-input>
<view class="btn-box">
<view class="btn btn-primary" @tap="login('login')">{{
$lang.login
}}</view>
<view class="btn btn-secondary" @tap="login('dome')">{{
$lang.dome
}}</view>
</view>
<view class="tip" @tap="goRegister">{{ $lang.goRegister }}</view>
</view>
<view class="tip" @tap="goRegister">{{ $lang.goRegister }}</view>
</view>
<!-- 提示 -->
<u-toast ref="uToast" />
@@ -202,65 +216,126 @@ export default {
overflow-y: auto;
.langview {
position: absolute;
top: 15px;
right: 15px;
top: 16px;
right: 16px;
z-index: 20;
.select {
border-radius: 4px;
width: 90px;
display: inline-block;
font-size: 14px;
color: #cfc189;
line-height: 35px;
background: #212121;
min-width: 96px;
padding: 0 14px;
font-size: 13px;
color: #e8d39b;
line-height: 34px;
background: rgba(15, 12, 10, 0.74);
border: 1px solid rgba(213, 181, 103, 0.18);
border-radius: 10px;
text-align: center;
&:active {
opacity: 0.6;
opacity: 0.82;
}
}
.select-box {
position: absolute;
right: 0;
top: 45px;
width: 90px;
line-height: 30px;
background: #212121;
border-radius: 4px;
top: 40px;
width: 108px;
padding: 4px 0;
line-height: 32px;
background: rgba(15, 12, 10, 0.92);
border: 1px solid rgba(213, 181, 103, 0.18);
border-radius: 10px;
text-align: center;
color: #fff;
font-size: 14px;
color: rgba(255, 246, 226, 0.88);
font-size: 13px;
z-index: 9;
.option {
padding: 0 8px;
}
.option:active {
opacity: 0.6;
}
.active {
color: #cfc189;
color: #e8d39b;
font-weight: bold;
}
}
}
.content {
width: 280px;
padding-bottom: 50px;
width: 86%;
max-width: 326px;
margin: 0 auto;
padding: 94px 0 48px;
.logo-shell {
margin-bottom: 20px;
}
.logo {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
margin-top: 20%;
width: 125px;
height: 119px;
margin: 0 auto;
}
.panel {
position: relative;
padding: 20px 18px 22px;
border-radius: 24px;
background: linear-gradient(
180deg,
rgba(14, 11, 9, 0.9) 0%,
rgba(10, 8, 7, 0.8) 100%
);
border: 1px solid rgba(213, 181, 103, 0.22);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24),
inset 0 1px 0 rgba(255, 255, 255, 0.03);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
left: 18px;
right: 18px;
height: 1px;
background: linear-gradient(
90deg,
rgba(213, 181, 103, 0),
rgba(244, 221, 169, 0.82),
rgba(213, 181, 103, 0)
);
}
}
.input {
height: 30px;
line-height: 30px;
margin-bottom: 15px;
background: #fff;
border-radius: 8px;
height: 50px;
line-height: 50px;
margin-bottom: 14px;
background: rgba(24, 20, 17, 0.96);
border: 1px solid rgba(213, 181, 103, 0.14);
border-radius: 15px;
overflow: hidden;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03),
inset 0 -1px 0 rgba(0, 0, 0, 0.16);
&:last-of-type {
margin-bottom: 0;
}
::v-deep .u-input__content {
min-height: 100%;
padding: 0 15px;
}
::v-deep .u-input__content__field-wrapper {
width: 100%;
}
::v-deep input {
color: #f7ecd2 !important;
font-size: 15px !important;
letter-spacing: 0.2px;
}
::v-deep input::placeholder {
color: rgba(245, 228, 184, 0.42) !important;
}
}
.phone-code {
min-width: 50px;
text-align: center;
border-right: 1px solid #ddd;
border-right: 1px solid rgba(213, 181, 103, 0.18);
}
.btn-box {
margin-top: 20px;
@@ -269,15 +344,33 @@ export default {
height: 48px;
line-height: 48px;
text-align: center;
font-size: 16px;
background: url("~@/static/images/btn_bg.png") no-repeat;
background-size: 100% 100%;
font-weight: 600;
margin-top: 15px;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.5px;
border-radius: 15px;
margin-top: 12px;
&:active {
opacity: 0.8;
opacity: 0.86;
}
}
.btn-primary {
margin-top: 0;
color: #241804;
background: linear-gradient(
180deg,
#f2dfb6 0%,
#dfbd78 52%,
#bd8d39 100%
);
box-shadow: 0 12px 24px rgba(125, 84, 22, 0.24),
inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.btn-secondary {
color: #ead6a0;
background: rgba(18, 15, 12, 0.92);
border: 1px solid rgba(213, 181, 103, 0.2);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
}
}
.country {
@@ -287,12 +380,14 @@ export default {
}
.tip {
font-size: 12px;
color: #b38f3c;
margin-top: 20px;
color: rgba(234, 214, 160, 0.92);
margin-top: 16px;
padding-top: 14px;
border-top: 1px solid rgba(213, 181, 103, 0.1);
text-align: center;
margin-bottom: 20px;
letter-spacing: 0.2px;
&:active {
opacity: 0.6;
opacity: 0.7;
}
}
}