consumer模块完成度95%,准备部署消费者端测试

This commit is contained in:
cyh666666
2026-03-05 08:45:00 +08:00
parent cceb556c62
commit 7f7f723d93
1043 changed files with 53958 additions and 3445 deletions

View File

@@ -1,4 +1,4 @@
<!-- pages/mall/consumer/index.uvue -->
<!-- pages/mall/consumer/index.uvue -->
<template>
<view class="medic-home">
<!-- 智能顶部导航栏 - 添加滚动隐藏效果 -->
@@ -151,7 +151,7 @@
<text class="service-desc">三甲医生在线</text>
</view>
<view class="service-card" @click="navigateToPrescription">
<view class="service-icon" style="background: #4CAF50;">
<view class="service-icon" style="background: #ff5000;">
<text class="service-icon-text">📋</text>
</view>
<text class="service-name">电子处方</text>
@@ -595,7 +595,7 @@ const familyItems = [
name: '消毒酒精',
desc: '环境消毒',
icon: '🧪',
color: '#4CAF50',
color: '#ff5000',
categoryId: 'external'
},
{
@@ -1032,9 +1032,9 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
top: 0;
left: 0;
right: 0;
background-color: #4CAF50;
background-color: #ff5000;
z-index: 1000;
box-shadow: 0 2px 12px rgba(76, 175, 80, 0.15);
box-shadow: 0 2px 12px rgba(255, 80, 0, 0.15);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@@ -1244,7 +1244,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
.tab-pill.active .tab-text {
color: #4CAF50;
color: #ff5000;
font-weight: bold;
}
@@ -1256,7 +1256,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
.section-title.active {
color: #4CAF50;
color: #ff5000;
font-size: 20px;
}
@@ -1292,7 +1292,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
.category-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-color: var(--card-color, #4CAF50);
border-color: var(--card-color, #ff5000);
}
/* 二级分类样式 */
@@ -1371,7 +1371,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
width: 44px;
height: 44px;
border-radius: 22px;
background: var(--card-color, #4CAF50);
background: var(--card-color, #ff5000);
display: flex;
align-items: center;
justify-content: center;
@@ -1494,7 +1494,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
.news-more {
font-size: 14px;
color: #4CAF50;
color: #ff5000;
/* cursor: pointer; removed for uvue support */
}
@@ -1663,7 +1663,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
.section-icon {
font-size: 20px;
color: #4CAF50;
color: #ff5000;
margin-right: 8px; /* Replacement for gap */
}
@@ -1697,9 +1697,9 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
.sort-tab.active {
background: #4CAF50;
background: #ff5000;
color: white;
border-color: #4CAF50;
border-color: #ff5000;
}
.sort-tab:hover {
@@ -1707,7 +1707,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
.sort-tab.active:hover {
background: #388E3C;
background: #e64a00;
}
/* 产品网格 */
@@ -1786,7 +1786,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
align-items: center;
justify-content: center;
/* gap: 6px; removed */
background: #4CAF50;
background: #ff5000;
color: white;
padding: 8px 12px;
border-radius: 8px;
@@ -1918,9 +1918,9 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
.filter-item.active {
background: #4CAF50;
background: #ff5000;
color: white;
border-color: #4CAF50;
border-color: #ff5000;
}
.filter-item:hover {
@@ -1928,7 +1928,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
.filter-item.active:hover {
background: #388E3C;
background: #e64a00;
}
.recommend-grid {
@@ -2055,7 +2055,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
width: 36px;
height: 36px;
border-radius: 18px;
background: #4CAF50;
background: #ff5000;
display: flex;
align-items: center;
justify-content: center;
@@ -2064,7 +2064,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
.add-to-cart:hover {
background: #388E3C;
background: #e64a00;
transform: scale(1.1);
}
@@ -2142,7 +2142,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
width: 32px;
height: 32px;
border: 3px solid #f0f0f0;
border-top-color: #4CAF50;
border-top-color: #ff5000;
border-radius: 16px;
margin-bottom: 12px;
}
@@ -2642,7 +2642,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
.sort-tab.active,
.filter-item.active {
background: #4CAF50;
background: #ff5000;
color: white;
}
@@ -2653,12 +2653,12 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
.sort-tab.active:hover,
.filter-item.active:hover {
background: #388E3C;
background: #e64a00;
}
.nav-tool-item {
background: rgba(76, 175, 80, 0.2);
color: #4CAF50;
background: rgba(255, 80, 0, 0.2);
color: #ff5000;
}
.manufacturer,
@@ -2669,3 +2669,4 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
}
}
</style>