diff --git a/.cursor/rules/Code-Standards.mdc b/.cursor/rules/Code-Standards.mdc index 99af2df..fa8db67 100644 --- a/.cursor/rules/Code-Standards.mdc +++ b/.cursor/rules/Code-Standards.mdc @@ -6,4 +6,5 @@ alwaysApply: true 1. 写代码的时候要补充详细的中文注释(每个方法是干嘛的,为什么要这样写),如果是工作区,则所有项目都适用该规则 2. 注意不要生成太多的空行,上一部分代码和下一部分代码中间的空行不要大于2行 3. 有封装好的方法、组件需要复用,不要重复造轮子 -4. 小程序端的抽屉全部需要用page-container来防止用户意外退出页面 +4. 小程序端的抽屉全部需要用page-container来防止用户意外退出页面(记得使用v-if而不是v-show) +5. 数据库的(created_at、updated_at、deleted_at)统一使用时间戳,不要使用字符串,并且我在查询器中一级格式化成字符串了,无需再次格式化 diff --git a/components/AssistantConsultationShell.vue b/components/AssistantConsultationShell.vue index 49a8532..a3b3c38 100644 --- a/components/AssistantConsultationShell.vue +++ b/components/AssistantConsultationShell.vue @@ -20,7 +20,7 @@ diff --git a/subPackages/chat/chat.vue b/subPackages/chat/chat.vue index 2bc937d..732baad 100644 --- a/subPackages/chat/chat.vue +++ b/subPackages/chat/chat.vue @@ -117,7 +117,7 @@ {{ parsedContent.question }} - + {{ row.name || '药品' }} ×{{ row.quantity != null ? row.quantity : 1 }} diff --git a/subPackages/follow-up/medication-info.vue b/subPackages/follow-up/medication-info.vue index 489ff76..390a29a 100644 --- a/subPackages/follow-up/medication-info.vue +++ b/subPackages/follow-up/medication-info.vue @@ -88,7 +88,7 @@ {{ clinicQuestion }} 涉及药品 - + {{ row.name || '药品' }} ×{{ row.quantity != null ? row.quantity : 1 }} diff --git a/subPackages/my/my-drug/drug-list.vue b/subPackages/my/my-drug/drug-list.vue index aabd1c1..dc64e3e 100644 --- a/subPackages/my/my-drug/drug-list.vue +++ b/subPackages/my/my-drug/drug-list.vue @@ -164,10 +164,10 @@ 查看物流 - - - - + + 取消 + diff --git a/subPackages/my/myrecord-detail.vue b/subPackages/my/myrecord-detail.vue index 4afa75d..fbd64b7 100644 --- a/subPackages/my/myrecord-detail.vue +++ b/subPackages/my/myrecord-detail.vue @@ -135,7 +135,7 @@ - + @@ -305,7 +305,7 @@ - + {{ (it.content && it.content.drug_name) || '' }} diff --git a/subPackages/register/components/RegisterConfirmStep.vue b/subPackages/register/components/RegisterConfirmStep.vue index 035b151..bb70c54 100644 --- a/subPackages/register/components/RegisterConfirmStep.vue +++ b/subPackages/register/components/RegisterConfirmStep.vue @@ -1,8 +1,8 @@