From 1e96017f8e734f727101c233fe752fdb7b421989 Mon Sep 17 00:00:00 2001 From: ynmlzdwsp <2727940448@qq.com> Date: Sat, 6 Jan 2024 15:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=81=9A=E9=A2=84=E6=B5=8B?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/index.css | 4 ++-- src/components/index.vue | 26 +++++++------------------- src/components/myAside.vue | 9 +++++++-- 3 files changed, 16 insertions(+), 23 deletions(-) diff --git a/src/assets/css/index.css b/src/assets/css/index.css index f128908..f45dec4 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -43,8 +43,8 @@ body { /* 模块化背景色及透明度 */ .background-opacity { - /*background: var(--background);*/ - /*opacity: 0.88;*/ + background-color: var(--background); + opacity: 0.88; } .my-el-image { diff --git a/src/components/index.vue b/src/components/index.vue index 104cc9f..34a8464 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -73,7 +73,7 @@
- +
@@ -88,13 +88,11 @@ - - - - - - - - - - - - -
-
+
{ diff --git a/src/components/myAside.vue b/src/components/myAside.vue index afe12ff..f0e8222 100644 --- a/src/components/myAside.vue +++ b/src/components/myAside.vue @@ -98,7 +98,7 @@ style="margin-top: 30px;padding: 25px 25px 5px;border-radius: 10px;animation: hideToShow 1s ease-in-out">
- 药品详情 + 药品简述
@@ -127,7 +127,8 @@
- {{ item.admire }}元 + + 500元
@@ -191,6 +192,10 @@ this.getAdmire(); }, methods: { + updateDrugName(drugName) { + this.drugName = drugName; + this.selectDrugDetails(); + }, selectDrugDetails(){ selectDetails(this.drugName).then(response => { this.drugDetails = response;