Просмотр исходного кода

feat(patient-family): 更新功能模块名称及描述

- 将"健康知识"功能模块更名为"疑问解答"
- 更新对应的功能描述文案
- 移除今日提醒卡片组件及相关逻辑
- 调整功能点击事件处理逻辑
mcbaiyun 1 месяц назад
Родитель
Сommit
693573f342
1 измененных файлов с 5 добавлено и 30 удалено
  1. 5 30
      src/pages/patient-family/index/index.vue

+ 5 - 30
src/pages/patient-family/index/index.vue

@@ -30,43 +30,18 @@
               <text class="item-desc">管理被监护的家人</text>
             </view>
           </view>
-          <view class="function-item purple" @click="onItemClick('健康知识')">
+          <view class="function-item purple" @click="onItemClick('疑问解答')">
             <view class="item-content">
               <view class="title-row">
                 <view class="item-line"></view>
-                <text class="item-title">健康知识</text>
+                <text class="item-title">疑问解答</text>
               </view>
-              <text class="item-desc">获取健康相关知识</text>
+              <text class="item-desc">解答您的健康疑问</text>
             </view>
           </view>
         </view>
       </view>
 
-      <view class="today-reminder-card">
-        <view class="card-header">
-          <text class="card-title">今日提醒</text>
-        </view>
-        <view class="card-content">
-          <view class="reminder-item" @click="onItemClick('健康监控')">
-            <view class="reminder-icon">
-              <image src="/static/icons/remixicon/time-line.svg" class="icon" />
-            </view>
-            <view class="reminder-text">
-              <text class="reminder-number">{{ todayReminders.medicationCount }}</text>
-              <text class="reminder-label">用药提醒</text>
-            </view>
-          </view>
-          <view class="reminder-item" @click="onItemClick('健康监控')">
-            <view class="reminder-icon">
-              <image src="/static/icons/remixicon/alert-line.svg" class="icon" />
-            </view>
-            <view class="reminder-text">
-              <text class="reminder-number">{{ todayReminders.abnormalCount }}</text>
-              <text class="reminder-label">异常数据</text>
-            </view>
-          </view>
-        </view>
-      </view>
 
       <view class="family-activity-card">
         <view class="card-header">
@@ -258,8 +233,8 @@ function handleScan(res: any) {
 function onItemClick(type: string) {
   if (type === '家人管理') {
     uni.navigateTo({ url: '/pages/patient-family/index/my-family' })
-  } else if (type === '健康知识') {
-    uni.showToast({ title: '健康知识功能开发中', icon: 'none' })
+  } else if (type === '疑问解答') {
+    uni.showToast({ title: '疑问解答功能开发中', icon: 'none' })
   } else {
     uni.showToast({ title: '功能正在开发中', icon: 'none' })
   }