通用模式兼容摩卡和飞书,添加通信工具组件,添加未开通会员面板
This commit is contained in:
@@ -9,7 +9,7 @@ $radius-sm: 12px;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
width: 380px;
|
||||
min-height: 470px;
|
||||
//min-height: 470px;
|
||||
max-height: calc(100vh - 20px);
|
||||
background: #fff;
|
||||
border-radius: $radius-lg;
|
||||
@@ -24,26 +24,27 @@ $radius-sm: 12px;
|
||||
|
||||
/* 收起状态 */
|
||||
&--collapsed {
|
||||
width: auto;
|
||||
width: 380px;
|
||||
min-height: auto;
|
||||
max-height: none;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
border-radius: 50%;
|
||||
border-radius: $radius-lg;
|
||||
}
|
||||
}
|
||||
|
||||
/* 收起状态的 logo 圆圈 */
|
||||
.op-collapsed-logo {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
||||
/* 收起状态:横条样式(logo + 文字 + 向下箭头) */
|
||||
.op-collapsed-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
gap: 8px;
|
||||
padding: 14px 20px;
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
cursor: grab;
|
||||
transition: box-shadow 0.2s;
|
||||
|
||||
&:hover {
|
||||
@@ -51,6 +52,27 @@ $radius-sm: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.op-collapsed-text {
|
||||
font-size: 13px;
|
||||
color: #555;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.op-collapsed-arrow {
|
||||
flex-shrink: 0;
|
||||
color: #666;
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
transition: background 0.15s;
|
||||
|
||||
&:hover {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
}
|
||||
|
||||
/* 拖拽提示气泡 */
|
||||
.op-drag-tooltip {
|
||||
position: absolute;
|
||||
@@ -70,7 +92,7 @@ $radius-sm: 12px;
|
||||
|
||||
/* 内层容器:承载 padding 和滚动 */
|
||||
.op-inner {
|
||||
padding: 20px 20px 24px;
|
||||
padding: 20px 20px 10px 20px;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
@@ -95,6 +117,7 @@ $radius-sm: 12px;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
gap: 12px;
|
||||
cursor: grab;
|
||||
|
||||
&-left {
|
||||
display: flex;
|
||||
@@ -189,19 +212,62 @@ $radius-sm: 12px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
margin-bottom: 6px;
|
||||
transition: opacity 0.2s;
|
||||
transition: opacity 0.2s, background 0.2s;
|
||||
|
||||
&:hover { opacity: 0.85; }
|
||||
&--filling {
|
||||
background: #6b7280;
|
||||
}
|
||||
|
||||
&:hover:not(:disabled) { opacity: 0.85; }
|
||||
&:disabled { opacity: 0.7; cursor: not-allowed; }
|
||||
}
|
||||
|
||||
/* 填写完成状态:重置按钮 + 完成提示 */
|
||||
.op-fill-done-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.op-reset-btn {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #f0fafa;
|
||||
border: 1px solid #e0f0f0;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
|
||||
&:hover {
|
||||
background: #ddf5f5;
|
||||
}
|
||||
}
|
||||
|
||||
.op-fill-done-label {
|
||||
flex: 1;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #6dd4a0;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.op-credits {
|
||||
&-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2px;
|
||||
margin-bottom: 20px;
|
||||
padding: 0 2px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&-text {
|
||||
@@ -330,39 +396,6 @@ $radius-sm: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 未登录提示区域 */
|
||||
.op-login-prompt {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 60px 20px;
|
||||
}
|
||||
|
||||
.op-login-text {
|
||||
font-size: 15px;
|
||||
color: #555;
|
||||
margin-bottom: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.op-login-btn {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: $primary;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: $radius-md;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s;
|
||||
|
||||
&:hover { opacity: 0.85; }
|
||||
}
|
||||
|
||||
|
||||
/* ============ 字段列表区域(待填写 / 已填写) ============ */
|
||||
.op-field-section {
|
||||
margin-top: 16px;
|
||||
@@ -481,6 +514,15 @@ $radius-sm: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* ============ 版本号 ============ */
|
||||
.op-version {
|
||||
text-align: right;
|
||||
font-size: 10px;
|
||||
color: #bbb;
|
||||
padding: 4px 10px 6px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* ============ 助手已记住的表单 弹窗 ============ */
|
||||
.op-cache-modal-mask {
|
||||
position: fixed;
|
||||
@@ -674,3 +716,66 @@ $radius-sm: 12px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============ 非会员状态 ============ */
|
||||
.op-nonmember {
|
||||
padding: 0 20px 20px;
|
||||
|
||||
&-divider {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
border-top: 0.5px solid rgba(100, 116, 139, 0.4);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&-title {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
line-height: 19px;
|
||||
color: #132034;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
&-desc {
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 15px;
|
||||
color: #64748B;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
&-btn {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
background: #52CAD1;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s;
|
||||
|
||||
&:hover {
|
||||
opacity: 0.88;
|
||||
}
|
||||
}
|
||||
|
||||
&-refresh {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 15px;
|
||||
text-align: center;
|
||||
text-decoration-line: underline;
|
||||
color: #64748B;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #475569;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user