fix: +86前缀被挤出 + 注册页加语言切换 + 语言按钮样式
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- prepend 固定 width:70px 避免 +86 被挤出 - 注册页 login-jump-btn 内加入 lang-box 语言切换 - lang-box 用 font-size:0 消除文本节点间的 / 分隔符 - 登录注册页 lang-box 样式统一
This commit is contained in:
@@ -70,16 +70,19 @@
|
|||||||
/* 语言切换 */
|
/* 语言切换 */
|
||||||
.login-jump-btn .lang-box {
|
.login-jump-btn .lang-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
gap: 4px;
|
||||||
|
font-size: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-jump-btn .lang-box span {
|
.login-jump-btn .lang-box span {
|
||||||
color: rgba(139, 148, 158, 0.6);
|
color: rgba(139, 148, 158, 0.6);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding: 4px 8px;
|
padding: 6px 12px;
|
||||||
border-radius: 4px;
|
border-radius: 6px;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
line-height: 1;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-jump-btn .lang-box span:hover {
|
.login-jump-btn .lang-box span:hover {
|
||||||
@@ -88,7 +91,7 @@
|
|||||||
|
|
||||||
.login-jump-btn .lang-box span.active {
|
.login-jump-btn .lang-box span.active {
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
background: rgba(22, 93, 255, 0.15);
|
background: rgba(22, 93, 255, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- 表单区域 — 无卡片 ---- */
|
/* ---- 表单区域 — 无卡片 ---- */
|
||||||
@@ -332,16 +335,17 @@
|
|||||||
border-right: 1px solid rgba(255,255,255,0.06) !important;
|
border-right: 1px solid rgba(255,255,255,0.06) !important;
|
||||||
border-radius: 8px 0 0 8px !important;
|
border-radius: 8px 0 0 8px !important;
|
||||||
color: #E6E8EB !important;
|
color: #E6E8EB !important;
|
||||||
padding: 0 10px !important;
|
padding: 0 !important;
|
||||||
|
width: 70px !important;
|
||||||
|
min-width: 70px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-input__inner {
|
.input-with-select .el-input-group__prepend .el-input__inner {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
color: #E6E8EB !important;
|
color: #E6E8EB !important;
|
||||||
padding: 0 !important;
|
padding-left: 12px !important;
|
||||||
height: auto !important;
|
padding-right: 20px !important;
|
||||||
line-height: inherit !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-select .el-input .el-input__inner {
|
.input-with-select .el-input-group__prepend .el-select .el-input .el-input__inner {
|
||||||
@@ -351,6 +355,7 @@
|
|||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-input__suffix {
|
.input-with-select .el-input-group__prepend .el-input__suffix {
|
||||||
color: rgba(139, 148, 158, 0.5) !important;
|
color: rgba(139, 148, 158, 0.5) !important;
|
||||||
|
right: 2px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner {
|
.input-with-select .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner {
|
||||||
|
|||||||
@@ -46,6 +46,35 @@
|
|||||||
top: 24px;
|
top: 24px;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-jump-btn .lang-box {
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
font-size: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-jump-btn .lang-box span {
|
||||||
|
color: rgba(139, 148, 158, 0.6);
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 13px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
line-height: 1;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-jump-btn .lang-box span:hover {
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-jump-btn .lang-box span.active {
|
||||||
|
color: #FFFFFF;
|
||||||
|
background: rgba(22, 93, 255, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-jump-btn .btn {
|
.login-jump-btn .btn {
|
||||||
@@ -228,23 +257,23 @@
|
|||||||
color: rgba(139, 148, 158, 0.6) !important;
|
color: rgba(139, 148, 158, 0.6) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 手机号 select 前置 */
|
|
||||||
.input-with-select .el-input-group__prepend {
|
.input-with-select .el-input-group__prepend {
|
||||||
background: #1c2028 !important;
|
background: #1c2028 !important;
|
||||||
border: 1px solid transparent !important;
|
border: 1px solid transparent !important;
|
||||||
border-right: 1px solid rgba(255,255,255,0.06) !important;
|
border-right: 1px solid rgba(255,255,255,0.06) !important;
|
||||||
border-radius: 8px 0 0 8px !important;
|
border-radius: 8px 0 0 8px !important;
|
||||||
color: #E6E8EB !important;
|
color: #E6E8EB !important;
|
||||||
padding: 0 10px !important;
|
padding: 0 !important;
|
||||||
|
width: 70px !important;
|
||||||
|
min-width: 70px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-input__inner {
|
.input-with-select .el-input-group__prepend .el-input__inner {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
color: #E6E8EB !important;
|
color: #E6E8EB !important;
|
||||||
padding: 0 !important;
|
padding-left: 12px !important;
|
||||||
height: auto !important;
|
padding-right: 20px !important;
|
||||||
line-height: inherit !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-select .el-input .el-input__inner {
|
.input-with-select .el-input-group__prepend .el-select .el-input .el-input__inner {
|
||||||
@@ -254,6 +283,7 @@
|
|||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-input__suffix {
|
.input-with-select .el-input-group__prepend .el-input__suffix {
|
||||||
color: rgba(139, 148, 158, 0.5) !important;
|
color: rgba(139, 148, 158, 0.5) !important;
|
||||||
|
right: 2px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-select .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner {
|
.input-with-select .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner {
|
||||||
|
|||||||
@@ -17,6 +17,12 @@
|
|||||||
<div id="regist">
|
<div id="regist">
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
<div class="login-jump-btn">
|
<div class="login-jump-btn">
|
||||||
|
<div class="lang-box">
|
||||||
|
<span v-for="item in commonData.lang_list" :key="item.display_lang"
|
||||||
|
:class="{active: item.display_lang == seletcLang}" @click="changeLang(item.display_lang)">
|
||||||
|
{{item.display_name}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<el-button type="primary" class="btn" v-if="commonData.login_register_redirect_show">
|
<el-button type="primary" class="btn" v-if="commonData.login_register_redirect_show">
|
||||||
<a :href="commonData.login_register_redirect_url"
|
<a :href="commonData.login_register_redirect_url"
|
||||||
:target="commonData.login_register_redirect_blank ? '_blank' : '_self'">
|
:target="commonData.login_register_redirect_blank ? '_blank' : '_self'">
|
||||||
|
|||||||
Reference in New Issue
Block a user