From 0e85f62cd9a3355a0028e3b6fc0975dbcc0c9341 Mon Sep 17 00:00:00 2001
From: "1747191978@qq.com" <1942943850@qq.com>
Date: Thu, 3 Apr 2025 10:32:43 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E6=9F=A5=E7=BB=93=E8=AE=BA=E6=98=BE?=
 =?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../src/views/screening/h5Result.vue          | 136 +++---------------
 .../src/views/screening/h5eva.vue             |   4 -
 2 files changed, 23 insertions(+), 117 deletions(-)

diff --git a/acupuncture-前台/src/views/screening/h5Result.vue b/acupuncture-前台/src/views/screening/h5Result.vue
index 76905083..de242e74 100644
--- a/acupuncture-前台/src/views/screening/h5Result.vue
+++ b/acupuncture-前台/src/views/screening/h5Result.vue
@@ -24,11 +24,15 @@
         <span>{{ form["SCWJ-SMXL"] || "-" }}%</span>
       </div>
     </div>
-    <div class="card">
-      属于<span :class="`BIMTips${BMIVerdict[form['SCWJ-JL']]}`">{{
-        form["SCWJ-JL"] || "-"
-      }}</span
-      >型肥胖,建议扫码关注医院公众号,预约体重管理中心医师进一步评估。
+    <div class="card" v-if="weightShow || sleepShow">
+      <span v-if="weightShow">
+        属于<span :class="`BIMTips${BMIVerdict[form['SCWJ-JL']]}`">{{
+          form["SCWJ-JL"] || "-"
+        }}</span
+        >型肥胖,</span
+      ><span v-if="sleepShow"
+        >睡眠效率低于<span class="BIMTips5">80%</span>,</span
+      >建议扫码关注医院公众号,预约体重管理中心医师进一步评估。
       <div>
         <img src="./gzh.jpg" style="max-width: 100%" />
       </div>
@@ -38,46 +42,11 @@
 </template>
 
 <script>
-import {
-  create,
-  screenSave,
-  screenSubmit,
-  queryHospitalNoToken,
-  queryDetailNoToken,
-} from "@/api/screening.js";
-
 export default {
   name: "Notice",
   data() {
     return {
-      open: false,
-      loading: false,
-      disabled: true,
-
-      tenantId: "",
       tenantName: "",
-      stepNum: 1, // 步骤数
-      uploadFileUrl: process.env.VUE_APP_BASE_URL + "/baidu/ocr/idcardInfo", // 上传的图片服务器地址
-      fileList: [],
-      BMITips: [
-        {
-          label: "体重过轻",
-          score: 18.5,
-        },
-        {
-          label: "正常",
-          score: 23.9,
-        },
-        {
-          label: "超重",
-          score: 27.9,
-        },
-        {
-          label: "肥胖",
-          score: 28,
-        },
-      ],
-
       BMIVerdict: {
         体重过轻: "1",
         正常: "2",
@@ -86,8 +55,6 @@ export default {
         中度肥胖: "5",
         重度肥胖: "5",
       },
-      tips: "", //结果提示
-      tipsError: false, //结果提示
       // 表单参数
       form: {
         "SCWJ-DW": "",
@@ -108,52 +75,30 @@ export default {
         "SCWJ-SMXL": "", // 睡眠效率
       },
       loading: false,
+      weightShow: false, // 体重是否属于肥胖
+      sleepShow: false, // 睡眠效率否低于80%
     };
   },
   created() {
     this.tenantName = this.$route.query.tenantName;
     this.form = JSON.parse(this.$route.query.data);
+
+    let weight = this.BMIVerdict[this.form["SCWJ-JL"]]; // 体重结论
+    let sleep = this.form["SCWJ-SMXL"]; // 睡眠效率
+    // 体重是否属于肥胖
+    if (weight >= 3) {
+      this.weightShow = true;
+    }
+    // 睡眠效率否低于80%
+    if (sleep < 80) {
+      this.sleepShow = true;
+    }
   },
   methods: {},
 };
 </script>
 <style scoped src="@/assets/styles/common.css"></style>
 <style scoped>
->>> .el-dialog__header {
-  padding-bottom: 0;
-}
->>> .el-checkbox {
-  margin-right: 10px rtant;
-}
-.form-item-xbs >>> .el-form-item__content {
-  margin-left: 0 !important;
-}
-.qq {
-  color: green;
-}
-.idcardupd {
-  height: 44px;
-  margin-bottom: 14px;
-}
-.idcardupd-but {
-  height: 44px;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: #fff;
-}
-.idcardupd-but span {
-  padding-top: 1px;
-}
-.idcardupd-but img {
-  width: 20px;
-  height: 20px;
-}
-.idcardupd >>> .el-upload {
-  height: 44px;
-  border: none;
-  background: #c6a268;
-}
 .hospital1 {
   text-align: center;
   font-size: 14px;
@@ -197,22 +142,7 @@ export default {
 .item-radio-box {
   margin: 16px 0px;
 }
->>> .el-radio__label {
-  font-size: 16px;
-  color: #555555;
-  line-height: 20px;
-}
-.submit-box {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-.submit-box .submit-box-but {
-  background: #c6a268;
-  width: 100%;
-  font-size: 16px;
-  margin-bottom: 10px;
-}
+
 .card {
   padding: 16px;
   background: #fff;
@@ -236,26 +166,6 @@ export default {
   background: #70483e;
   min-height: 100vh;
 }
->>> .el-input__inner {
-  border: none;
-  border-bottom: 1px solid #dcdfe6;
-  border-radius: 0;
-}
->>> .el-date-editor.el-input {
-  width: 100% !important;
-}
->>> .el-form-item--medium .el-form-item__label {
-  padding-right: 20px;
-}
-
->>> .el-radio input[aria-hidden="true"] {
-  display: none !important;
-}
-
->>> .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled)
-  .el-radio__inner {
-  box-shadow: none !important;
-}
 </style>
 <!-- >>> .el-input__inner {
   padding: 0 15px !important;
diff --git a/acupuncture-前台/src/views/screening/h5eva.vue b/acupuncture-前台/src/views/screening/h5eva.vue
index b76cbef6..760ec25d 100644
--- a/acupuncture-前台/src/views/screening/h5eva.vue
+++ b/acupuncture-前台/src/views/screening/h5eva.vue
@@ -944,10 +944,6 @@ export default {
                   data: JSON.stringify(this.form),
                 },
               });
-              // let flat = this.BMIVerdict[this.form["SCWJ-JL"]];
-              // if (flat >= 3) {
-              //   this.open = true;
-              // }
             });
           }
         });