This commit is contained in:
Your Name
2026-03-18 14:53:09 +08:00
parent 338b104d50
commit 7832514f28
315 changed files with 7071 additions and 1136 deletions
+59 -56
View File
@@ -57,7 +57,7 @@
<!-- 空状态 -->
<view v-if="!loading && cardList.length === 0" class="empty-state">
<uni-icons type="wallet" size="60" color="#999"></uni-icons>
<uni-icons type="wallet" size="80" color="#1890ff"></uni-icons>
<text class="empty-text">暂无就诊卡</text>
<view class="add-card-btn" @click="createCard">新建就诊卡</view>
</view>
@@ -204,39 +204,41 @@ const formatDate = (timestamp) => {
</script>
<style lang="less" scoped>
/* 适老化设计:50-80岁 - 大字号、高对比、大触控区 */
.card-container {
min-height: 100vh;
background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
padding-bottom: 40rpx;
background: linear-gradient(180deg, #e8f0fa 0%, #ffffff 100%);
padding-bottom: 56rpx;
}
.header {
background: #ffffff;
padding: 40rpx 30rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
padding: 48rpx 40rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
.header-title {
font-size: 40rpx;
font-size: 48rpx;
font-weight: bold;
color: #1890ff;
}
}
.card-list {
padding: 30rpx;
padding: 40rpx;
}
.card-item {
background: #ffffff;
border-radius: 20rpx;
padding: 30rpx;
margin-bottom: 24rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
border-radius: 28rpx;
padding: 44rpx;
margin-bottom: 36rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
transition: all 0.3s;
min-height: 200rpx;
&:active {
transform: scale(0.98);
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}
}
@@ -244,100 +246,100 @@ const formatDate = (timestamp) => {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
padding-bottom: 20rpx;
border-bottom: 2rpx solid #f0f0f0;
margin-bottom: 32rpx;
padding-bottom: 28rpx;
border-bottom: 4rpx solid #e8eaed;
}
.card-id {
.label {
font-size: 28rpx;
color: #666666;
font-size: 34rpx;
color: #555;
}
.value {
font-size: 32rpx;
font-size: 40rpx;
font-weight: bold;
color: #333333;
color: #1a1a1a;
}
}
.status-badge {
padding: 8rpx 20rpx;
border-radius: 20rpx;
font-size: 24rpx;
padding: 12rpx 28rpx;
border-radius: 28rpx;
font-size: 32rpx;
font-weight: 500;
&.status-confirmed {
background: #f6ffed;
color: #204e2b;
border: 2rpx solid #204e2b;
border: 4rpx solid #204e2b;
}
&.status-pending {
background: #fff7e6;
color: #fa8c16;
border: 2rpx solid #ffd591;
border: 4rpx solid #ffd591;
}
}
.card-info {
margin-bottom: 20rpx;
margin-bottom: 28rpx;
}
.info-row {
display: flex;
align-items: center;
margin-bottom: 16rpx;
margin-bottom: 24rpx;
.info-label {
font-size: 28rpx;
color: #666666;
min-width: 160rpx;
font-size: 34rpx;
color: #555;
min-width: 200rpx;
}
.info-value {
font-size: 30rpx;
color: #333333;
font-size: 36rpx;
color: #1a1a1a;
font-weight: 500;
}
}
.card-footer {
padding-top: 20rpx;
border-top: 2rpx solid #f0f0f0;
padding-top: 28rpx;
border-top: 4rpx solid #e8eaed;
}
.time-info {
display: flex;
align-items: center;
margin-bottom: 12rpx;
margin-bottom: 20rpx;
.time-label {
font-size: 24rpx;
color: #999999;
min-width: 140rpx;
font-size: 30rpx;
color: #555;
min-width: 180rpx;
}
.time-value {
font-size: 26rpx;
color: #666666;
font-size: 32rpx;
color: #555;
}
}
.view-count {
display: flex;
align-items: center;
margin-top: 8rpx;
margin-top: 12rpx;
.count-icon {
font-size: 28rpx;
margin-right: 8rpx;
font-size: 34rpx;
margin-right: 12rpx;
}
.count-text {
font-size: 24rpx;
color: #999999;
font-size: 30rpx;
color: #555;
}
}
@@ -346,37 +348,38 @@ const formatDate = (timestamp) => {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 0;
padding: 160rpx 0;
.empty-icon {
font-size: 120rpx;
margin-bottom: 30rpx;
font-size: 140rpx;
margin-bottom: 40rpx;
}
.empty-text {
font-size: 32rpx;
color: #999999;
margin-bottom: 40rpx;
font-size: 40rpx;
color: #555;
margin-bottom: 56rpx;
}
}
.add-card-btn {
padding: 24rpx 64rpx;
padding: 36rpx 88rpx;
background: #1890ff;
color: #ffffff;
font-size: 30rpx;
font-size: 40rpx;
font-weight: 500;
border-radius: 48rpx;
border-radius: 56rpx;
min-height: 100rpx;
}
.loading-state {
display: flex;
justify-content: center;
padding: 80rpx 0;
padding: 120rpx 0;
.loading-text {
font-size: 28rpx;
color: #999999;
font-size: 36rpx;
color: #555;
}
}
</style>
+1 -1
View File
@@ -1837,7 +1837,7 @@ const goBack = () => {
color: #333333;
background: transparent;
box-sizing: border-box;
min-height: 60rpx;
min-height: 80rpx;
display: block;
}