|
|
@@ -45,7 +45,7 @@
|
|
|
enhanced="true"
|
|
|
show-scrollbar="false"
|
|
|
always-bounce-vertical="true"
|
|
|
- :style="{ height: '200px' }"
|
|
|
+ :style="{ height: '200upx' }"
|
|
|
>
|
|
|
<div class="date-buttons">
|
|
|
<button
|
|
|
@@ -141,33 +141,33 @@ export default {
|
|
|
background-color: #fff;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- padding: 10px;
|
|
|
+ padding: 10upx;
|
|
|
box-sizing: border-box;
|
|
|
overflow-x: hidden;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
.birthday-section {
|
|
|
- margin-bottom: 15px;
|
|
|
+ margin-bottom: 15upx;
|
|
|
}
|
|
|
|
|
|
.section-title {
|
|
|
- font-size:15px;
|
|
|
+ font-size: 15upx;
|
|
|
font-weight: bold;
|
|
|
- margin-bottom: 6px;
|
|
|
+ margin-bottom: 6upx;
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.type-buttons {
|
|
|
display: flex;
|
|
|
- gap: 8px;
|
|
|
+ gap: 8upx;
|
|
|
justify-content: space-around;
|
|
|
.birthday-type-btn {
|
|
|
- min-width: 50px;
|
|
|
- height: 30px;
|
|
|
- font-size: 12px;
|
|
|
- border-radius: 4px;
|
|
|
- border: 1px solid #dddddd;
|
|
|
+ min-width: 50upx;
|
|
|
+ height: 30upx;
|
|
|
+ font-size: 12upx;
|
|
|
+ border-radius: 4upx;
|
|
|
+ border: 1upx solid #dddddd;
|
|
|
background-color: #F5F5F5;
|
|
|
color: #333;
|
|
|
display: flex;
|
|
|
@@ -190,19 +190,19 @@ export default {
|
|
|
.month-buttons {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- gap: 3px;
|
|
|
+ gap: 3upx;
|
|
|
}
|
|
|
|
|
|
.month-button {
|
|
|
- width: 30px;
|
|
|
- height: 30px;
|
|
|
+ width: 30upx;
|
|
|
+ height: 30upx;
|
|
|
border-radius: 50%;
|
|
|
- border: 1px solid #ddd;
|
|
|
+ border: 1upx solid #ddd;
|
|
|
background-color: #fff;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- font-size: 12px;
|
|
|
+ font-size: 12upx;
|
|
|
transition: all 0.2s;
|
|
|
|
|
|
&.active {
|
|
|
@@ -210,7 +210,7 @@ export default {
|
|
|
color: white;
|
|
|
border-color: #0076FF;
|
|
|
transform: scale(1.1);
|
|
|
- box-shadow: 0 2px 4px rgba(0, 118, 255, 0.2);
|
|
|
+ box-shadow: 0 2upx 4upx rgba(0, 118, 255, 0.2);
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
@@ -223,11 +223,11 @@ export default {
|
|
|
}
|
|
|
|
|
|
.date-buttons-wrapper {
|
|
|
- height: 120px;
|
|
|
+ height: 120upx;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
- border: 1px solid #e0e0e0;
|
|
|
- border-radius: 6px;
|
|
|
+ border: 1upx solid #e0e0e0;
|
|
|
+ border-radius: 6upx;
|
|
|
background-color: #f8f9fa;
|
|
|
}
|
|
|
|
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
- padding: 5px 0;
|
|
|
+ padding: 5upx 0;
|
|
|
-webkit-overflow-scrolling: touch; /* 平滑滚动 */
|
|
|
}
|
|
|
|
|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
- height: 20px;
|
|
|
+ height: 20upx;
|
|
|
pointer-events: none;
|
|
|
z-index: 2;
|
|
|
}
|
|
|
@@ -262,11 +262,11 @@ export default {
|
|
|
/* 右侧滚动条指示 */
|
|
|
.scroll-bar-indicator {
|
|
|
position: absolute;
|
|
|
- top: 10px;
|
|
|
- bottom: 10px;
|
|
|
- right: 2px;
|
|
|
- width: 3px;
|
|
|
- border-radius: 3px;
|
|
|
+ top: 10upx;
|
|
|
+ bottom: 10upx;
|
|
|
+ right: 2upx;
|
|
|
+ width: 3upx;
|
|
|
+ border-radius: 3upx;
|
|
|
background-color: rgba(0, 118, 255, 0.2);
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
@@ -275,22 +275,22 @@ export default {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
justify-content: center;
|
|
|
- padding: 5px;
|
|
|
+ padding: 5upx;
|
|
|
/* 确保内容足够高,显示滚动效果 */
|
|
|
- min-height: 140px;
|
|
|
+ min-height: 140upx;
|
|
|
}
|
|
|
|
|
|
.date-button {
|
|
|
- width: 30px;
|
|
|
- height: 30px;
|
|
|
+ width: 30upx;
|
|
|
+ height: 30upx;
|
|
|
border-radius: 50%;
|
|
|
- border: 1px solid #ddd;
|
|
|
+ border: 1upx solid #ddd;
|
|
|
background-color: #fff;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- font-size: 12px;
|
|
|
- margin: 2px;
|
|
|
+ font-size: 12upx;
|
|
|
+ margin: 2upx;
|
|
|
transition: all 0.2s;
|
|
|
|
|
|
&.active {
|
|
|
@@ -298,7 +298,7 @@ export default {
|
|
|
color: white;
|
|
|
border-color: #0076FF;
|
|
|
transform: scale(1.1);
|
|
|
- box-shadow: 0 2px 4px rgba(0, 118, 255, 0.2);
|
|
|
+ box-shadow: 0 2upx 4upx rgba(0, 118, 255, 0.2);
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
@@ -309,19 +309,19 @@ export default {
|
|
|
.birthday-actions {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
- gap: 8px;
|
|
|
- margin-top: 10px;
|
|
|
+ gap: 8upx;
|
|
|
+ margin-top: 10upx;
|
|
|
|
|
|
.birthday-action-btn {
|
|
|
- min-width: 60px;
|
|
|
- height: 28px;
|
|
|
- font-size: 12px;
|
|
|
- border-radius: 4px;
|
|
|
+ min-width: 60upx;
|
|
|
+ height: 28upx;
|
|
|
+ font-size: 12upx;
|
|
|
+ border-radius: 4upx;
|
|
|
text-align: center;
|
|
|
line-height: 1;
|
|
|
- padding: 8px;
|
|
|
+ padding: 8upx;
|
|
|
margin: 0;
|
|
|
- border: 1px solid;
|
|
|
+ border: 1upx solid;
|
|
|
|
|
|
&.save-btn {
|
|
|
background-color: #0076FF;
|