清理css样式

This commit is contained in:
ywyonui 2025-09-12 20:07:35 +08:00
parent 8c79a8e745
commit efa4bb3732
4 changed files with 266 additions and 312 deletions

View File

@ -206,7 +206,6 @@ const tjDm = debounce(async () => {
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.section-title {
font-size: 32rpx;
@ -217,6 +216,7 @@ const tjDm = debounce(async () => {
justify-content: space-between;
align-items: center;
}
}
.class-tip {
display: flex;
@ -245,7 +245,6 @@ const tjDm = debounce(async () => {
background-color: #fff;
box-shadow: 0 -2rpx 8rpx rgba(0, 0, 0, 0.1);
z-index: 10;
}
.submit-btn {
width: 100%;
@ -262,6 +261,7 @@ const tjDm = debounce(async () => {
color: #999;
}
}
}
.loading-overlay {
position: fixed;
@ -274,7 +274,6 @@ const tjDm = debounce(async () => {
justify-content: center;
align-items: center;
z-index: 1000;
}
.loading-content {
background-color: #fff;
@ -283,4 +282,5 @@ const tjDm = debounce(async () => {
color: #333;
font-size: 28rpx;
}
}
</style>

View File

@ -174,59 +174,6 @@ defineExpose({
background-color: #f5f5f5;
}
.status-tag {
font-size: 20rpx;
padding: 6rpx 16rpx;
border-radius: 8rpx;
display: flex;
align-items: center;
gap: 4rpx;
&.clickable {
cursor: pointer;
transition: all 0.2s;
&:hover {
opacity: 0.8;
transform: scale(1.05);
}
}
&.readonly {
opacity: 0.8;
cursor: not-allowed;
}
.status-arrow {
font-size: 16rpx;
opacity: 0.8;
}
}
.status-normal {
background-color: #e6f7ff;
color: #52c41a;
}
.status-leave {
background-color: #fff7e6;
color: #faad14;
}
.status-absent {
background-color: #fff2f0;
color: #ff4d4f;
}
.status-unpaid {
background-color: #f9f0ff;
color: #722ed1;
}
.status-unregistered {
background-color: #fff0f6;
color: #eb2f96;
}
.flex-row {
display: flex;
@ -241,13 +188,6 @@ defineExpose({
overflow: hidden;
}
.mr-8 {
margin-right: 16rpx;
}
.mb-8 {
margin-bottom: 16rpx;
}
.font-14 {
font-size: 28rpx;

View File

@ -321,7 +321,6 @@ defineExpose({
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.section-title {
font-size: 32rpx;
@ -341,6 +340,7 @@ defineExpose({
padding: 10rpx 0;
border-bottom: 1px solid #f0f0f0;
}
}
.refresh-btn {
font-size: 24rpx;
@ -357,14 +357,12 @@ defineExpose({
border-radius: 12rpx;
flex-wrap: wrap;
gap: 60rpx;
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
min-width: 120rpx;
}
.stat-number {
font-size: 36rpx;
@ -397,6 +395,8 @@ defineExpose({
font-size: 24rpx;
color: #666;
}
}
}
.xs-section {
margin-bottom: 30rpx;
@ -410,16 +410,14 @@ defineExpose({
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20rpx;
}
.xs-item {
position: relative;
border-radius: 16rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
transition: all 0.2s;
}
.xs-item:hover {
&:hover {
transform: translateY(-2rpx);
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
}
@ -434,7 +432,6 @@ defineExpose({
align-items: center;
justify-content: center;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.05);
}
.xs-avatar {
width: 80rpx;
@ -442,6 +439,9 @@ defineExpose({
border-radius: 50%;
background-color: #f5f5f5;
}
}
}
}
.status-tag {
font-size: 20rpx;

View File

@ -335,12 +335,10 @@ onMounted(() => {
<style lang="scss" scoped>
.dm-detail-content {
padding: 20rpx;
}
.loading-state, .error-state {
text-align: center;
padding: 100rpx 0;
}
.loading-icon, .error-icon {
font-size: 80rpx;
@ -357,6 +355,7 @@ onMounted(() => {
.error-text {
color: #ff4d4f;
}
}
.retry-btn {
margin-top: 20rpx;
@ -367,6 +366,7 @@ onMounted(() => {
border-radius: 8rpx;
font-size: 28rpx;
}
}
.section {
background-color: #fff;
@ -374,7 +374,6 @@ onMounted(() => {
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.section-title {
font-size: 32rpx;
@ -391,6 +390,7 @@ onMounted(() => {
padding: 10rpx 0;
border-bottom: 1px solid #f0f0f0;
}
}
.xs-section {
margin-bottom: 30rpx;
@ -400,7 +400,6 @@ onMounted(() => {
display: grid;
grid-template-columns: 1fr;
gap: 16rpx;
}
.info-item {
display: flex;
@ -408,7 +407,6 @@ onMounted(() => {
padding: 16rpx;
background-color: #f8f9fa;
border-radius: 8rpx;
}
.info-label {
font-size: 28rpx;
@ -422,6 +420,8 @@ onMounted(() => {
color: #333;
font-weight: bold;
}
}
}
.stats-container {
display: grid;
@ -431,14 +431,12 @@ onMounted(() => {
padding: 20rpx;
background-color: #f8f9fa;
border-radius: 12rpx;
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.stat-number {
font-size: 36rpx;
@ -471,6 +469,8 @@ onMounted(() => {
font-size: 24rpx;
color: #666;
}
}
}
.teacher-list, .xs-list {
margin-bottom: 30rpx;
@ -480,26 +480,39 @@ onMounted(() => {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
.teacher-item {
position: relative;
border-radius: 16rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
transition: all 0.2s;
&:hover {
transform: translateY(-2rpx);
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
}
}
}
.xs-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20rpx;
}
.teacher-item, .xs-item {
.xs-item {
position: relative;
border-radius: 16rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
transition: all 0.2s;
}
.teacher-item:hover, .xs-item:hover {
&:hover {
transform: translateY(-2rpx);
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
}
}
}
.teacher-item, .xs-item {
.avatar-container {
width: 92rpx;
height: 92rpx;
@ -510,7 +523,6 @@ onMounted(() => {
align-items: center;
justify-content: center;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.05);
}
.teacher-avatar, .xs-avatar {
width: 80rpx;
@ -518,6 +530,8 @@ onMounted(() => {
border-radius: 50%;
background-color: #f5f5f5;
}
}
}
.status-tag {
font-size: 20rpx;