fix: 1.将主页和法务助手对话设置成手机也能够正确加载的响应式布局。
2. 修改合同重新上传模板的可接受文件类型,修改对接的上传模板对应的接口。 3. 交叉评查任务列表去除任务名称的点击效果。 4. 交叉评查文件预览在点击完成评查的按钮后会返回任务列表并打开任务的文档列表。 5.修复点击完成评查按钮造成页面刷新。 6. 修复创建任务的第3步无法返回列表。
This commit is contained in:
+48
-2
@@ -162,7 +162,31 @@
|
||||
.sidebar.collapsed {
|
||||
@apply w-20;
|
||||
}
|
||||
|
||||
|
||||
/* 移动端侧边栏遮罩层 */
|
||||
.sidebar-overlay {
|
||||
@apply fixed inset-0 bg-black bg-opacity-50 z-[99];
|
||||
animation: fadeIn 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* 移动端侧边栏样式 */
|
||||
.sidebar-mobile {
|
||||
@apply shadow-[0_0_20px_rgba(0,0,0,0.15)];
|
||||
}
|
||||
|
||||
.sidebar-mobile.collapsed {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.sidebar-menu {
|
||||
@apply flex-1 overflow-y-auto py-4 px-3;
|
||||
}
|
||||
@@ -277,7 +301,29 @@
|
||||
@apply p-6;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 移动端响应式样式 (768px以下) */
|
||||
@media (max-width: 768px) {
|
||||
/* 移动端主内容区域无左边距 */
|
||||
.main-content {
|
||||
@apply ml-0;
|
||||
}
|
||||
|
||||
.main-content.sidebar-collapsed {
|
||||
@apply ml-0;
|
||||
}
|
||||
|
||||
/* 移动端侧边栏默认隐藏 */
|
||||
.sidebar {
|
||||
@apply w-[280px];
|
||||
}
|
||||
|
||||
/* 移动端侧边栏折叠时完全隐藏 */
|
||||
.sidebar.collapsed {
|
||||
@apply w-0;
|
||||
}
|
||||
}
|
||||
|
||||
@screen md {
|
||||
.sidebar-toggle {
|
||||
@apply block;
|
||||
|
||||
@@ -163,4 +163,184 @@
|
||||
background-position: center bottom;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.logout-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.5rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #666;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.logout-button:hover {
|
||||
background-color: rgba(0, 104, 74, 0.05);
|
||||
color: #00684a;
|
||||
}
|
||||
|
||||
.logout-button i {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
/* ===== 移动端响应式样式 ===== */
|
||||
@media (max-width: 768px) {
|
||||
/* 头部样式调整 */
|
||||
.header {
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 40px;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.logo-text-en {
|
||||
font-size: 0.65rem;
|
||||
margin-top: -0.15rem;
|
||||
}
|
||||
|
||||
/* 隐藏日期时间以节省空间 */
|
||||
.datetime {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.username {
|
||||
display: none; /* 移动端隐藏用户名,只显示头像 */
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
/* 主内容区域调整 */
|
||||
.index-main-content {
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
.index-main-content-container {
|
||||
width: 95%;
|
||||
padding: 1rem 0;
|
||||
transform: translateY(-2rem);
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 2.5rem;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
/* 模块容器改为纵向排列 */
|
||||
.modules-container {
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
margin-bottom: 1.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* 模块卡片调整 */
|
||||
.module-card {
|
||||
width: 100%;
|
||||
max-width: 340px;
|
||||
height: 100px;
|
||||
padding: 0 1.5rem;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.module-card img {
|
||||
width: 48px !important;
|
||||
height: 48px !important;
|
||||
}
|
||||
|
||||
.module-name {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.logout-button {
|
||||
padding: 0.4rem;
|
||||
}
|
||||
|
||||
.logout-button i {
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* 超小屏幕 (手机竖屏) */
|
||||
@media (max-width: 480px) {
|
||||
.header {
|
||||
padding: 0.4rem 0.5rem;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.logo-text-en {
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.15rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.module-card {
|
||||
max-width: 300px;
|
||||
height: 90px;
|
||||
padding: 0 1.25rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.module-card img {
|
||||
width: 42px !important;
|
||||
height: 42px !important;
|
||||
}
|
||||
|
||||
.module-name {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.modules-container {
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* 平板横屏 */
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
.index-main-content-container {
|
||||
width: 85%;
|
||||
transform: translateY(-5rem);
|
||||
}
|
||||
|
||||
.modules-container {
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.module-card {
|
||||
width: 260px;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.75rem;
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user