322 lines
6.4 KiB
Plaintext
322 lines
6.4 KiB
Plaintext
.dialog-tit{
|
|
font-size: .405rem; /* 增大35%: .3rem * 1.35 = .405rem */
|
|
color: #000;
|
|
padding: .2rem 0;
|
|
}
|
|
.url_box{
|
|
font-size: .24rem;
|
|
margin-top: .1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.url-container {
|
|
display: flex;
|
|
// position: relative;
|
|
// cursor: pointer;
|
|
|
|
.url {
|
|
position: relative;
|
|
display: inline-block;
|
|
color: #275aff;
|
|
text-decoration: none;
|
|
padding: .04rem .1rem;
|
|
border-radius: .04rem;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
|
|
&:hover {
|
|
background-color: #e8edff;
|
|
border-color: #275aff;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 8px rgba(39, 90, 255, 0.1);
|
|
}
|
|
|
|
&.copied {
|
|
background-color: #e1f3d8;
|
|
border-color: #67c23a;
|
|
color: #67c23a;
|
|
|
|
&:hover {
|
|
background-color: #d1edc4;
|
|
border-color: #5daf34;
|
|
}
|
|
}
|
|
|
|
.copy-hint {
|
|
display: inline-block;
|
|
margin-left: .1rem;
|
|
font-size: .189rem; /* 增大35%: .14rem * 1.35 = .189rem */
|
|
color: #999;
|
|
background-color: #fff;
|
|
padding: .02rem .06rem;
|
|
border-radius: .02rem;
|
|
border: 1px solid #eee;
|
|
transition: all 0.2s;
|
|
|
|
.url:hover & {
|
|
color: #275aff;
|
|
border-color: #275aff;
|
|
}
|
|
|
|
.url.copied & {
|
|
content: '✓ 已复制';
|
|
color: #67c23a;
|
|
border-color: #67c23a;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tooltip {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-8px);
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
color: white;
|
|
font-size: .162rem; /* 增大35%: .12rem * 1.35 = .162rem */
|
|
padding: .04rem .08rem;
|
|
border-radius: .04rem;
|
|
white-space: nowrap;
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
pointer-events: none;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border-width: .04rem;
|
|
border-style: solid;
|
|
border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
|
|
}
|
|
|
|
&.tooltip-visible {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
// 弹窗样式优化
|
|
::v-deep .product-consult-dialog {
|
|
&.el-dialog {
|
|
width: var(--dialog-width, 6rem) !important;
|
|
max-width: 90%;
|
|
border-radius: .08rem;
|
|
z-index: 9999;
|
|
|
|
.el-dialog__header {
|
|
padding: .2rem .3rem .1rem;
|
|
border-bottom: 1px solid #eee;
|
|
|
|
.el-dialog__title {
|
|
font-size: .243rem; /* 增大35%: .18rem * 1.35 = .243rem */
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
}
|
|
|
|
|
|
.el-dialog__body {
|
|
padding: .2rem .3rem;
|
|
max-height: 65vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.el-dialog__footer {
|
|
padding: .15rem .3rem .2rem;
|
|
border-top: 1px solid #eee;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 表单样式优化
|
|
::v-deep .el-form {
|
|
.el-form-item {
|
|
margin-bottom: .4rem;
|
|
|
|
&:last-child {
|
|
margin-bottom: .1rem;
|
|
}
|
|
|
|
.el-form-item__label {
|
|
padding-bottom: .06rem;
|
|
font-size: .27rem; /* 增大35%: .2rem * 1.35 = .27rem */
|
|
font-weight: 500;
|
|
color: #333;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.el-input,
|
|
.el-textarea {
|
|
|
|
.el-input__inner,
|
|
.el-textarea__inner {
|
|
font-size: .189rem; /* 增大35%: .14rem * 1.35 = .189rem */
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: .04rem;
|
|
transition: border-color 0.2s;
|
|
|
|
&:focus {
|
|
border-color: #409eff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-textarea__inner {
|
|
min-height: .9rem !important;
|
|
resize: vertical;
|
|
padding: .08rem .12rem;
|
|
}
|
|
|
|
.el-radio {
|
|
margin-right: .2rem;
|
|
|
|
.el-radio__label {
|
|
font-size: .189rem; /* 增大35%: .14rem * 1.35 = .189rem */
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 协议复选框样式
|
|
.agreement-checkbox {
|
|
margin-top: .15rem;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: .26rem; /* 增大35%: .18rem * 1.35 = .243rem */
|
|
line-height: 1.6;
|
|
color: #666;
|
|
|
|
::v-deep .el-checkbox__label {
|
|
font-size: .13rem; /* 增大35%: .12rem * 1.35 = .162rem */
|
|
line-height: 1.6;
|
|
color: #666;
|
|
}
|
|
|
|
span {
|
|
color: #275aff;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
|
|
// 二维码区域样式
|
|
.qrcode-section {
|
|
margin-top: .2rem;
|
|
padding: .15rem;
|
|
background: #f8f9fa;
|
|
border-radius: .06rem;
|
|
border: 1px solid #eee;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
img {
|
|
width: 1.2rem;
|
|
height: 1.2rem;
|
|
object-fit: contain;
|
|
margin-right: .15rem;
|
|
}
|
|
|
|
span {
|
|
font-size: .1755rem; /* 增大35%: .13rem * 1.35 = .1755rem */
|
|
color: #666;
|
|
line-height: 1.5;
|
|
}
|
|
}
|
|
|
|
// 提交按钮样式
|
|
.dialog-footer {
|
|
::v-deep .el-button {
|
|
min-width: 1rem;
|
|
font-size: .189rem; /* 增大35%: .14rem * 1.35 = .189rem */
|
|
border-radius: .04rem;
|
|
}
|
|
}
|
|
|
|
// 响应式适配
|
|
@media screen and (max-width: 750px) {
|
|
::v-deep .product-consult-dialog {
|
|
&.el-dialog {
|
|
width: 90% !important;
|
|
margin-top: 10vh !important;
|
|
|
|
.el-dialog__header {
|
|
padding: .15rem .2rem .08rem;
|
|
}
|
|
|
|
.el-dialog__body {
|
|
padding: .15rem .2rem;
|
|
max-height: 60vh;
|
|
}
|
|
}
|
|
}
|
|
|
|
.url-container {
|
|
display: block;
|
|
margin-top: .05rem;
|
|
|
|
.url {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: .06rem .12rem;
|
|
font-size: .297rem; /* 增大35%: .22rem * 1.35 = .297rem */
|
|
|
|
.copy-hint {
|
|
font-size: .162rem; /* 增大35%: .12rem * 1.35 = .162rem */
|
|
margin-left: .08rem;
|
|
}
|
|
}
|
|
|
|
.tooltip {
|
|
font-size: .135rem; /* 增大35%: .1rem * 1.35 = .135rem */
|
|
padding: .03rem .06rem;
|
|
}
|
|
}
|
|
|
|
.qrcode-section {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
|
|
img {
|
|
margin-right: 0;
|
|
margin-bottom: .1rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
:deep(.el-message) {
|
|
font-size: .216rem !important; /* 增大35%: .16rem * 1.35 = .216rem */
|
|
min-width: auto !important;
|
|
padding: .12rem .2rem !important;
|
|
border-radius: .08rem !important;
|
|
}
|
|
|
|
:deep(.el-message__content) {
|
|
font-size: .216rem !important; /* 增大35%: .16rem * 1.35 = .216rem */
|
|
line-height: 1.4 !important;
|
|
}
|
|
|
|
:deep(.el-message--success) {
|
|
background-color: #f0f9eb !important;
|
|
border-color: #e1f3d8 !important;
|
|
}
|
|
|
|
:deep(.el-message--success .el-message__content) {
|
|
color: #67c23a !important;
|
|
}
|
|
|
|
@media screen and (min-width: 751px) and (max-width: 1200px) {
|
|
::v-deep .product-consult-dialog {
|
|
&.el-dialog {
|
|
width: 70% !important;
|
|
}
|
|
}
|
|
}
|