From 5564c92d333c110a4ba5a27105cd4559049be4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Mon, 1 Jun 2026 12:36:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BC=98=E5=8C=96=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9A=84UI=E3=80=81=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=88=B0=E6=96=B0=E7=9A=84api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPackages/my/my-drug/drug-info.vue | 7 +++---- subPackages/my/my-drug/drug-list.vue | 4 ++-- subPackages/product/symptoms.vue | 18 +++++++++++++----- utils/utils.js | 4 ++-- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/subPackages/my/my-drug/drug-info.vue b/subPackages/my/my-drug/drug-info.vue index 2e3c5b5..3100819 100644 --- a/subPackages/my/my-drug/drug-info.vue +++ b/subPackages/my/my-drug/drug-info.vue @@ -61,7 +61,7 @@ + v-if="orderInfo.ProductOrder.prescription_type==1"> {{item.drug_name}} x{{item.number}} @@ -69,7 +69,7 @@ - + @@ -695,9 +695,8 @@ export default { width: 750rpx; max-height: 100%; min-height: 100vh; - padding-bottom: env(safe-area-inset-bottom); background: #F5F5F5; - + padding-bottom: 500rpx; /* 新增:物流提示样式 */ .order-text-tip { background: #e6f3ff; diff --git a/subPackages/my/my-drug/drug-list.vue b/subPackages/my/my-drug/drug-list.vue index d3b5f68..96b02aa 100644 --- a/subPackages/my/my-drug/drug-list.vue +++ b/subPackages/my/my-drug/drug-list.vue @@ -60,7 +60,7 @@ - + @@ -89,7 +89,7 @@ - + diff --git a/subPackages/product/symptoms.vue b/subPackages/product/symptoms.vue index 67c4d38..ec5ca0c 100644 --- a/subPackages/product/symptoms.vue +++ b/subPackages/product/symptoms.vue @@ -245,7 +245,7 @@ import { getOrderTextApi, getStoreDrugDetailApi } from "@/request/api/product"; import { genOrderApi, getPrescriptionStatusApi } from "@/request/api/order"; import { getCartCountsApi, saveCartApi } from "@/request/api/cart"; -import { canShowFunction, canShowUsage, canShowInstruction, isPrescriptionApprovedStatus } from '@/common/utils/drug'; +import { canShowFunction, canShowUsage, canShowInstruction, isHealthFood, isPrescriptionApprovedStatus } from '@/common/utils/drug'; export default { data() { return { @@ -317,13 +317,18 @@ export default { return (this.productDetail.supplier && this.productDetail.supplier.name) || ''; }, showFunctionSection() { - return canShowFunction(this.productDetail, this.prescriptionApproved); + if (isHealthFood(this.productDetail)) return false; + return canShowFunction(this.productDetail, this.prescriptionApproved) + || !!(this.productDetail.function || this.productDetail.indications); }, showUsageSection() { - return canShowUsage(this.productDetail, this.prescriptionApproved); + if (isHealthFood(this.productDetail)) return false; + return canShowUsage(this.productDetail, this.prescriptionApproved) + || !!this.productDetail.usage; }, showInstructionSection() { - return canShowInstruction(this.productDetail, this.prescriptionApproved); + return canShowInstruction(this.productDetail, this.prescriptionApproved) + || !!this.productDetail.instruction; } }, onLoad(options) { @@ -402,8 +407,11 @@ export default { this.getOrderText(); const params = { id: this.productDetail.id, - store_id: this.orderStoreId || uni.getStorageSync('store_id') || '11001', }; + const storeId = this.orderStoreId || uni.getStorageSync('store_id'); + if (storeId) { + params.store_id = storeId; + } if (this.fromOrderId) { params.order_id = this.fromOrderId; } diff --git a/utils/utils.js b/utils/utils.js index d0b9d95..62c7394 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -6,8 +6,8 @@ export function checkDev(key = '') { // 判断某些模块是否开启 switch (key) { case 'dev': - // return false; - return true; + return false; + // return true; case 'open-im': // return false; return true;